Skip to content

Instantly share code, notes, and snippets.

View steadweb's full-sized avatar

Luke Steadman steadweb

View GitHub Profile
@steadweb
steadweb / gist:9652113
Created March 19, 2014 21:47
handy git lg
git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
<?PHP
// Generates a strong password of N length containing at least one lower case letter,
// one uppercase letter, one digit, and one special character. The remaining characters
// in the password are chosen at random from those four sets.
//
// The available characters in each set are user friendly - there are no ambiguous
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
// makes it much easier for users to manually type or speak their passwords.
//
// Note: the $add_dashes option will increase the length of the password by
@steadweb
steadweb / gist:5063257
Created March 1, 2013 08:29
LESS ant build script.
<?xml version="1.0" ?>
<project default="default" basedir=".">
<target name="default" depends="init, less" />
<target name="init">
<echo>-- Initialize Variables</echo>
<property name="less.path" value="httpdocs/assets/less" />
<echo message="less.path: ${less.path}" />