Skip to content

Instantly share code, notes, and snippets.

View SteveEdson's full-sized avatar

Steve Edson SteveEdson

View GitHub Profile
<?php
/**
* Sends statistics to the stats daemon over UDP
*
**/
class StatsD {
/**
@SteveEdson
SteveEdson / showcronjobs.sh
Created February 27, 2013 09:34
Show user and system cronjobs
#!/bin/bash
# Taken from http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users
# By yukondude
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")