Skip to content

Instantly share code, notes, and snippets.

View YellowSharkMT's full-sized avatar

The Yellow Shark YellowSharkMT

View GitHub Profile
@YellowSharkMT
YellowSharkMT / gist:5623331
Last active December 17, 2015 14:19
Simple Fabric example script. Save it as "fabfile.py" in a folder, and open a shell up to that folder. Example commands: "fab prod test:AAAAAA", or "fab localhost tail".
# Most important thing to import
from fabric.api import *
# Not necessary, but useful for making timestamps
import time
# Allows Fabric to use profiles from your ~/.ssh/config file
env.use_ssh_config = True
def prod():
@YellowSharkMT
YellowSharkMT / nyt-paywall-blocker.pac
Created March 27, 2013 16:29
PAC Script to block NYT paywall. See http://www.proxypacfiles.com/proxypac/ for more info on Automatic Proxy Configuration
/*
Proxy PAC Script to block the NYT paywall
==========================================
Save this file to your local machine (example: my_proxy_config.pac), and then search "[your browser]
automatic proxy configuration" to find out how to implement it with your browser. For Firefox, go to
Tools -> Options -> Advanced -> Network tab -> Connection box -> Settings, and select Automatic Proxy
Configuration URL, and use a format like this for the file:
file:///c:/users/me/Dropbox/bin/my_proxy_config.pac
@YellowSharkMT
YellowSharkMT / wp_fabfile.py
Created February 7, 2012 19:28
Wordpress Fabfile
# Wordpress Fabfile, for migrating the database, and deploying w/ git.
# For background: "My New & Improved Fabfile for Deploying WordPress"
# http://wp.me/p2a3Vy-1b
#
# This fabfile is specifically-geared for our unique setup, which consists
# of 2 servers (local, remote), and 3 sites (local, dev, and prod). Dev and
# prod sites both live on the remote server.
#
# In general, a little bit of the programming happens on a local site,
# but the database updates and file uploads (both in Wordpress, and edits