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 java.io.Serializable; 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(StandardSession.java:1325)
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1286)
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
at homeactions.LoginAction.execute(LoginAction.java:146)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
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/nginx.pid;
View gist:909305
git clone https://github.com/cowboyd/fog.hpi
git clone https://github.com/jenkinsci/jenkins
git clone https://github.com/stapler/stapler.git
git clone https://github.com/cowboyd/jenkins.rb
STAPLER:
cd stapler
mvn install
cd jruby
mvn install
@michaelneale
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 }
end
View consulting_demands.md

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
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
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, realestate.com.au and realcommercial.com.au.
In the international marketplace, we operate the market-leading Italian property site, casa.it.
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 &
node_version=v0.8.14
install_name=node-$node_version-linux-x64
node_home=$PWD/$install_name
if [ ! -e $install_name.tar.gz ]
then
@michaelneale
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": "https://playground.ci.cloudbees.com/github-pull-request-hook/"
}