Add to ~/.ssh/config
:
Host *
# Enable persistent connection multiplexing
ControlMaster auto
ControlPath ~/.ssh/-%r@%h:%p
ControlPersist 600
#!/bin/sh | |
#/ Usage: gem-apply <gem> <patchfile | |
#/ Apply a patch to a locally installed gem. | |
#/ | |
#/ Example: | |
#/ % curl https://github.com/jekyll/jekyll/pull/3452.patch | gem-apply jekyll | |
#/ patching file lib/jekyll/commands/serve.rb | |
#/ Hunk #1 succeeded at 39 (offset -1 lines). | |
#/ Hunk #2 succeeded at 125 (offset -6 lines). | |
#/ patching file lib/jekyll/commands/serve.rb |
#!/bin/sh | |
# Usage: . testlib.sh | |
# Simple shell command language test library. | |
# | |
# Tests must follow the basic form: | |
# | |
# begin_test "the thing" | |
# ( | |
# set -e | |
# echo "hello" |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 1 MB sequentially from memory 250,000 ns 0.25 ms | |
Round trip within same datacenter 500,000 ns 0.5 ms | |
Read 1 MB sequentially from SSD 1,000,000 ns 1 ms 4X memory |
# The new git-scm.com site includes man pages designed for pleasant viewing in a web browser: | |
# | |
# http://git-scm.com/docs | |
# | |
# The commands below can be used to configure git to open these pages when | |
# using `git help -w <command>' from the command line. Just enter the config | |
# commands in your shell to modify your ~/.gitconfig file. | |
# Create a new browser command and configure help -w to use it. | |
git config --global browser.gitscm.cmd "/bin/sh -c 'open http://git-scm.com/docs/\$(basename \$1 .html)' --" |
/* | |
* Digital Clock Java applet 06/27/96 | |
* by Mike Perham [email protected] | |
* | |
* Blinks the colon every second; refreshes time | |
* every minute. Futuristic LED display. Generally nifty. | |
* | |
* Array digit[] holds a bitmask of which LEDs each number | |
* lights up: digit[1] = 6 because it lights up the 2nd | |
* and 3rd LEDs. |
You'll need: | |
- Old Fashioned glasses, two of | |
- Sugar cubes, two of | |
- Peychaud's Aromatic Cocktail Bitters, one bottle of | |
- Ice, enough to fill both glasses | |
- Water, one oz of | |
- Rye whisky, two oz of | |
- St. George Absinthe Verte, 0.333oz of | |
- Lemon, one twist of |
#!/usr/bin/env ruby | |
#/ Usage: <progname> [options]... | |
#/ How does this script make my life easier? | |
# ** Tip: use #/ lines to define the --help usage message. | |
$stderr.sync = true | |
require 'optparse' | |
# default options | |
flag = false | |
option = "default value" |
$ git branch -r --merged | | |
grep origin | | |
grep -v -e '>' -e master | | |
xargs -L1 | | |
awk '{split($0,a,"/"); print a[2]}' | | |
xargs git push origin --delete |
.__ ___. .__ __ .__ .___ | |
| |__ _____ ______ ______ ___.__. \_ |__ |__|_______ _/ |_ | |__ __| _/_____ ___.__. | |
| | \ \__ \ \____ \ \____ \< | | | __ \ | |\_ __ \\ __\| | \ / __ | \__ \ < | | | |
| Y \ / __ \_| |_> >| |_> >\___ | | \_\ \| | | | \/ | | | Y \/ /_/ | / __ \_\___ | | |
|___| /(____ /| __/ | __/ / ____| |___ /|__| |__| |__| |___| /\____ | (____ // ____| | |
\/ \/ |__| |__| \/ \/ \/ \/ \/ \/ | |
_____ ___ ___ ___ ___ ___ | |
/ /::\ / /\ / /\ /__/\ /__/\ /__/| ___ | |
/ /:/\:\ / /:/_ / /:/_ \ \:\ \ \:\ | |:| / /\ | |
/ /:/ \:\ / /:/ /\ / /:/ /\ \ \:\ \ \:\ | |:| / /:/ |