This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am brianstorti on github. | |
* I am brianstorti (https://keybase.io/brianstorti) on keybase. | |
* I have a public key whose fingerprint is AC83 2A13 C81A FD98 4C06 4FF4 01CF 37BD BDBE 035C | |
To claim this, I am signing this object: |
This file contains 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 diff --ignore-space-at-eol --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > patch.diff |
This file contains 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
class Canadianize | |
def initialize(app, arg = "") | |
@app = app | |
@arg = arg | |
end | |
def call(env) | |
status, headers, content = @app.call(env) | |
content[0] += @arg + ", eh?" | |
[ status, headers, content ] |
This file contains 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 'socket' | |
class Client | |
private | |
attr_reader :host, :port | |
public | |
def initialize(host, port) | |
@host, @port = host, port | |
end |
This file contains 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
Found old RVM 1.26.4 - updating. | |
Downloading https://get.rvm.io | |
No GPG software exists to validate rvm-installer, skipping. | |
Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz | |
Upgrading the RVM installation in /Users/brianstorti/.rvm/ | |
RVM PATH line found in /Users/brianstorti/.bashrc /Users/brianstorti/.zshrc. | |
RVM sourcing line found in /Users/brianstorti/.bash_profile /Users/brianstorti/.zlogin. | |
Upgrade of RVM in /Users/brianstorti/.rvm/ is complete. |
This file contains 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
Generated with: | |
rvm-restart | |
rvm get head | |
echo 1.26.4 >| $rvm_path/VERSION | |
rvm-restart | |
( | |
export PS4="+ %* %F{red}%x:%I %F{green}%N:%i%F{white} %_" | |
set -o xtrace | |
rvm --trace install 2.2.0 2>&1 | tee big.log |
This file contains 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
Java Virtual Machine statistics monitoring tool (jstat -options for all the options) | |
$ jstat -gcutil process_id 1000 | |
S0 -> Survivors 0 | |
S1 -> Survivors 1 | |
E -> Eden | |
O -> Old | |
P -> Perm | |
YGC -> Young GC |
This file contains 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
module Debug | |
def who_am_i? | |
self.class.name | |
end | |
end | |
class A | |
include Debug | |
end |
This file contains 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
module Summable | |
def sum | |
inject{ |i,j| i + j } | |
end | |
end | |
class Array | |
include Summable | |
end |
This file contains 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
For those having trouble with 'ç' on Ubuntu 11.04: | |
Open gtk.immodules | |
$ sudo vim /usr/lib/gtk-2.0/2.10.0/gtk.immodules | |
Edit the following line: | |
"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa" |
OlderNewer