Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Install prerequisits and open a tmux session
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev --fix-missing
# Download and install python
wget https://www.python.org/ftp/python/3.6.13/Python-3.6.13.tgz
sudo tar zxf Python-3.6.13.tgz
cd Python-3.6.13
sudo ./configure
@21isenough
21isenough / check_ssh_tunnel.sh
Created May 10, 2020 09:44
Check if SSH still up, reconnect if not (run as a cron job)
#/bin/bash
DATE=$(date)
runAutossh() {
/usr/bin/autossh -M 20000 -Nf -R PORT:127.0.0.1:PORT USER@REMOTE_IP
if [[ $? -eq 0 ]]; then
echo Tunnel to REMOTE_IP created successfully
else
echo An error occurred creating a tunnel
@21isenough
21isenough / .bashrc
Last active April 14, 2022 18:58
Broadcast raw hex transaction over blockstreams TOR API
For context: https://twitter.com/21isenough/status/1255182788686462983?s=20
TorThisTx() {
# Rename "TorThisTx() to whatever you want the command to be
# Broadcast raw hex transaction over blockstreams TOR API with curl
curl --socks5-hostname localhost:9050 -d $1 -X POST http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/tx
}

Keybase proof

I hereby claim:

  • I am 21isenough on github.
  • I am 21isenough (https://keybase.io/21isenough) on keybase.
  • I have a public key ASAtwcS5fT9ZuxapEMIAMOvfQETHvqm4SuXseM_F8noPvQo

To claim this, I am signing this object: