I hereby claim:
- I am chrishunt on github.
- I am chrishunt (https://keybase.io/chrishunt) on keybase.
- I have a public key whose fingerprint is 0B2A E5EE C824 BA32 DD5F 90E4 1C73 302A CA43 2EBB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
run -> (_) { [ 200, { 'Content-Type' => 'text/html', }, ['success'] ] } |
#!/bin/sh | |
#.git/hooks/pre-commit | |
exec 1>&2 | |
TODOS=$(git todo) | |
if [ ! -z "$TODOS" ]; then | |
echo 'Aborting commit due to stuff TODO' | |
echo $TODOS |
One clipboard to rule them all. Requires tmux >= 1.8. Thanks @thoughtbot
Tell vim to use the system clipboard:
" ~/.vimrc
set clipboard=unnamed " use the system clipboard
def locations_for(task) | |
Rake::TaskManager.record_task_metadata=true | |
Rake.application.load 'Rakefile' | |
Rake.application.tasks.each.find { |t| t.name == task }.locations | |
end | |
locations_for('test') | |
# ["../vendor/gems/ruby/1.9.1/gems/railties-4.0.0/lib/rails/test_unit/testing.rake:50:in `<top (required)>'"] |
require 'active_record/connection_adapters/abstract/transaction' | |
module ActiveRecord | |
module ConnectionAdapters | |
class SavepointTransaction < OpenTransaction | |
def perform_commit_with_transactional_fixtures | |
commit_records if number == 1 | |
perform_commit_without_transactional_fixtures | |
end |
$ bundle gem wrake
$ cd wrake
$ vi wrake.gemspec
- Fill in TODOs on description and summary
- Add 'rake' runtime depedency at the bottom
- spec.add_runtime_dependency "rake"
$ vi lib/wrake/Rakefile
What's was your first pull request?
$ gem install ruby-progressbar octokit
$ ruby first_pull_request.rb <github-username> <github-password>