Public Gists by trey

Gravatar
Fri Nov 20 08:10:56 -0800 2009
1
2
3
<!DOCTYPE html>
<html lang="en">
<head>
gist: 238000 OS X Single App Mode
Gravatar
Wed Nov 18 08:06:17 -0800 2009
1
2
3
# http://db.tidbits.com/article/10624
 
# Single app mode
gist: 228607 How beards.trey.cc works. B...
Gravatar
Fri Nov 06 23:42:44 -0800 2009
1
use 'http://yqlblog.net/samples/data.html.cssselect.xml' as data.html.cssselect; select * from data.html.cssselect where url="http://whiskerino.org/2009/beards/trey/favorites/" and css="#gallerywidemouth div"
gist: 220562 Appendix A of Crush It! by ...
Gravatar
Wed Oct 28 08:57:52 -0700 2009
1
2
3
1. Identify your passion.
2. Make sure you can think of at least fifty awesome blog topics to ensure stickiness.
3. Answer the following questions:
gist: 187816 Do this stuff easily: http:...
Gravatar
Tue Sep 15 19:10:30 -0700 2009
1
2
3
mkdir $1
cd $1
echo 'Downloading WordPress ...'
gist: 179222 How to keep your Bash confi...
Gravatar
Tue Sep 01 09:56:45 -0700 2009
1
2
3
if [ -f ~/.bashrc ];
then
    source ~/.bashrc
gist: 178309 WordPress widget TextMate s...
Gravatar
Sun Aug 30 22:59:18 -0700 2009
1
2
3
class ${1:PREFIX_Name}_Widget extends WP_Widget {
function $1_Widget() {
\$widget_ops = array( 'classname' => '${2:CSS class name}', 'description' => '${3:Description}' );
gist: 175807 Must be a better way than t...
Gravatar
Wed Aug 26 13:26:35 -0700 2009
1
2
3
[branch "master"]
remote = origin
merge = refs/heads/master
Gravatar
Wed Aug 05 13:32:31 -0700 2009
1
grep -r --include "*.extension" pattern *
gist: 134815 Display the current year in...
Gravatar
Tue Jun 23 13:18:05 -0700 2009
1
2
3
<!-- PHP -->
 
<?php echo date('Y'); ?>
gist: 134595 Hostname switching in PHP, ...
Gravatar
Tue Jun 23 08:32:43 -0700 2009
1
2
3
$localServers = array('something.dev');
$stagingServers = array('something_else.com', 'and_another.com');
if (in_array($_SERVER['HTTP_HOST'], $localServers)) {
gist: 134576 Convenient things for setti...
Gravatar
Tue Jun 23 07:59:44 -0700 2009
1
2
3
# Reduce clutter in your settings.
 
def full_path(*parts):
gist: 107713 Use this to automatically s...
Gravatar
Wed May 06 13:10:53 -0700 2009
1
2
3
# 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
gist: 100888 De-green'd the Django Debug...
Gravatar
Thu Apr 23 19:20:35 -0700 2009
1
2
3
#djDebug *{color:#888;float:none;margin:0;padding:0;position:static;text-align:left;}
#djDebug code{color:#333;}
#djDebug h3 code{color:#fff;}
gist: 88393 Switch statement in JavaScr...
Gravatar
Tue Mar 31 13:29:33 -0700 2009
1
2
3
switch(id){
case "previous":
// something
gist: 83249 Admin widget with a thumbna...
Gravatar
Sun Mar 22 11:32:44 -0700 2009

      
gist: 76393 Windows Hosts File
Gravatar
Mon Mar 09 10:45:51 -0700 2009
1
C:\WINDOWS\system32\drivers\etc\hosts
gist: 75110 TextMate aliases
Gravatar
Fri Mar 06 14:37:44 -0800 2009
1
2
alias tmbundles='cd ~/"Library/Application Support/TextMate/Bundles/";clear;pwd'
alias tmreload="osascript -e 'tell app \"TextMate\" to reload bundles'"
gist: 73578 Create virtual hosts with `...
Gravatar
Tue Mar 03 14:32:22 -0800 2009
1
2
3
#!/bin/sh
 
ME=your-username
gist: 72231 Command Line Goodness
Gravatar
Sat Feb 28 21:50:06 -0800 2009
1
2
3
source ~/bin/aliases
source ~/bin/gitprompt
export PATH="/usr/local/bin:~/bin:$PATH"