Skip to content

Instantly share code, notes, and snippets.

View bidulock's full-sized avatar

Darryl Bidulock bidulock

  • Tempus AI
  • Calgary, AB
View GitHub Profile
@bidulock
bidulock / ColourPatternLayout.java
Last active October 10, 2015 12:38
Colourify the level of a log4j message by overriding the PatternLayout
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Level;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.helpers.PatternConverter;
import org.apache.log4j.helpers.PatternParser;
import org.apache.log4j.spi.LoggingEvent;
public class ColourPatternLayout extends PatternLayout {
@bidulock
bidulock / login.user.js
Created May 3, 2012 16:48
sofi dev userscripts
// ==UserScript==
// @include http://localhost:3000/users/login
// ==/UserScript==
setTimeout(function () {
document.getElementsByName("email")[0].value = "[email protected]";
document.getElementsByName("password")[0].value = "abc..123";
document.getElementsByName("submit")[0].click();
}, 2000);