Skip to content

Instantly share code, notes, and snippets.

View obfusk's full-sized avatar
🏳️‍🌈
hacking ⇒ ¬sleeping 😸

FC (Fay) Stegerman obfusk

🏳️‍🌈
hacking ⇒ ¬sleeping 😸
View GitHub Profile
@obfusk
obfusk / .gitignore
Created October 8, 2012 00:08
js term test
*~
*.swp
/lib/
@obfusk
obfusk / su-screen.sh
Created January 11, 2013 21:49
su + ssh-agent + screen
su "$1" -l -c 'script -c "ssh-agent screen" /dev/null'
@obfusk
obfusk / snippets.bash
Created January 12, 2013 17:45
snippets
shopt -s globstar # now, use e.g **/*.clj
@obfusk
obfusk / LOG
Last active December 11, 2015 18:09
sodium
fn keys
https://help.ubuntu.com/community/AppleKeyboard
terminal
80x40, black on white
firefox
prefs; noscript + prefs, vimperator; g, wp
system settings
@obfusk
obfusk / obfusk-data-mongoid.rb
Created February 16, 2013 01:03
obfusk-data w/ mongoid
require 'obfusk/data/hash'
require 'mongoid'
Mongoid.load! "#{ Dir.home }/tmp/_/mongoid.yml", :development
module ValidMongoid
module ClassMethods
def data (*a, &b)
self::ValidHash.data(*a, &b)
end
@obfusk
obfusk / shell
Last active September 7, 2016 15:13
debian chroot on android (asus tf300t w/ cyanogenmod 10)
#!/system/xbin/bash
CHROOT=/data/__felix__/__chroot__
if [ -z "$1" -o "$1" == root ]; then
CMD='/bin/bash -l'
else
CMD="/bin/su - $1"
fi
@obfusk
obfusk / notes
Created February 24, 2013 16:31
android notes
=== debugging ===
android browser: about:debug
firefox: >> su -c 'logcat GeckoConsole:V \*:S' <<
=== eventsource ===
https://github.com/remy/polyfills/blob/master/EventSource.js
@obfusk
obfusk / cream-conf.vim
Last active December 14, 2015 10:48
cream
function! Cream_conf_override()
let g:CREAM_AUTOINDENT = 0
let g:CREAM_AUTOWRAP = 1
let g:CREAM_AUTOWRAP_WIDTH = 70
let g:CREAM_EXPANDTAB = 1
let g:CREAM_SOFTTABSTOP = 2
let g:CREAM_TABPAGES = 1
endfunction
call Cream_conf_override()
@obfusk
obfusk / README
Last active December 14, 2015 10:59
*rc (mostly [ge]vim)
copy/link *.desktop to ~/.local/share/applications/
@obfusk
obfusk / Rakefile
Created March 5, 2013 02:22
clojure cuke
desc 'Run specs'
task :spec do
sh 'lein spec -c'
end
desc 'Run specs verbosely'
task 'spec:verbose' do
sh 'lein spec -c -f d'
end