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
const shuffle = str => [...str].sort(()=>Math.random()-.5).join(''); |
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
VER="1.16.5" | |
PREV_VER="1.16.3" | |
sudo rm /usr/bin/go | |
curl -O https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz | |
mkdir -p ~/go1.16.5 && tar -C ~/go1.16.5 -xzf go1.16.5.linux-amd64.tar.gz && rm go1.16.5.linux-amd64.tar.gz | |
cd ~/go1.16.5 && [ -d ./go ] && mv go/* . && rm -rf go | |
export PATH=$PATH:`pwd`/bin | |
cd src | |
GOROOT_BOOTSTRAP=`$HOME`/go1.16.3 ./all.bash |
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
<?php phpinfo(); ?> |
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
urls = [] | |
$$('*').forEach(e => { urls.push(e?.src, e?.href, e?.url) }) | |
console.log(...new Set(urls)) |
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
x = new XMLHttpRequest() | |
x.onerror = (e) => console.log(e, x) | |
x.open('GET', 'https://jsonplaceholder.typicode.com/todos/1') | |
x.setRequestHeader('Accept', 'application/json') | |
x.send() |