Skip to content

Instantly share code, notes, and snippets.

:%s/\r/\r/g
@l4u
l4u / gist:4396208
Created December 28, 2012 09:06
install ruby with the patch that fixes "Symbol not found: _environ"
rvm reinstall 1.9.3-p362 --patch ./2741a598ff9e561c71eb39a57bb19c0a3205eaef.patch
@l4u
l4u / gist:4248915
Created December 10, 2012 06:55
mp3 to ogg
brew install vorbis-tools
brew install mpg321
mpg321 bgm.mp3 -w raw && oggenc raw -o bgm.ogg
@l4u
l4u / gist:4215035
Created December 5, 2012 12:06
Building sproxel on Mac OS X draft
brew install IlmBase
brew install qt
//export C_INCLUDE_PATH=/usr/include/python2.7:$C_INCLUDE_PATH
//export CPLUS_INCLUDE_PATH=/usr/include/python2.7:$CPLUS_INCLUDE_PATH
-framework Python
http://qt-project.org/wiki/PySide_Binaries_MacOSX
@l4u
l4u / gist:4126162
Created November 21, 2012 17:18
vim 7.3 vertical lime at column 80
set colorcolumn=80
Recompile: src/rebar_xref
Uncaught error in rebar_core: {'EXIT',
{badarg,
[{re,run,
[[45,97,114,99,104,32,105,51,56,54,32,8211,
97,114,99,104,32,120,56,54,95,54,52],
"\\${?(\\w+)}?",
[global,{capture,all_but_first,list}]],
[{file,"re.erl"},{line,639}]},
{rebar_port_compiler,expand_vars_loop,4,
@l4u
l4u / gist:4014792
Created November 5, 2012 01:42
Get regional weather from HKO with extra spaces stripping
curl -s http://www.hko.gov.hk/wxinfo/ts/text_readings_e.htm | grep -m1 "Ta Kwu Ling" | tr -s \ -
echo http://download.microsoft.com/download/B/7/2/B72085AE-0F04-4C6F-9182-BF1EE90F5273/Windows_7_IE9.part0{1.exe,2.rar,3.rar,4.rar,5.rar,6.rar,7.rar} | tr ' ' '\n' | aria2c --max-connection-per-server=16 --max-concurrent-downloads=16 --split=16 -i -
io:format("~p~n",[code:get_path()]).
@l4u
l4u / gist:3804591
Created September 29, 2012 17:05
Install elixir using std env instead of superenv for homebrew 0.9.3
brew install --HEAD --env=std https://raw.github.com/gist/1955470/c58bda92f07147afff64a86d0c2d8ef65adb9cd6/elixir.rb