Skip to content

Instantly share code, notes, and snippets.

View jefftriplett's full-sized avatar
Living the dream

Jeff Triplett jefftriplett

Living the dream
View GitHub Profile
#!/bin/bash
## via jacob - http://twitter.com/jacobian/status/19846924120
brew outdated | cut -f1 | xargs brew install
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set bell-action none
set-option -g status-left ""
set-option -g status-right "#S"
set -g status-bg black
set -g status-fg white
set utf8-default on
/* just an itch that I needed to scratch -- based off of http://www.primarycss.com/ */
$layout_width = 960px
$header_height = 100px
=column($height, $width)
:height $height
:width $width
float: left
# znc - irc bouncer
description "ZNC - IRC bouncer"
start on runlevel [2345]
stop on runlevel [!2345]
stop on shutdown
respawn
/* Fix Redmine issue table issue.
This issue is only an issue with Webkit. Issue.
Something to do with the avatar float and the
table width … uhh … issue. So, one could say this
is a Webkit issue. :)
*/
div.issue.details table[width="100%"] {
width: 85% !important;
}
@jefftriplett
jefftriplett / gist:659923
Created November 2, 2010 16:48
Get the name of a git branch so that it may be assigned to an environment variable.
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'

Best hotel to send visiting family and friends

Best spot for a date: Starbar

Best wi-fi hotspot

Best beer selection

Best live music venue: Liberty Hall

@jefftriplett
jefftriplett / gist:776425
Created January 12, 2011 16:41
various video encoding settings
#!/bin/bash
# via: http://johndyer.name/post/ffmpeg-Settings-for-HTML5-h264-mp4-theora-ogg-vp8-webm.aspx
#
# Also, noteworthy for actually displaying said videos:
# http://mediaelementjs.com/
# mp4 (H.264 / ACC)
ffmpeg -i %1 -b 1500k -vcodec libx264 -vpre slow -vpre baseline \
-g 30 -s 640x360 %1.mp4
@jefftriplett
jefftriplett / gist:910213
Created April 8, 2011 16:23
project_name.sh
#!/bin/sh
# First, open up GitX
# cd ~/Code/Python/django-haystack; gitx
tmux start-server
tmux new-session -d -s ProjectName -n git
tmux new-window -tProjectName:1 -n test
tmux new-window -tProjectName:2 -n solr
tmux new-window -tProjectName:3 -n runserver
tmux new-window -tProjectName:4 -n utility
@jefftriplett
jefftriplett / geocode_counties_in_kansas.py
Created May 18, 2011 22:27
Quick script to generate a list of lat / longs per county in Kansas.
import time
from geopy import geocoders
COUNTIES = """
Allen County
Anderson County
Atchison County
Barber County
Barton County
Bourbon County