This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let answers = "{\"0\":\"2\",\"1\":\"5\",\"2\":\"2\",\"3\":\"1\",\"4\":\"3\",\"5\":\"4\",\"6\":\"2\",\"7\":\"1\",\"8\":\"1\",\"9\":\"1\",\"10\":\"2\",\"11\":\"2\",\"12\":\"5\",\"13\":\"3\",\"14\":\"1\",\"15\":\"2\",\"16\":\"4\",\"17\":\"6\",\"18\":\"1\",\"19\":\"2\",\"20\":\"3\",\"21\":\"2\",\"22\":\"1\",\"23\":\"4\",\"24\":\"1\",\"25\":\"5\",\"26\":\"4\",\"27\":\"4\",\"28\":\"1\",\"29\":\"3\",\"30\":\"2\",\"31\":\"3\",\"32\":\"1\",\"33\":\"4\",\"34\":\"3\",\"35\":\"2\",\"36\":\"4\",\"37\":\"4\",\"38\":\"-\",\"39\":\"2\"}" | |
let id = "cs_live_a1xkEEWElsK75AyurR1fi8Skdt7KXDm59ocw99Xmw6Pmtx1u9bUX70EEto" // unfortunately one needs a fresh but paid id everytime, so this script is essentially useless | |
for (var t = JSON.parse(answers), i = "", n = 0; n < 40; n) | |
i = t[n]; | |
let prom = fetch("https://tws-audio.com/iq/scorer.php?answers=" i "&session_id=" id) | |
prom.then(res => { | |
res.text().then(text => { | |
console.log(text) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkg install update && upgrade | |
pkg install -y git build-essential cmake libmicrohttpd libssl make | |
git clone https://github.com/xmrig/xmrig | |
cd xmrig | |
mkdir build | |
cd bulid | |
cmake -DWITH_HWLOC=OFF .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#this should be the directory where all the extensions are installed | |
EXT="$HOME/.local/share/code-server/extensions" | |
cd /tmp | |
ls $EXT | awk -F- '/latex-workshop/ {print $NF}' | while read VER; do | |
echo $VER |