Skip to content

Instantly share code, notes, and snippets.

View skoch's full-sized avatar
🍋
Surly, since 1999.

Stephen Koch skoch

🍋
Surly, since 1999.
View GitHub Profile
@skoch
skoch / toggle-hidden-files-mavericks
Created May 16, 2014 16:42
Toggle Hidden Files
try
set state to do shell script "defaults read com.apple.finder AppleShowAllFiles" as string
if state is "NO" then
do shell script "defaults write com.apple.finder AppleShowAllFiles YES && killall Finder"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles NO && killall Finder"
end if
end try
@skoch
skoch / Preferences.sublime-settings
Created June 6, 2012 23:05
Sublime Text 2 Prefs
{
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 150,
"auto_complete_with_fields": false,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Blackboard_3.tmTheme",
"draw_indent_guides": false,
"draw_minimap_border": true,
"draw_white_space": "none",
"font_face": "EnvyCodeR",
@skoch
skoch / Default (OSX).sublime-keymap
Created June 6, 2012 23:01
Sublime Text 2 Key Bindings
[
{ "keys": ["ctrl+shift+d"], "command": "duplicate_line" },
{ "keys": ["super+shift+o"], "command": "insert_snippet", "args": {"name": "Packages/ActionScript 3/Out.sublime-snippet"}},
// { "keys": ["super+shift+o"], "command": "insert_snippet", "args": {"name": "Packages/JavaScript/console-log.sublime-snippet"}},
// { "keys": ["super+shift+t"], "command": "insert_snippet", "args": {"name": "Packages/ActionScript 3/trace.sublime-snippet"}},
{ "keys": ["super+shift+l"], "command": "insert_snippet", "args": {"contents": "console.log( '$SELECTION', $SELECTION );"}},
{ "keys": ["super+shift+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse":false} },
{ "keys": ["super+enter"], "command": "build" },
{ "keys": ["super+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
@skoch
skoch / .bash_profile
Created April 2, 2012 19:27
my bash profile
export PS1="\[\e[31;40m\]____________________________________________________________________________________________________________________________\n| \[\e[33;40m\]\u@\[\e[32;40m\]\h \[\e[35;40m\]\t \[\e[36;40m\]\w \n\[\e[31;40m\]| $ \[\e[0m\]"
EDITOR=nano
export PATH="$PATH:~/git/git-achievements:/Library/Ruby/Gems/1.8/bin:/usr/local/git/bin"
alias git="git-achievements"
alias mate="/Users/skoch/bin/mate"
# alias cdf='cd `osascript -e "tell application \"Finder\" to if window 1 exists then if target of window 1 as string is not \":\" then get POSIX path of (target of window 1 as alias)"`'