Skip to content

Instantly share code, notes, and snippets.

View timmahoney's full-sized avatar

Tim Mahoney timmahoney

View GitHub Profile
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@lukemorton
lukemorton / README.markdown
Created July 8, 2011 14:44
init.d file for statsd and carbon on rhel

Customised by Luke Morton

Ideally do this as SUDO

yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl

Install node

wget http://nodejs.org/dist/node-v0.4.9.tar.gz
@timmahoney
timmahoney / Cron Starter
Last active December 25, 2015 15:49
Starter for a crontab. Copy this into your crontab in order to have a little cheat sheet for creating scheduled tasks.
[email protected]
# +------------------------- Minute of the Hour ( 0 - 59, * to run every minute )
# | +---------------------- Hour of the Day ( 0 - 23, * to run every hour )
# | | +------------------- Day of the Month ( 1 - 31, * to run every day )
# | | | +---------------- Month ( 1 - 12, * to run every month )
# | | | | +------------- Day of Week ( 0 - 7, Sunday is both 0 and 7, * to run every day )
# | | | | | +---------- User to run command as ( Defaults to the user that set up this crontab, Beware permissions! )
# | | | | | | +---- Command to Execute (
# | | | | | | |