Skip to content

Instantly share code, notes, and snippets.

View soyrex's full-sized avatar

Alex Holt soyrex

View GitHub Profile

Keybase proof

I hereby claim:

  • I am soyrex on github.
  • I am soyrex (https://keybase.io/soyrex) on keybase.
  • I have a public key ASAtRFRjrehPJ6LtcnoyUBLKtClDsKfs30E3gtd3wivykgo

To claim this, I am signing this object:

@soyrex
soyrex / htpassmaker
Created August 20, 2015 08:45
htpassmaker - simplifies using htpasswd and creating Auth in htaccess files.
#!/bin/bash
## Written by Alex Holt <alex@soyrex.com>
## License: Do What You Want. Free.
###########################
# Config:
args=""
htpasswd="htpasswd"
defaultName="Restricted Area"
defaultFilename=".htpasswd"
@soyrex
soyrex / fabfile.py
Created September 21, 2011 22:35
simple fab template for restarting remote django site
from fabric.context_managers import cd
from fabric.operations import sudo,run,local
from fabric.state import env
env.hosts = ['127.0.0.1',]
env.user = 'username'
env.deploy_user = 'django'
env.key_filename = ['/Users/soyrex/Keys/keyfile.pem',]
def stage():
local('git push origin staging')