Skip to content

Instantly share code, notes, and snippets.

View msank00's full-sized avatar
🤖
while True: code( )

msank msank00

🤖
while True: code( )
View GitHub Profile
# create an account on ngrok is not already and copy the authtoken and
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
touch mypass.txt
unzip ngrok-stable-linux-amd64.zip
read -p 'Enter the authtoken from ngrok :' authtoken
./ngrok authtoken $authtoken #for example ZT64bWYnXTAsJej4FNFTdsjhsuAQqKqZHn2Sh4g2sfAD
./ngrok tcp 22 &
apt-get install -qq -o=Dpkg::Use-Pty=0 openssh-server pwgen
mkdir -p /var/run/sshd
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
@msank00
msank00 / setup_ds_on_colab.sh
Last active June 12, 2020 13:55
Set up datascience environment in google colab
pip3 install jupyterlab && apt install tmux
wget https://github.com/cdr/code-server/releases/download/3.4.1/code-server-3.4.1-linux-x86_64.tar.gz
tar -xzvf code*.tar.gz
rm code*.tar.gz