Skip to content

Instantly share code, notes, and snippets.

@obfusk
obfusk / .gitignore
Created October 8, 2012 00:08
js term test
*~
*.swp
/lib/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>nl.noxqslabs.vbox</string>
<key>Disabled</key>
<false/>
<key>KeepAlive</key>
<dict>
@noxqsgit
noxqsgit / boot.rb
Last active October 13, 2015 08:48
ruby (rails) app config file
# ...
# CFG {
require 'rails'
CFG_NAME = (->(; d, b) {
d, b = File.split Dir.pwd
b == 'app' ? File.basename(d) : b
})[]
function sl () { ls "$@" | perl -lpe "\$_ = reverse" | while read; do printf "%${COLUMNS}s" "$REPLY"; done; }
@noxqsgit
noxqsgit / comment.md
Last active December 10, 2015 19:39
markdown comments

markdown comments

[]: {{{1

  • ...
  • ...

  • ...
  • ...
@14mRh4X0r
14mRh4X0r / watch_anyway.js
Last active June 18, 2022 18:02
Script to replace a youtube.com video with the embed version. Useful when youtube.com complains about the lack of Flash, to get it in HTML5 anyway (hence "watch_anyway.js")
/*
* Copyright © 2013 Willem Mulder
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.
*/
(function() {
@noxqsgit
noxqsgit / apg.sh
Created January 12, 2013 00:08
apg
apg -a 1 -n 1 -m 20 -x 20 -M SNCL -s # no S -> no symbols
@noxqsgit
noxqsgit / git.md
Last active December 11, 2015 13:08
git basics

Learn to use git

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

Use git for your project

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

Add a bitbucket remote

@noxqsgit
noxqsgit / packages
Created February 15, 2013 11:22
iridium
build-essential
byobu
curl
dia
git
gitg
grc
gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3
haskell-platform
@noxqsgit
noxqsgit / mongo.bash
Last active December 13, 2015 19:09
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/