Skip to content

Instantly share code, notes, and snippets.

View catsby's full-sized avatar
🏠
Working from home

Clint catsby

🏠
Working from home
View GitHub Profile
set nocompatible
set incsearch
set ai
set expandtab
set tabstop=4
set shiftwidth=4
set ignorecase
set smartcase
set scrolloff=3
set number
@catsby
catsby / .profile
Created September 15, 2010 13:09
My .profile
source ~/.cinderella.profile
source ~/.private.profile
source ~/.git-completion.bash # from git source contrib/completion
alias gf="/usr/local/bin/git-flow"
alias dirs="ls -al | grep '^d'" # show the dir's in the current dir
# cinderella ( http://www.atmos.org/cinderella/intro.html )
# Runs things on load, which I don't want, so I edited the matching plist files
# in ~/Library/LaunchAgents and set 'RunAtLoad' and 'KeepAlive' to false
# opting to start them manually when needed.
@catsby
catsby / gist:943028
Created April 26, 2011 20:16 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{sub(/origin\//,"");print}' |
xargs git push origin --delete
#!/bin/sh
config_changed="false"
for rev in $(git diff HEAD@{1} HEAD --name-only)
do
if [[ $rev =~ "/config/" ]]
then
config_changed="true"
fi
done
$ brew list
ack
boost
cmake
coreutils
ctags
erlang
fortune
gdbm
gearman
GLaDOS:octokit clint$ curl http://github.com/api/v2/json/repos/show/schacon/grit
{"repository":{"url":"https://github.com/schacon/grit","parent":"mojombo/grit","has_issues":true,"source":"mojombo/grit","homepage":"http://grit.rubyforge.org/","integrate_branch":"integration","forks":11,"language":"Ruby","watchers":125,"fork":true,"has_downloads":true,"size":4104,"private":false,"created_at":"2008/04/18 16:14:24 -0700","name":"grit","owner":"schacon","pushed_at":"2010/05/05 15:28:38 -0700","description":"Grit is a Ruby library for extracting information from a git repository in an object oriented manner - this fork tries to intergrate as much pure-ruby functionality as possible","has_wiki":true,"open_issues":0}}GLaDOS:octokit clint$
require 'rack'
require ::File.expand_path('../myapp', __FILE__)
run MyApp
@catsby
catsby / Running test
Created December 19, 2011 19:37
Running Jekyll tests
jekyll git:master ❯ rake test ✭
/Users/clint/.rbenv/versions/1.9.3-p0/bin/ruby -I"lib:lib:test" -I"/Users/clint/.rbenv/versions/1.9.3-p0/gemsets/jekyll/gems/rake-0.9.2.2/lib" "/Users/clint/.rbenv/versions/1.9.3-p0/gemsets/jekyll/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb"
/Users/clint/.rbenv/versions/1.9.3-p0/gemsets/jekyll/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/Users/clint/.rbenv/versions/1.9.3-p0/gemsets/jekyll/gems/RedCloth-4.2.7/lib/RedCloth.rb:10: Use RbConfig instead of obsolete and deprecated Config.
Run options:
# Running tests:
................................................................................................................................
[16] pry(main)> client = Octokit::Client.new(:login => 'ctshryock', :password => '**********')
[11] pry(main)> client.issue_comments('ctshryock/octokit', 10).size
=> 4
[12] pry(main)> client.add_comment('ctshryock/octokit', 10, "here's a brand new comment")
=> {"url"=>
"https://api.github.com/repos/ctshryock/octokit/issues/comments/3768382",
"body"=>"here's a brand new comment",
"updated_at"=>"2012-02-01T22:18:32Z",
"user"=>
{"url"=>"https://api.github.com/users/ctshryock",
@catsby
catsby / examples.js
Created March 21, 2012 20:21 — forked from bryanhelmig/examples.js
EmailPie Samples
// An invalid domain.
// http://emailpie.com/v1/check?email=notreal@example.com
{
"didyoumean": null,
"errors": [
{
"message": "No MX records found for the domain.",
"severity": 7
}