Skip to content

Instantly share code, notes, and snippets.

View trey's full-sized avatar
🏠
I'd rather be at home

Trey Piepmeier trey

🏠
I'd rather be at home
View GitHub Profile
@trey
trey / Safari.css
Last active February 27, 2021 20:59 — forked from shauninman/custom.css
Make Twitter dot com nicer.
/* bye-bye brands */
/* https://twitter.com/shauninman/status/1338535791643996160 */
div[aria-label~="Timeline"] div[role="group"] + div {
background-color: black;
position: absolute !important;
top: -24px !important;
left: -64px !important;
margin-top: 0 !important;
width: calc(100% + 64px);
height: calc(100% + 24px);
127.0.0.1 c13.zedo.com
127.0.0.1 c7.zedo.com
127.0.0.1 c5.zedo.com
127.0.0.1 ads.cnn.com
127.0.0.1 ad.doubleclick.net
127.0.0.1 ad.linkstorms.com
127.0.0.1 click.linkstorms.com
127.0.0.1 amch.questionmarket.com
127.0.0.1 ds.serving-sys.com
127.0.0.1 cdn.eyewonder.com

Django Enviroment Setup on Mac OSX 10.6.2 (Snow Leopard)

Install Homebrew

sudo mkdir /usr/local
sudo chown -R `whoami` /usr/local
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
brew install git
cd /usr/local
git init
@trey
trey / license
Created January 27, 2010 16:22 — forked from defunkt/license
Quickly create a MIT-License.txt file.
#!/bin/sh -e
# Usage: license
# Prints an MIT license appropriate for totin' around.
#
# http://www.opensource.org/licenses/mit-license.php
# http://gist.github.com/287970
#
# $ license > COPYING
#!/bin/sh
echo "The MIT License
@trey
trey / backup.rb
Created May 6, 2009 20:10 — forked from defunkt/backup.rb
Use this to automatically save your writing to a Git repository
# first you'll want to create a gist then `git clone` the private url
# second you'll want to run this script in the gist's directory
loop do
`git commit -a -m save && git push origin master`
sleep 60 * 4
end
@trey
trey / gist:66406
Created February 18, 2009 16:35 — forked from kogakure/fabfile.py
Fabric for Django
#!/usr/bin/python
# -*- coding: utf-8 -*-
set(
fab_hosts = ['host.com'],
fab_user = 'user',
server_path = '/home/user/django/apache2/bin',
project_path = '/home/user/django/project',
memcached_ip = 'IP',
memcached_port = 'PORT',