Skip to content

Instantly share code, notes, and snippets.

View nclark's full-sized avatar
💭
wu tang is for the children

Neal Clark nclark

💭
wu tang is for the children
View GitHub Profile
@nclark
nclark / end.scpt
Created May 21, 2011 03:36
applescripts for pomodoro.app
tell application "Finder"
if (name of every application process) contains "Skype" then
tell application "Skype"
send command "SET USERSTATUS ONLINE" script name "pomodoro"
send command "SET PROFILE MOOD_TEXT " script name "pomodoro"
end tell
end if
end tell
tell application "Twitter" to activate
@nclark
nclark / .zshrc
Created March 3, 2011 07:57
zsh and .rvmrc (for screen)
if [[ ( -a .rvmrc ) && $TERM == 'screen' ]]; then
source .rvmrc
fi
@nclark
nclark / create_ctags_with_bundler.rb
Created February 12, 2011 03:32
create ctags for all your gems using Gemfile.lock
#!/usr/bin/ruby
require 'bundler'
lockfile_contents = Bundler.read_file('Gemfile.lock')
lockfile = Bundler::LockfileParser.new(lockfile_contents)
paths = lockfile.specs.collect do |spec|
spec.__materialize__
spec.full_gem_path
end
script/runner 'require("db/migrate/###_yo_migration.rb").first.constantize.up'

stole this off a blog post somewhere, i forget. makes your rake spec output like 900 times more PIMP.

*.pbxproj -crlf -diff -merge
@nclark
nclark / git-fuckit
Created February 26, 2010 05:04
git fuckit --hard
#!/bin/bash
if [ "$1" == "--hard" ]; then
git add .
git reset --hard
else
git add .
git commit -a -m 'FUCK' > /dev/null
git reset HEAD^
@nclark
nclark / gitconfig
Created January 18, 2010 23:10 — forked from Lytol/gist:280458
.gitconfig
[user]
email = <your-email>
name = <your-name>
[color]
diff = auto
status = auto
branch = auto
[alias]
st = status
co = checkout
@nclark
nclark / README.markdown
Created December 16, 2009 21:49
ls --color

how to get more readable directories with ls --color

the problem

by default, gls/ls --color prints the directory name using a rather dark blue foreground. i
use a black terminal...i think most people do too. i find this to be quite unreadable.

Image of problem