Skip to content

Instantly share code, notes, and snippets.


Francesco Ceccon fracek

View GitHub Profile
fracek / addon.xml
Created January 27, 2012 10:44
WoW XML skeleton
View addon.xml
<Ui xmlns=""
View gist:1711794
tab () {
osascript 2>/dev/null <<EOF
tell application "iTerm"
tell the first terminal
launch session "Default"
tell the the current session
write text "cd $PWD; $*"
end tell
end tell
end tell
View form.clj
(defpage "/" []
(form-to {:enctype "multipart/form-data"}
[:post "/upload"]
(label :file "File to upload:")
(file-upload :file)
(submit-button "Upload"))))
fracek / gist:1712103
Created January 31, 2012 18:39
Open url from emacs
View gist:1712103
;; Set the default browser command
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "open")
;; Set a keybind
(global-set-key (kbd "C-c C-o") 'browse-url)
fracek / .profile
Created February 11, 2012 18:35
Usefull shell alias
View .profile
alias hu='ls'
alias hh='ls -l'
alias ha='ls -a'
fracek / spawn_fcgi
Created February 12, 2012 20:25
rc.d scripts
View spawn_fcgi
# Spawn a php-fcgi using spawn-fcgi
. /etc/rc.d/rc.subr
fracek / Clang output
Created March 18, 2012 13:10
I <3 GCC errors
View Clang output
clang -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bgzf.c -o bgzf.o
In file included from bgzf.c:36:
./bgzf.h:31:10: fatal error: 'knetfile.h' file not found
#include "knetfile.h"
1 error generated.
fracek /
Created April 14, 2012 11:53
Nano doc


minimalistic couchdb driver for node.js

nano features:

  • minimalistic - there is only a minimun of abstraction between you and couchdb
  • pipes - proxy requests from couchdb directly to your end user
  • errors - errors are proxied directly from couchdb: if you know chouchdb
fracek / classes.csv
Created May 11, 2012 15:44
Nessun Dorma Stats - Classes
View classes.csv
count class
10 Warrior
9 Paladin
6 Hunter
5 Rogue
5 Priest
5 Death Knight
8 Shaman
6 Mage
4 Warlock
fracek / index.html
Created May 11, 2012 15:49
Nessun Dorma Stats - Destroyer's End
View index.html
<title>Nessun Dorma Stats</title>
<script src=""></script>
<link rel="stylesheet" href="style.css">
<div id="page">
<h2>Destroyer's End</h2>
<div class="legenda">