Skip to content

Instantly share code, notes, and snippets.

View johanek's full-sized avatar

Johan van den Dorpe johanek

View GitHub Profile
@johanek
johanek / readme_on_cd
Created December 17, 2012 15:10
display README when changing directory
tcsh:
alias cwdcmd "if (-e README) cat README fi"
bash:
PROMPT_COMMAND="[[ -e README ]] && cat README"
@johanek
johanek / gist:2627357
Created May 7, 2012 11:41
idea for cron manager
What do I want to do?
- Managed cronjobs via Version Control
- Get better reporting on the jobs
- Not get spammed by cron emails
What do I want to know about cronjobs?
- Did the command fail?
- Did the command actually run?
@johanek
johanek / gist:2508733
Created April 27, 2012 12:18
CentOS 6 graphite
yum install -y pycairo mod_python Django python-ldap python-memcached python-sqlite2 \
bitmap bitmap-fonts python-devel python-crypto pyOpenSSL zope gcc django-taggin
yum install python-Twisted <- fpm build
yum install pythin-pip <- fpm
test:
yum install python-carbon python-whisper python-graphite-conf
cd /opt/graphite/conf