Skip to content

Instantly share code, notes, and snippets.

View bobintornado's full-sized avatar
⌨️
editing status

Bob Cao bobintornado

⌨️
editing status
View GitHub Profile
@bobintornado
bobintornado / thrift.rb
Created June 26, 2018 17:14 — forked from ibigbug/thrift.rb
Thrift@0.9.1 for Homebrew
require "formula"
class Thrift < Formula
homepage "http://thrift.apache.org"
stable do
url "http://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz"
#sha1 "dc54a54f8dc706ffddcd3e8c6cd5301c931af1cc"
# These patches are 0.9.1-specific and can go away once a newer version is released
@bobintornado
bobintornado / .zshrc
Created October 26, 2015 15:56
my zshrc
alias editzsh="subl ~/.zshrc"
alias myip="ifconfig | grep "inet " | grep -v 127.0.0.1"
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
export PATH=~/.rbenv:$PATH
export RBENV_ROOT=/usr/local/var/rbenv
# export LC_CTYPE="utf-8"
eval "$(rbenv init -)"
ssh-add ~/.ssh/github_rsa # making sure I have this ssh identity added in
@bobintornado
bobintornado / js-console.log
Last active August 29, 2015 14:17
Javascript console.log() snippet for sublime text
<snippet>
<content><![CDATA[
console.log('${1:this}');
]]>
</content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>