Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
<?php | |
// Works in every situations | |
function by_token ($src) { | |
$tokens = token_get_all($src); | |
$count = count($tokens); | |
$i = 0; | |
$namespace = ''; | |
$namespace_ok = false; | |
while ($i < $count) { |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
// TODO comments (lol) | |
"use strict"; | |
/** | |
Usage: | |
- Put your data in data.json | |
- Require from your test files `var fixtures = require('./path/to/fixtures') | |
- Load and clear with `before(fixtures.clear)`, `before(fixtures.load)`, `after(fixtures.clear)` |
OK here we need some dynamism ;)
# I didn't look, but I'm even pretty sure there is a dedicated command for this with Git. | |
# and this is just a piece of cake, 5 minutes max to implement this... | |
# Edit - actually, you can simply call this: | |
# git ls-files --others --ignored --exclude-standard | |
find -name .gitignore | while read f | |
do | |
d="$(dirname "$f")" | |
cat $f | while read p |
#!/bin/bash | |
# <troll>If you don't have bash, go get a real OS.</troll> | |
curl -s "http://md5.noisette.ch/md5.php?hash=$(curl -s http://live.free.fr | gunzip | tail -n 36 | head -n 32 | grep '[a-f0-9]' -o | xargs echo -n | sed 's/ //g')" | grep '<string>' | sed 's/^.*\[CDATA\[\(.*\)\]\].*$/\1/' |
/*! Socket.IO.js build:0.9.6, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */ | |
/** | |
* socket.io | |
* Copyright(c) 2011 LearnBoost <dev@learnboost.com> | |
* MIT Licensed | |
*/ | |
(function (exports, global) { |