Skip to content

Instantly share code, notes, and snippets.

View andre-vauvelle's full-sized avatar
🎯
Focusing

Andre andre-vauvelle

🎯
Focusing
View GitHub Profile
@andre-vauvelle
andre-vauvelle / black_selection.sh
Created April 15, 2020 11:02 — forked from BasPH/black_selection.sh
Black on selection
#!/usr/bin/env bash
set -x
black=$1
input_file=$2
start_line=$3
end_line=$4
# Read selected lines and write to tmpfile
@andre-vauvelle
andre-vauvelle / Google Colab SSH
Created April 1, 2020 13:55 — forked from yashkumaratri/Google Colab SSH
SSH into google colab
#CODE
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd