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)| '''cjson, jsonlib, simplejson, and yajl also use C code | |
| demjson did not use C code, but was too painfully slow to benchmark | |
| (took about 20 seconds for these tests) | |
| ''' | |
| import json | |
| import sys | |
| import time | |
| with open('doc.json') as f: | 
| # Configurations for haproxy | |
| global | |
| maxconn 4096 | |
| chroot /var/haproxy | |
| user haproxy | |
| group haproxy | |
| log 127.0.0.1 local0 alert | 
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)| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| var manos [][]int | |
| var baraja []int | 
| #!/bin/bash | |
| sudo apt-get update && sudo apt-get upgrade | |
| sudo apt-get install makepasswd rcs perl-doc libio-tee-perl git libmail-imapclient-perl libdigest-md5-file-perl libterm-readkey-perl libfile-copy-recursive-perl build-essential make automake libunicode-string-perl | |
| cd $HOME | |
| git clone git://github.com/imapsync/imapsync.git --depth 1 | |
| cd imapsync | |
| sudo make install |