Skip to content

Instantly share code, notes, and snippets.

View fracek's full-sized avatar
🎯
Focusing

Francesco Ceccon fracek

🎯
Focusing
View GitHub Profile
@fracek
fracek / addon.xml
Created January 27, 2012 10:44
WoW XML skeleton
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
</Ui>
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
(defpage "/" []
(common/layout
(form-to {:enctype "multipart/form-data"}
[:post "/upload"]
(label :file "File to upload:")
(file-upload :file)
[:br]
(submit-button "Upload"))))
@fracek
fracek / gist:1712103
Created January 31, 2012 18:39
Open url from emacs
;; 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
fracek / .profile
Created February 11, 2012 18:35
Usefull shell alias
alias hu='ls'
alias hh='ls -l'
alias ha='ls -a'
@fracek
fracek / spawn_fcgi
Created February 12, 2012 20:25
rc.d scripts
#!/bin/sh
#
# Spawn a php-fcgi using spawn-fcgi
daemon="/usr/local/bin/spawn-fcgi"
. /etc/rc.d/rc.subr
pexp="/usr/local/bin/php-fastcgi-5.2"
rc_bg=NO
@fracek
fracek / Clang output
Created March 18, 2012 13:10
I <3 GCC errors
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
fracek / README.md
Created April 14, 2012 11:53
Nano doc

nano

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
fracek / classes.csv
Created May 11, 2012 15:44
Nessun Dorma Stats - Classes
count class
10 Warrior
9 Paladin
6 Hunter
5 Rogue
5 Priest
5 Death Knight
8 Shaman
6 Mage
4 Warlock
@fracek
fracek / index.html
Created May 11, 2012 15:49
Nessun Dorma Stats - Destroyer's End
<html>
<head>
<title>Nessun Dorma Stats</title>
<script src="http://d3js.org/d3.v2.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="page">
<h2>Destroyer's End</h2>
<div class="legenda">