Skip to content

Instantly share code, notes, and snippets.

@spikex
spikex / zen.text
Created July 12, 2019 16:53
%A gist from Octokit
Keep it logically awesome.
@spikex
spikex / zen.text
Created July 12, 2019 16:49
%A gist from Octokit
Keep it logically awesome.
@spikex
spikex / zen.text
Created July 12, 2019 16:47
%A gist from Octokit
Keep it logically awesome.
@spikex
spikex / zen.text
Created July 12, 2019 16:45
%A gist from Octokit
Keep it logically awesome.
#!/bin/bash
#
# god Startup script for god (<a href="http://god.rubyforge.org">http://god.rubyforge.org</a>)
#
# chkconfig: - 99 1
# description: God is an easy to configure, easy to extend monitoring \
# framework written in Ruby.
#
CONF_FILE=/etc/god/god.conf
@spikex
spikex / god.conf
Last active August 29, 2015 14:07
# Run with "god -c god.conf"
ENV['RAILS_ENV'] = "production"
rails_root = ENV['RAILS_ROOT'] = "/var/www/spencers/current"
ENV['RAKE_ROOT'] = "/path/to/your/rake/bin"
load "#{rails_root}/config/unicorn.god"

Keybase proof

I hereby claim:

  • I am spikex on github.
  • I am spikex (https://keybase.io/spikex) on keybase.
  • I have a public key whose fingerprint is 8C89 F242 1C5A BFD6 BE30 C855 62BE 3C94 90AD FF53

To claim this, I am signing this object:

@spikex
spikex / quiz-1.md
Created September 26, 2012 15:48 — forked from ahoward/quiz-1.md
quiz-1.md
So you think you wanna be a web developer...

Fork this, update your copy with answers.

They don't need to be precise - pseudo-code is fine in most cases.

Some questions don't have correct answers.

@spikex
spikex / nsterm.m-patch
Created October 7, 2011 20:09
Emacs 23.3 Lion Title Bar Patch
diff --git a/src/nsterm.m b/src/nsterm.m
index 30b73c2..74347f0 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5106,7 +5106,8 @@ ns_term_shutdown (int sig)
win = [[EmacsWindow alloc]
initWithContentRect: r
- styleMask: (NSResizableWindowMask |
+ styleMask: (NSTitledWindowMask |
@spikex
spikex / gist:735197
Created December 9, 2010 19:34
KVM crash
Booting 'CentOS (2.6.18-194.26.1.el5)'
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-2.6.18-194.26.1.el5 ro root=LABEL=/ console=ttyS0,115200n8
[Linux-bzImage, setup=0x1e00, size=0x1db61c]
initrd /boot/initrd-2.6.18-194.26.1.el5.img
[Linux-initrd @ 0x1fd57000, 0x288eec bytes]
Linux version 2.6.18-194.26.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Nov 9 12:54:20 EST 2010