Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
hacking ⇒ ¬sleeping 😸

FC Stegerman obfusk

🌈
hacking ⇒ ¬sleeping 😸
View GitHub Profile
View .gitignore
*~
*.swp
/lib/
@obfusk
obfusk / su-screen.sh
Created Jan 11, 2013
su + ssh-agent + screen
View su-screen.sh
su "$1" -l -c 'script -c "ssh-agent screen" /dev/null'
View snippets.bash
shopt -s globstar # now, use e.g **/*.clj
@obfusk
obfusk / LOG
Last active Dec 11, 2015
sodium
View LOG
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 Feb 16, 2013
obfusk-data w/ mongoid
View obfusk-data-mongoid.rb
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 Sep 7, 2016
debian chroot on android (asus tf300t w/ cyanogenmod 10)
View shell
#!/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 Feb 24, 2013
android notes
View notes
=== debugging ===
android browser: about:debug
firefox: >> su -c 'logcat GeckoConsole:V \*:S' <<
=== eventsource ===
https://github.com/remy/polyfills/blob/master/EventSource.js
View cream-conf.vim
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 Dec 14, 2015
*rc (mostly [ge]vim)
View README
copy/link *.desktop to ~/.local/share/applications/
View Rakefile
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