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 / Gemfile
Created October 20, 2013 19:36 — forked from noxqsgit/Gemfile
sqlite -> postgres
source 'https://rubygems.org'
gem 'taps'
gem 'rack', '1.5.0' # see https://github.com/rack/rack/issues/528
gem 'sinatra'
gem 'pg'
gem 'sqlite3'
@obfusk
obfusk / packages
Created October 20, 2013 19:37 — forked from noxqsgit/packages
libav/ffmpeg packages
libav-tools
libavcodec-extra-53
libavdevice-extra-53
libavfilter-extra-2
libavformat-extra-53
libpostproc-extra-52
@obfusk
obfusk / mongo.bash
Created October 20, 2013 19:39 — forked from noxqsgit/mongo.bash
mongo dump/restore
ssh -Nv -L 8888:localhost:27017 user1@server1
ssh -Nv -L 9999:localhost:27017 user2@server2
mongodump -h localhost:8888 -d db1 -u user1 -p ''
mongorestore -h localhost:9999 -d db2 -u user2 -p '' dump/db1/
@obfusk
obfusk / packages
Created October 20, 2013 19:40 — forked from noxqsgit/packages
iridium
build-essential
byobu
curl
dia
git
gitg
grc
gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3
haskell-platform
@obfusk
obfusk / socat.sh
Created October 20, 2013 19:42 — forked from noxqsgit/socat.sh
socat -- still testing
socat -d -d -d TCP4-LISTEN:9999,fork,bind=localhost TCP4:192.168.1.222:27017
@obfusk
obfusk / apg.sh
Created October 20, 2013 19:42 — forked from noxqsgit/apg.sh
apg
apg -a 1 -n 1 -m 20 -x 20 -M SNCL -s # no S -> no symbols
@obfusk
obfusk / git.md
Last active December 26, 2015 02:09 — forked from noxqsgit/git.md
git basics

Learn to use git

--> http://try.github.com

Use git for your project

$ cd /path/to/your/project
$ git init .

Add a github or bitbucket remote (?!)

@obfusk
obfusk / sync-home
Last active December 26, 2015 02:09 — forked from noxqsgit/sync-home
sync
#!/bin/bash
host="$HOSTNAME"
exclude_list=(
/.bundle /.cabal /.gem /.node /.npm /.vagrant.d /Downloads /VMs
/opt/{pkg,src}
)
for x in "$HOME"/tmp/build/chromium*; do
@obfusk
obfusk / README.md
Created November 9, 2013 00:52 — forked from noxqsgit/README.md
nap switch branch

nap (remote)

nap stop APP

apps/APP (local)

git checkout stable
git push REMOTE stable
git branch -d master
@obfusk
obfusk / README.md
Last active December 28, 2015 08:49 — forked from noxqsgit/README.md
different Gemfile.lock files for different branches

Use different Gemfile.lock files for different branches:

  • Symlink Gemfile.branch1 and Gemfile.branch2 to Gemfile.all.
  • Use the branch-bundle script instead of bundle.