Skip to content

Instantly share code, notes, and snippets.

View alejandrobernardis's full-sized avatar
🐻

Alejandro M. BERNARDIS alejandrobernardis

🐻
View GitHub Profile
; Sample supervisor config file.
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; sockef file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; (default is no username (open server))
;password=123 ; (default is no password (open server))
;[inet_http_server] ; inet (TCP) server disabled by default
@alejandrobernardis
alejandrobernardis / supervisord.conf
Last active December 11, 2015 06:58
Supervisor // Daemon // CentOS.
[include]
files = /a/path/*.supervisor
[supervisord]
directory = /a/path
pidfile = /a/path/supervisord.pid
logfile = /a/path/supervisord.log
logfile_maxbytes = 50MB
logfile_backups = 10
childlogdir = /a/path/logs
sudo su -
# stuff we need to build from source
apt-get install libpcre3-dev build-essential libssl-dev
# get the nginx source
cd /opt/
wget http://nginx.org/download/nginx-0.8.54.tar.gz
tar -zxvf nginx*
# we'll put the source for nginx modules in here
@alejandrobernardis
alejandrobernardis / build.xml
Created January 30, 2013 15:08
Otro build más~
<project name="com-ak-geisha" basedir="." default="deploy">
<!-- == properties ============================================================================================= -->
<property file="${basedir}/build.properties" />
<!-- == macros ================================================================================================= -->
<macrodef name="common.date">
<sequential>
@alejandrobernardis
alejandrobernardis / profile.sh
Last active December 12, 2015 12:49
Temp Profile... VB
# ((ak)) config
export HISTCONTROL=ignoredups:ignorespace
export HISTSIZE=5000
export HISTFILESIZE=1000
export HISTIGNORE="ls:cd:[bf]g:exit:..:...:ll:lla"
# ((ak)) helpers
alias l='ls -l';
alias l.='ls -d .*'
alias ll='ls -Al';
@alejandrobernardis
alejandrobernardis / PythonEnv.md
Last active December 13, 2015 15:49
Python Environment

CentOS 6.3 Minimal Install


Update & Dependencies

$: yum update
$: yum install nano wget tree gcc gcc-c++ compat-gcc-34-c++ gcc-gfortran zlib zlib-devel bzip2 bzip2-devel openssl openssl-devel ncurses ncurses-devel sqlite sqlite-devel gdbm gdbm-devel readline readline-devel expat expat-devel freetype freetype-devel libjpeg libjpeg-devel libpng libpng-devel gdb bison libtool make automake strace autoconf gettext automake curl mercurial

Profile

@alejandrobernardis
alejandrobernardis / proc3ss_supervisord_conf
Created February 14, 2013 16:32
proc3ss_supervisord_conf
[include]
files = /etc/supervisord/*.supervisor
[supervisord]
directory = /etc/supervisord
pidfile = /var/run/supervisord.pid
childlogdir = /var/log/supervisord
logfile = /var/log/supervisord/supervisord.log
logfile_maxbytes = 50MB
logfile_backups = 10
@alejandrobernardis
alejandrobernardis / proc3ss_supervisord_service
Created February 14, 2013 16:33
proc3ss_supervisord_service
#!/bin/sh
# /etc/rc.d/init.d/supervisord
#
# Supervisor is a client/server system that
# allows its users to monitor and control a
# number of processes on UNIX-like operating
# systems.
#
# chkconfig: 345 83 04
#
@alejandrobernardis
alejandrobernardis / proc3ss_bash_profile
Last active December 13, 2015 18:18
proc3ss_bash_profile
# ((ak)) config
export HISTCONTROL=ignoredups:ignorespace
export HISTSIZE=5000
export HISTFILESIZE=1000
export HISTIGNORE="ls:cd:[bf]g:exit:..:...:l:l.:ll:la:h:history:edit-profile:reload-profile"
# ((ak)) helpers
alias l='ls -l';
alias l.='ls -d .*'
alias ll='ls -Al';
@alejandrobernardis
alejandrobernardis / 10gen.repo.i686
Created February 14, 2013 18:19
10gen.repo.i686
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686
gpgcheck=0