Skip to content

Instantly share code, notes, and snippets.

View mammadori's full-sized avatar

Marco Amadori mammadori

  • Rovereto (TN) -- Italy
View GitHub Profile

[wafflepool][1] monitor It just quick and dirty code.

Requirements

  • python-rrdtool
  • requests

Install

Just clone this, and add minutely cronjob

@mammadori
mammadori / gist:2700758
Created May 15, 2012 10:45
lxc iptables
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@mammadori
mammadori / runinenv.sh
Created April 26, 2012 15:19 — forked from parente/runinenv.sh
run a command in virtualenv, useful for supervisord
#!/bin/bash
VENV=$1
if [ -z $VENV ]; then
echo "usage: runinenv [virtualenv_path] CMDS"
exit 1
fi
. ${VENV}/bin/activate
shift 1
echo "Executing $@ in ${VENV}"
exec "$@"