Skip to content

Instantly share code, notes, and snippets.

View michaelneale's full-sized avatar
Not updating github status

Michael Neale michaelneale

Not updating github status
View GitHub Profile
View gist:833307
import; public class UserDetailsBean implements Serializable{
private int userId;
private String fisrtName = null;
private String lastName = null;
private String emailId = null;
private String password = null;
private String gender = null;
private String street = null;
private String city = null;
private String state = null;
View gist:833308
Feb 16, 2011 9:13:56 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute userDetailsBean
at org.apache.catalina.session.StandardSession.setAttribute(
at org.apache.catalina.session.StandardSession.setAttribute(
at org.apache.catalina.session.StandardSessionFacade.setAttribute(
at homeactions.LoginAction.execute(
at org.apache.struts.action.RequestProcessor.processActionPerform(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
View gist:838344
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/;
View gist:909305
git clone
git clone
git clone
git clone
cd stapler
mvn install
cd jruby
mvn install
michaelneale / change_make
Created July 12, 2011 10:16
Call make when files change
View change_make
#!/usr/bin/env ruby
# Will monitor a directory for changes, call make when picked up (after a tiny pause)
def new_timestamp()
timestamps = Dir.glob("./src/*.erl").map do |m| File.atime(m).to_i end
timestamps.inject { |i,j| i + j }

Since Obie Fernandez posted his demands as a consultant I thought I would post mine too.

  • I will be paid $10,000 per day, in $50 bills, in a titanium briefcase that you will purchase for the sole purpose of providing a container for my money. You may not re-use the briefcase for the next day's payment.
  • The $50 bills must have been printed in the last three months and handled by no more than 2 people.
  • Anybody handling the money must do so with clean white gloves that must be placed on the hand immediately before touching the briefcase. If the hand leaves the briefcase, the white gloves must be replaced with new ones before the briefcase is touched again.
  • I will arrive in your city by a private jet. Fuel and any other costs incurred by this trip will be paid by you, and is not included in the $10k/day fee.
  • Transportation from my jet to your workplace must be performed by a driver who is between the ages of 50
michaelneale / Globals
Created May 10, 2012 01:59
Basic request and error counter for Play! Framework v2
View Globals
import java.util.{TimerTask, Timer}
import play.api.GlobalSettings
import play.api.mvc.{Action, RequestHeader}
import play.api.mvc.Results._
* @author michael neale
michaelneale / gist:4146597
Created November 26, 2012 04:19 — forked from jon-eaves/gist:4146581
Senior Software and Systems Engineer
View gist:4146597
This is the official announcement of a new job at REA
We are home to Australia’s No.1 residential and commercial property websites, and
In the international marketplace, we operate the market-leading Italian property site,
Now this is the story all about how
My life got flipped, turned upside down
And I'd like to take a minute just sit right there
I'll tell you how I became the prince of a town called Bel-air
View gist:4619567
export DISPLAY=:1
Xvfb :1 &
if [ ! -e $install_name.tar.gz ]
michaelneale / gist:5028280
Created February 25, 2013 07:15
How to set up a pull request for Jenkins DEV@cloud without giving plugin access
View gist:5028280
Place something like this this in pullhooks.json:
{ "name": "web",
"active": true,
"events": ["pull_request"],
"config": {
"url": ""