Skip to content

Instantly share code, notes, and snippets.

@AHaymond
AHaymond / gist:11218468
Last active August 29, 2015 14:00
Test patch for Ruby 2.0.0-p353 on Ubuntu 14.04
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c (revision 45224)
+++ ext/readline/readline.c (revision 45225)
@@ -1974,7 +1974,7 @@
rl_attempted_completion_function = readline_attempted_completion_function;
#if defined(HAVE_RL_PRE_INPUT_HOOK)
- rl_pre_input_hook = (Function *)readline_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
@AHaymond
AHaymond / gist:11048813
Created April 18, 2014 15:04
rbenv install 2.0.0-p353 on Ubuntu 14.04 log file
```
/tmp/ruby-build.20140418085432.3403 ~/masteryconnect
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 503012
Connection: keep-alive
Date: Sun, 13 Apr 2014 13:29:24 GMT
Last-Modified: Fri, 28 Mar 2014 23:48:24 GMT
ETag: "5fe00cda18ca5daeb43762b80c38e06e"
Accept-Ranges: bytes
@AHaymond
AHaymond / Sublime Text Command Line
Created February 22, 2012 16:28
Set up sublime text for command line operation Mac OS X
Run this command in your terminal to add command line functionality for Sublime Text.
ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl ~/usr/local/bin/subl
This will create a symlink to the command line tool using your /usr/local/bin directory which should be in your PATH environment variable by default.
Once you create the symlink you can now open any text file by typing "subl textfile.txt"