I hereby claim:
- I am bkemper on github.
- I am kemper (https://keybase.io/kemper) on keybase.
- I have a public key ASC99d4a3K26BmZY1SleTE0rPtssrTML9li3LUBykqyqjwo
To claim this, I am signing this object:
task :with_editor do | |
require "tempfile" | |
temp_file = Tempfile.new("notes") | |
unless editor = ENV["EDITOR"] | |
abort "Please define your editor." | |
end | |
# Open editor | |
system("#{editor} #{temp_file.path}") |
# Too often developers leave keys in unencrypted files (e.g. bash_profile). | |
# The following are instructions to show how easy it is to create a new keychain | |
# for your project and fetch the keys. | |
# Create a keychain for your project | |
$ security create-keychain <your-project-name>.keychain | |
# Add keychain to search list (optional) | |
# | |
# @note The -s argument sets the list. If you have other keychains, you must |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
if [ -z "$(which brew)" ]; then | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
if [ -z "$(which pound)" ]; then | |
brew install pound # http://brewformulas.org/Pound | |
fi |
# Simple utility script to "Not Watch" all the repositories in your GitHub | |
# organization | |
# | |
# @example | |
# $ GITHUB_ACCESS_TOKEN=MYACCESSTOKEN ruby stop_watching.rb staqapp | |
require "faraday" | |
require "json" | |
NO_CONTENT = 204 |
Ruby supports a number of ways to define a block/multiline string.
Here are some explanations:
While on a branch with a couple of commits, you can edit a commit with interactive rebase. This should be used sparingly and only on branches and never on master.
$ git checkout my-branch
$ git log
An unpacked Chrome extension that injects a script, waits a minute, and then throws an Error.
git clone https://gist.github.com/4c1e9a87f4b0b921711ea6791c265cc0.git