This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
daemon | |
user haproxy | |
group haproxy | |
listen stats | |
bind 0.0.0.0:2090 | |
mode http | |
stats enable | |
stats uri / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VMWare 9 | |
# Freebsd 9.1 Bootimage | |
# Network: Bridged | |
# DHCP: Auto | |
# Disk: 5.0 Go | |
# Ram: 256 Mo | |
# AllocateFullDiskSpace: Yes | |
#Disable rsyslog listen | |
echo syslogd_flags=\"-s -s\" >> /etc/rc.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir tmp | |
cd tmp | |
curl -L http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.tar.gz | tar -xz | |
sudo mkdir /usr/local/share/elasticsearch | |
sudo mv elasticsearch-* /usr/local/share/elasticsearch | |
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz | |
sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/ | |
rm -Rf *servicewrapper* | |
sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install | |
sudo mkdir /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# lsyncd: Starts the lsync Daemon | |
# | |
# description: Lsyncd uses rsync to synchronize local directories with a remote | |
# machine running rsyncd. Lsyncd watches multiple directories | |
# trees through inotify. The first step after adding the watches | |
# is to, rsync all directories with the remote host, and then sync | |
# single file buy collecting the inotify events. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import email, getpass, imaplib, os | |
from datetime import date | |
username = 'YOUR_USERNAME' #Ex: [email protected] | |
#XXX: base64 decode could be nice | |
password = 'YOUR_PASSWORD' | |
imap_server = 'YOUR_IMAP_SERVER' #Ex: imap.gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> sudo apt-get remove r-base | |
$> sudo apt-get install gfortran | |
$> sudo apt-get install libreadline6 libreadline6-dev | |
$> sudo apt-get install liblapack3gf | |
$> cd ~ | |
$> sudo apt-get source r-base | |
$> cd r-base-2.10.1 | |
$> sudo ./configure --enable-R-shlib --with-x=no --prefix=/opt/R --with-x=no --with-readline=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: pure-ftpd | |
# Required-Start: $all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $all | |
# Required-Stop: $all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: mongodb | |
# Required-Sart: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: mongodb | |
# Description: mongo db server |
NewerOlder