This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ejabberdctl ||= "/usr/local/sbin/ejabberdctl" | |
God.watch do |w| | |
w.name = "ejabberd" | |
w.interval = 30.seconds # default | |
w.start = "#{ejabberdctl} start" | |
w.stop = "#{ejabberdctl} stop" | |
w.restart = "#{ejabberdctl} restart" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias hns="hack && ship" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.after_initialize do | |
puts "[RAILS] Rails loaded successfully!" | |
unless Object.const_defined?(:IRB) || Object.const_defined?(:MY_DAEMON_CTL_STARTED) || Object.const_defined?(:MY_OTHER_DAEMON_CTL_STARTED) RAILS_ENV == 'test' | |
puts "[RAILS] Starting daemons..." | |
begin | |
MyDaemonController.instance.start | |
rescue ::DaemonController::AlreadyStarted => das | |
puts "MyDaemon already started..." | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>net.process-one.Ejabberd2</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by bryan helmkamp with slight modification by chris wanstrath | |
# and a bit of refactoring by saimon moore | |
# from http://www.brynary.com/2008/8/3/our-git-deployment-workflow | |
module GitCommands | |
extend self | |
def diff_staging | |
execute('git fetch') | |
puts `git diff origin/production origin/staging` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# god | |
# This service maintains a god (http://god.rubyforge.org/) instance from the point the system is | |
# started until it is shut down again. | |
start on runlevel 5 | |
stop on runlevel 0 | |
stop on runlevel 1 | |
stop on runlevel 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# god | |
# This service maintains a god (http://god.rubyforge.org/) instance from the point the system is | |
# started until it is shut down again. | |
description "service god.rb" | |
author "Saimon Moore <saimon@webtypes.com>" | |
start on startup | |
stop on runlevel 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gchm() { | |
rake git:branch:checkout_with_migrations[$1] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gchm() { | |
rake git:branch:checkout_with_migrations[$1] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FormBubbler = { | |
submittableInput: function(element) { | |
var element = $(element); | |
return ( element.match('input[type=text]') || element.match('input[type=password]') ); | |
}, | |
submitButton: function(element) { | |
var element = $(element); | |
return ( element.match('input[type=submit]') || element.match('input[type=image]') ); | |
}, |
OlderNewer