Skip to content

Instantly share code, notes, and snippets.

Jim Wharton nobleach

Block or report user

Report or block nobleach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nobleach
nobleach / gist:d196eabe801ad2789fb6
Created Jun 3, 2014
Quick nasty hosts file swiitch
View gist:d196eabe801ad2789fb6
HOSTS_FILE="/etc/hosts"
PRISTENE_HOSTS="$HOME/hosts-clean"
TEST_ENV_HOSTS="$HOME/hosts-test"
function switchhosts {
if [ $1 = "prod" ]
then
sudo cp "$PRISTENE_HOSTS" "$HOSTS_FILE"
fi
View gist:11400269
buildQuery: function() {
var query = [];
var name = this.username.value;
var startDate = this.startDate.value;
var endDate = this.endDate.value;
if(name) {
query.push("username LIKE '%"+name+"%'");
}
You can’t perform that action at this time.