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
require 'csv' | |
#prod | |
project = Project.find(593) | |
zoo_user = User.find(1) | |
subject_set = SubjectSet.find(681) | |
#staging | |
# project = Project.find(450) | |
# zoo_user = User.find(27) |
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
require 'csv' | |
#prod | |
project = Project.find(593) | |
zoo_user = User.find(1) | |
subject_set = SubjectSet.find(681) | |
#staging | |
# project = Project.find(450) | |
# zoo_user = User.find(27) |
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
require 'csv' | |
#prod | |
project = Project.find(593) | |
zoo_user = User.find(1) | |
subject_set = SubjectSet.find(681) | |
#staging | |
# project = Project.find(450) | |
# zoo_user = User.find(27) |
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
require 'csv' | |
#prod | |
project = Project.find(593) | |
zoo_user = User.find(1) | |
subject_set = SubjectSet.find(681) | |
#staging | |
# project = Project.find(450) | |
# zoo_user = User.find(27) |
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
### Keybase proof | |
I hereby claim: | |
* I am marten on github. | |
* I am marten (https://keybase.io/marten) on keybase. | |
* I have a public key whose fingerprint is BEFE 8DE2 290F EE5C CA5C 3C09 58CC FD07 03C0 DA07 | |
To claim this, I am signing this object: |
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
class BalancerState | |
InvalidStatus = Class.new(StandardError) | |
def initialize(disk_access = File) | |
@disk_access = disk_access | |
end | |
def call(env) | |
if balancer_member? | |
[200, {'Content-Type' => 'application/json'}, ['{"status": "ok", "member": true}']] |
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
import subprocess | |
import sys | |
import time | |
proc = subprocess.Popen(['/Users/marten/.rubies/ruby-2.1.1/bin/ruby', '/Users/marten/tmp/python-processes/slave.rb'], | |
stdin=subprocess.PIPE, stdout=sys.stdout) | |
for i in range(5): | |
print "Python preparing to send newline" | |
proc.stdin.write("\n") |
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
source 'https://rubygems.org' | |
gem 'sqlite3' | |
gem 'rspec', '2.14' | |
gem 'activerecord' |
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
set :format, :capture | |
# rest of your deploy.rb goes here | |
after 'deploy:started', 'notify:flowdock:started' do | |
$flowdock_deploy_thread = Deployer::Flowdock::Deployment.new(application: fetch(:application), | |
environment: fetch(:rails_env) || fetch(:rack_env), | |
repo_name: fetch(:repo_url).gsub(/\Agit@github.com:(.*).git/, "\\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
org.mule.providers.FatalConnectException: ReconnectStrategy "org.mule.providers.SingleAttemptConnectionStrategy" failed to reconnect receiver on endpoint "mllp://127.0.0.1:6661" | |
at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:34) | |
at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:67) | |
at org.mule.providers.AbstractMessageReceiver.start(AbstractMessageReceiver.java:397) | |
at org.mule.providers.AbstractConnector.registerListener(AbstractConnector.java:518) | |
at com.webreach.mirth.connectors.mllp.MllpConnector.registerListener(MllpConnector.java:423) | |
at org.mule.impl.model.AbstractModel.registerListeners(AbstractModel.java:221) | |
at org.mule.impl.model.AbstractModel.start(AbstractModel.java:353) | |
at org.mule.MuleManager.start(MuleManager.java:730) | |
at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:207) |
OlderNewer