Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/perl
use strict;
use LWP;
use JSON;
# The I-DCC Search URL and default parameters
my $idcc_search_url = "http://www.sanger.ac.uk/mouseportal/solr/select";
my $rows = 10;
my $start = 0;
@dazoakley
dazoakley / perl_loading_script.pl
Created August 6, 2010 11:34
I-DCC targ_rep wiki (example) scripts
#!/usr/bin/env perl
#
# Helper functions for interacting with the IKMC Targeting Repository
#
# Authors:: Darren Oakley (mailto:[email protected])
# Nelo Onyiah (mailto:[email protected])
#
use strict;
use warnings FATAL => 'all';
@dazoakley
dazoakley / passenger_process_monitor.rb
Created January 6, 2012 10:28
Script for killing errant passenger processes
#!/usr/bin/env ruby
#
# Passenger Process Monitor
#
# By Darren Oakley
# Based heavily on a script by James Smith (https://gist.github.com/851520)
# That in turn was based on a similar script by Jon Bettcher
#
# - Check memory usage of all paseenger child process and kill if grows too large.
@dazoakley
dazoakley / My output....
Created February 28, 2012 11:36
faye.ru
d.oakley@l4493:~/projects/curi (*)
> rackup faye.ru -s thin -E production curi-155 [b193650] modified
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:9292, CTRL+C to stop
/Users/d.oakley/.rvm/gems/ruby-1.9.2-p180/gems/faye-websocket-0.4.1/lib/faye/websocket.rb:119:in `initialize': wrong number of arguments (0 for 1..3) (ArgumentError)
from /Users/d.oakley/.rvm/gems/ruby-1.9.2-p180/gems/faye-websocket-0.4.1/lib/faye/websocket.rb:119:in `open'
from /Users/d.oakley/.rvm/gems/ruby-1.9.2-p180/gems/faye-websocket-0.4.1/lib/faye/websocket.rb:119:in `block in initialize'
from /Users/d.oakley/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in `call'
from /Users/d.oakley/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in `block in run_deferred_callbacks'