Skip to content

Instantly share code, notes, and snippets.

@giddie
giddie / nogtk.patch
Created February 5, 2013 14:45
Patch required to build ArchLinux slurm-llnl package from AUR without GTK.
diff --git a/configure b/configure
index e445e0d..0a997b4 100755
--- a/configure
+++ b/configure
@@ -20414,13 +20414,8 @@ rm -f core conftest.err conftest.$ac_objext \
rm -f conf.glibtest
- if test "x$ac_glib_test" = "xyes"; then
- BUILD_SVIEW_TRUE=
@giddie
giddie / dave.rb
Created May 22, 2012 14:47
A bit of fun for Dave :)
Ruby = 'Ruby'
class Kitson
def initialize(name)
puts "There is a new Kitson named #{name.capitalize}."
end
def is_enjoying?(something)
ret = (something == 'Ruby')
print "He "
@giddie
giddie / dmesg.txt
Created May 31, 2011 12:04
Linux kernel dmesg using kernel26-mainline 3.0rc1-1 from Archlinux AUR
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.0.0-rc1-mainline (root@unnamed) (gcc version 4.6.0 20110513 (prerelease) (GCC) ) #1 SMP PREEMPT Tue May 31 12:45:10 BST 2011
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz26-mainline root=/dev/mapper/unnamed-root ro quiet video=efifb:off
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
[ 0.000000] BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
[ 0.000000] BIOS-e820: 0000000020000000 - 0000000020200000 (reserved)
[ 0.000000] BIOS-e820: 0000000020200000 - 0000000040000000 (usable)
[ 0.000000] BIOS-e820: 0000000040000000 - 0000000040200000 (reserved)
= semantic_form_for @user, :html => {:class => 'pretty'} do |f|
= f.inputs do
= f.input :email
= f.input :name
= f.input :password
= f.input :password_confirmation
= f.input :roles, :as => :check_boxes, :label_method => :description, |
:required => true |
= f.buttons
Started POST "/users/7" for 127.0.0.1 at Tue Aug 03 10:35:00 +0100 2010
PK and serial sequence (5.7ms) SELECT attr.attname, seq.relname
FROM pg_class seq,
pg_attribute attr,
pg_depend dep,
pg_namespace name,
pg_constraint cons
WHERE seq.oid = dep.objid
AND seq.relkind = 'S'
AND attr.attrelid = dep.refobjid
diff --git a/OMakefile b/OMakefile
index 92de085..dc34346 100644
--- a/OMakefile
+++ b/OMakefile
@@ -25,8 +25,8 @@ OCAML_CLIBS += ometastore_stub
OCAML_OTHER_LIBS += unix str
OCamlProgram(ometastore, folddir util ometastore)
-OCamlProgram(find-git-repos, folddir util find-git-repos)
-OCamlProgram(find-git-files, folddir util find-git-files)
### SENT ###
POST /log/submit HTTP/1.1
User-Agent: HTTP%20Client0.9.1 CFNetwork/422.11 Darwin/9.6.0 (i386) (MacBookPro3%2C1)
Content-Length: 1107
Connection: close
Host: 192.168.96.10:3000
json={"timestamp":1233754228319,"objectType":"Account","uniqueKey":"pdgiddie","eventName":"login","properties":{"userId":"pdgiddie","isSandboxAccount":false,"token":"<TOKEN>","registrationSite":"UK","feedbackRating":66,"numUnreadMessages":0}}
### RECEIVED ###
dannpg@Lemmie ~/Work/Projects/ebay-logger]./script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.2.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).