Skip to content

Instantly share code, notes, and snippets.

View alejandrobernardis's full-sized avatar
🐻

Alejandro M. BERNARDIS alejandrobernardis

🐻
View GitHub Profile
#!/bin/bash
# by http://github.com/jehiah
# this prints out some branch status (similar to the '... ahead' info you get from git status)
# example:
# $ git branch-status
# dns_check (ahead 1) | (behind 112) origin/master
# master (ahead 2) | (behind 0) origin/master
tot_diff=0
@alejandrobernardis
alejandrobernardis / command.sh
Last active December 16, 2015 21:09
PYENV Install
cd ~ | curl -O https://gist.github.com/alejandrobernardis/5497458/raw/cfa73fdcadead945eddcdf10913228aa49c12ef8/install-env.sh | chmod +x install-env.sh | ./install-env.sh
@alejandrobernardis
alejandrobernardis / supervisord
Created February 14, 2013 18:25
supervisord
#!/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 / supervisord.conf
Created February 14, 2013 18:24
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 / bash_profile
Created February 14, 2013 18:23
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 / nginx.repo
Created February 14, 2013 18:21
nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
@alejandrobernardis
alejandrobernardis / 10gen.repo.x86_64
Created February 14, 2013 18:20
10gen.repo.x86_64
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
@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
@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

@nicolargo
nicolargo / gist:4647457
Created January 27, 2013 08:54
Glances 1.6 default configuration file
[cpu]
# Limits values for CPU user in %
# Defaults values if not defined: 50/70/90
user_careful=50
user_warning=70
user_critical=90
# Limits values for CPU system in %
# Defaults values if not defined: 50/70/90
system_careful=50
system_warning=70