I hereby claim:
- I am r-gr on github.
- I am rory (https://keybase.io/rory) on keybase.
- I have a public key whose fingerprint is 7D16 4961 803C 21BF CE04 C93E FDB2 772E AE01 E108
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #! /usr/local/bin/fish | |
| set -l server_ip 0.0.0.0 # change this | |
| set -l server_user root | |
| set -l local_port 1234 | |
| function _ssh_tunnel_help | |
| echo "usage: sshtunnel <command>\n" | |
| echo " open Opens ssh tunnel to server and enables SOCKS proxy" | |
| echo " close Closes ssh tunnel and disables SOCKS proxy" |
| # -*- coding: utf-8 -*- | |
| """ | |
| This script will delete all of the tweets in the specified account. | |
| You may need to hit the "more" button on the bottom of your twitter profile | |
| page every now and then as the script runs, this is due to a bug in twitter. | |
| You will need to get an api key and api secret token to use this | |
| script, you can do so by registering a twitter application at | |
| https://dev.twitter.com/apps |
| #!/bin/bash | |
| NAME="APP_NAME" # Name of the application | |
| DJANGODIR=ENV_ROOT/ENV_NAME/PROJECT_NAME # Django project directory | |
| SOCKFILE=ENV_ROOT/ENV_NAME/run/gunicorn.sock # we will communicte using this unix socket | |
| USER=root # the user to run as | |
| GROUP=root # the group to run as | |
| NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
| DJANGO_SETTINGS_MODULE=PROJECT_NAME.settings # which settings file should Django use | |
| DJANGO_WSGI_MODULE=PROJECT_NAME.wsgi # WSGI module name |
| #! /bin/sh | |
| # used with oh-my-zsh and placed in ~ZSH_CUSTOM/plugins/sshtunnel/sshtunnel.plugin.zsh | |
| # must be enabled in .zshrc plugins e.g. plugins=(sshtunnel) | |
| # | |
| # both PORT and LOCAL_PORT must be replaced with desired values | |
| # if tunneling over Wi-Fi needed, uncomment the 3 relevant lines | |
| # | |
| # oh, and closing the tunnel will kill all ssh processes |