Skip to content

Instantly share code, notes, and snippets.

@rbochet
rbochet / strings.xml
Created March 9, 2011 06:28
string.xml wikitionnary
<string name="template_user_agent">"%%s/%%s (Linux; Android)"</string>
<string name="template_wotd_title">"Wiktionary:Word of the day/%%s %%s"</string>
<string name="template_define_url">"http://en.wiktionary.org/wiki/%%s"</string>
@rbochet
rbochet / printer.sh
Created December 26, 2010 10:47 — forked from rbochet/printer.sh
Shell script for printer cron (w/ lock)
#!/bin/bash
# Romain Bochet
# Use as a cron
# Print all the files included in a folder with lp, and move them in another folder.
# Use absolute path (mandatory for crons)
SOURCE="/home/dropbox/print/"
DONE="/home/romain/printed/"
LOCK="/tmp/printerlock"
@rbochet
rbochet / printer.sh
Created December 24, 2010 15:36
Shell script for printer cron
#!/bin/bash
# Romain Bochet
# Use as a cron
# Print all the files included in a folder with lp, and move them into another folder.
# Use absolute path (mandatory for crons)
SOURCE="/home/dropbox/print/"
DONE="/home/romain/printed/"
for FILE in `ls $SOURCE`
<?php
// Fork/clone the full repo @ http://github.com/rbochet/typoXchange
// Romain Bochet
/**
* Allow $fp to be used in getCount
*/
global $fp;