Skip to content

Instantly share code, notes, and snippets.

@dtrietsch
dtrietsch / gist:1186289
Created September 1, 2011 14:35
iTerm2 command for split panes via AppleScript
tell i term application "System Events" to keystroke "D" using command down
tell i term application "System Events" to keystroke "d" using command down
@dtrietsch
dtrietsch / update_environment.sh
Created July 15, 2011 19:53
Updates BREW outdated, RVM, GEMS, NPM, JANUS, and TextMate Bundles
#!/bin/bash
echo ----------------------------------------
echo UPDATING BREW INSTALLS
echo ----------------------------------------
brew update
OUTDATEDS=(`brew outdated`)
for outdated in "${OUTDATEDS[@]}"
do
echo installing $outdated
@dtrietsch
dtrietsch / alias_sample
Created June 30, 2011 14:28
Alias Sample
-='cd -'
..='cd ..'
...='cd ../..'
1='cd -'
2='cd +2'
3='cd +3'
4='cd +4'
5='cd +5'
6='cd +6'
7='cd +7'
@dtrietsch
dtrietsch / gist:843996
Created February 25, 2011 16:00
Warty .NET Hoptoad Notifier Global.asax snippet
HoptoadGateway hoptoadGateway = new HoptoadGateway();
hoptoadGateway.Notify(ConfigurationManager.AppSettings["hoptoadNotifierApiKey"],
ConfigurationManager.AppSettings["hoptoadNotifierEnvironment"], HttpContext.Current.Request,
Server.GetLastError().GetBaseException());