Public Gists by trey

gist: 70433 Install GetBundles for Text...
Gravatar
Wed Feb 25 13:48:07 -0800 2009
1
2
3
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/
gist: 69726 How To Get 1Password Suppor...
Gravatar
Tue Feb 24 11:08:47 -0800 2009
1
2
3
- Quit Safari
- Locate 1Password in your /Applications folder
- Ctrl-click > Show Package Contents
gist: 69485 Quickly dump all MySQL data...
Gravatar
Tue Feb 24 01:27:36 -0800 2009
1
2
3
#!/bin/bash
 
BACKUP_DIR="/Users/`whoami`/Desktop/db-backups/"
Gravatar
Mon Feb 23 20:53:39 -0800 2009
1
2
3
<Directory /Users/*/Sites/>
    Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI -MultiViews
    AllowOverride All
gist: 66406 Fabric for Django
Gravatar
Wed Feb 18 08:35:44 -0800 2009
1
2
3
#!/usr/bin/python
# -*- coding: utf-8 -*-
 
gist: 60640 Hosting Git repositories on...
Gravatar
Sun Feb 08 19:15:33 -0800 2009
1
2
3
#!/bin/bash
 
cd /var/git
gist: 50157 1. Keep your theme and cont...
Gravatar
Wed Jan 21 12:04:43 -0800 2009
1
2
3
// Awesome WordPress tricks: http://tumblr.jasontan.org/post/72133202/wp-config
 
// Custom wp-content folder:
gist: 48879 Do the Django Settings Shuf...
Gravatar
Sun Jan 18 21:09:56 -0800 2009
1
2
3
# You can avoid this shuffle if you do something like this:
#
# You should only use this technique with private projects,
gist: 41554 Modest attempt at modifying...
Gravatar
Tue Dec 30 00:03:35 -0800 2008
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
gist: 30333 iPhone Optimization
Gravatar
Sat Nov 29 14:19:29 -0800 2008
1
2
3
<!-- Screencast "Designing Web Content for iPhone @ 20:59 - "Viewport Examples"
<!-- Default viewport width = 980px -->
<!-- https://developer.apple.com/webapps/docs/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/chapter_4_section_5.html -->
Gravatar
Mon Nov 17 11:02:47 -0800 2008
1
To delete a blank note in Backpack, open up the dashboard widget and enter some text in the note. Then you'll be able to get the hover delete widget on the website.
Gravatar
Thu Oct 09 14:15:10 -0700 2008
1
2
3
// http://dev.jquery.com/ticket/1092
 
jQuery.fn.toggleText = function(a, b) {
Gravatar
Thu Oct 09 14:14:45 -0700 2008
1
2
3
// http://www.learningjquery.com/2008/02/simple-effects-plugins
 
jQuery.fn.fadeToggle = function(speed, easing, callback) {
gist: 12461 Things I like to add to set...
Gravatar
Tue Sep 23 19:40:53 -0700 2008
1
2
3
import os.path
 
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "public/static/")
gist: 11794 Using mod_wsgi for a Django...
Gravatar
Sat Sep 20 14:48:55 -0700 2008
1
2
3
# http://www.technobabble.dk/2008/aug/25/django-mod-wsgi-perfect-match/
 
<VirtualHost *:80>
gist: 11364 Use Django fixtures to auto...
Gravatar
Wed Sep 17 20:20:25 -0700 2008
1
2
3
# Load some data via the admin that should always be there when someone installs the app.
# Dump that data out into JSON format into a fixture.
 
gist: 9823 No WWW
Gravatar
Tue Sep 09 21:32:56 -0700 2008
1
2
3
<VirtualHost *:80>
       ServerName example.com
       ServerAlias www.example.com
gist: 9822 Redirecting a domain using ...
Gravatar
Tue Sep 09 21:26:36 -0700 2008
1
2
3
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
gist: 9621 Doing multiple things on a ...
Gravatar
Mon Sep 08 23:29:04 -0700 2008
1
2
3
from django.http import HttpResponseRedirect
from django.views.generic import list_detail
from myapp.models import *
gist: 6925 ISO 8601 in Django templates
Gravatar
Sat Aug 23 08:34:46 -0700 2008
1
2
3
{{ value|date:"Y-m-d G:i:s" }}
 
{# For use with Timeago: http://timeago.yarp.com/ #}