Skip to content

Instantly share code, notes, and snippets.

View rkive's full-sized avatar

Aaron Bento rkive

  • Portland, OR
View GitHub Profile
@jrallison
jrallison / customerio_client.rb
Created May 1, 2012 19:59
Simple Customer.io API client in Ruby using HTTParty.
# Simple Customer.io API client in Ruby (1.9 syntax) using HTTParty.
# Uses https://github.com/jnunemaker/httparty for all the heavy lifting.
#
# Usage:
#
# client = Customerio.new("YOUR SITE ID", "YOUR API SECRET KEY")
#
# # Identifying a user with user attributes
# user.email = "user@example.com"
# client.identify(user, { first_name: "Bob", plan: "basic" })
@kconragan
kconragan / keyrepeat.shell
Last active December 4, 2023 03:40
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
@relistan
relistan / ssh-config
Created March 22, 2012 16:36
proxy ssh through a jump host without breaking all other ssh connections
Host *
ForwardAgent yes
ProxyCommand ~/bin/ssh-proxy.sh %h %p username@jump-host
ServerAliveInterval 10
ServerAliveCountMax 600
@zeke
zeke / coffeescript_bundle_for_sublime.sh
Created March 1, 2012 22:39
Install the CoffeeScript TextMate bundle in Sublime Text 2
mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/CoffeeScript
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/CoffeeScript
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Syntaxes/CoffeeScript.tmLanguage
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Preferences/CoffeeScript.tmPreferences