This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Simple social links helper | |
<ul> | |
<li>GitHub: <a href="http://github.com/ctshryock" title="@ctshryock's Github profile">@ctshryock</a></li> | |
<li>Twitter: <a href="http://twitter.com/ctshryock" title="@ctshryock's Twitter profile">@ctshryock</a></li> | |
<li>Default (Twitter): <a href="http://twitter.com/catsby" title="@catsby's Twitter profile">@catsby</a></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An invalid domain. | |
// http://emailpie.com/v1/[email protected] | |
{ | |
"didyoumean": null, | |
"errors": [ | |
{ | |
"message": "No MX records found for the domain.", | |
"severity": 7 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
................................................................................................................................ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack' | |
require ::File.expand_path('../myapp', __FILE__) | |
run MyApp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew list | |
ack | |
boost | |
cmake | |
coreutils | |
ctags | |
erlang | |
fortune | |
gdbm | |
gearman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
awk '{sub(/origin\//,"");print}' | | |
xargs git push origin --delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |