Skip to content

Instantly share code, notes, and snippets.

View srounet's full-sized avatar

srounet

View GitHub Profile
global
daemon
user haproxy
group haproxy
listen stats
bind 0.0.0.0:2090
mode http
stats enable
stats uri /
@srounet
srounet / FREEBSD_9_1_EMACS_TOR_HAPROXY_HTOP_POLIPO
Last active December 15, 2015 08:18
FREEBSD 9.1 VM + Emacs + Tor + Haproxy + Htop + Polipo
# 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
@srounet
srounet / install_es.sh
Created February 8, 2013 20:00
install Elastic Search
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
@srounet
srounet / lsyncd
Created November 19, 2012 15:11
Lsyncd init.d script
#!/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.
@srounet
srounet / hidemyass_last_list.py
Created July 7, 2012 21:42
Download last HideMyAss proxylist
#!/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
@srounet
srounet / lib_r_rpy2_install
Last active September 29, 2015 12:18
Install R and rpy2
$> 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
@srounet
srounet / pure-ftpd
Created May 6, 2011 09:21
init.d script for pure-ftpd
#!/bin/sh
### BEGIN INIT INFO
# Provides: pure-ftpd
# Required-Start: $all
@srounet
srounet / redis
Created May 4, 2011 10:11
init.d script for redis
#!/bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $all
# Required-Stop: $all
@srounet
srounet / mongod
Created May 3, 2011 16:03
init.d script for mongo
#!/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