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 | |
if [ ! -f "/usr/local/go/bin/go" ]; then | |
version="1.19.1" | |
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz" | |
sudo rm -rf /usr/local/go | |
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz" | |
rm "go$version.linux-amd64.tar.gz" | |
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \ | |
source ~/.bash_profile && \ |
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
### Keybase proof | |
I hereby claim: | |
* I am stakemepro on github. | |
* I am stakeme (https://keybase.io/stakeme) on keybase. | |
* I have a public key ASAAuF-qXtDqekvi8ExiBf-4xbmfh066ErtNcQxzy2rRvQo | |
To claim this, I am signing this object: |
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 shell = require("shelljs"); | |
const TOKEN = process.argv[2]; | |
const CONFIG = process.argv[3]; | |
function openPort(port) { | |
return shell.exec(`sudo lsof -Pi :${port} -sTCP:LISTEN`, {shell: '/bin/bash', silent: true}).code !== 0; | |
} | |
for (let i = 0; i < 60; i++) { |
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 shell = require("shelljs"); | |
const readlineSync = require('readline-sync'); | |
function sleep(ms) { | |
return new Promise((resolve) => { | |
setTimeout(resolve, ms); | |
}); | |
} | |
(async function() { |