Skip to content

Instantly share code, notes, and snippets.

Topper Bowers tobowers

Block or report user

Report or block tobowers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:03407cf0c6d37124cd15
[root@vagrant /]# cat /var/log/tomcat6/catalina.out
Dec 16, 2015 22:12:43 +0000 [5287 1] com.newrelic INFO: Agent is using Logback
Dec 16, 2015 22:12:43 +0000 [5287 1] com.newrelic ERROR: Unable to start New Relic agent: com.newrelic.agent.config.ConfigurationException: Failed to find the configuration file
com.newrelic.agent.config.ConfigurationException: Failed to find the configuration file
at com.newrelic.agent.config.ConfigServiceFactory.getConfigFile(ConfigServiceFactory.java:57) ~[newrelic.jar:3.5.0]
at com.newrelic.agent.config.ConfigServiceFactory.createConfigService(ConfigServiceFactory.java:28) ~[newrelic.jar:3.5.0]
at com.newrelic.agent.service.ServiceManagerImpl.<init>(ServiceManagerImpl.java:99) ~[newrelic.jar:3.5.0]
at com.newrelic.agent.Agent.premain(Agent.java:195) ~[newrelic.jar:3.5.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_91]
View gist:f4e62e3ec482c59e905c
{
id: 1234,
FirstName: [
{
beginTime: 2014-03-02 1:02 AM
endTime: null
value: "John"
},
{
beginTime: 2013-03-02 1:04 PM
View gist:394370c13c0beafe2dd5
Talk #1: ETL Architecture For Experimentation at Flatiron Health
Gil will share some of the principles and techniques used by Flatiron to build the nation’s largest cancer database. Flatiron Health’s platform connects cancer centers across the country on a common technology infrastructure, supporting treatment for about 1 in 5 active cancer patients in the U.S. Their architecture is focused on enabling rapid development iterations with cancer specialists, nurses, and other stakeholders. Rapidly integrating medical data from hundreds of heterogeneous source systems required Flatiron to develop a unique data integration and processing framework. Iterating quickly while incorporating knowledge from oncologists, nurses, medical informaticists, and healthcare analysts has largely shaped this architecture as well.
The talk will focus on tooling and the architecture that we built to support rapid iteration on complex ETL processes (iteration itself is quick) and minimizes knowledge translation iterations (number
View insruanceplan
orientdb {db=vitals-test}> select expand(both('Specializes').both('Accepts').name) from Specialty
----+------+-----
# |@CLASS|value
----+------+-----
0 |null |aetna
1 |null |aetna
----+------+-----
2 item(s) found. Query executed in 0.003 sec(s).
View goodDsl.js
var Masthead = new CustomComponent;
Masthead.extend({
typeIntoLocation: function(text) {
parent
.findById("q")
.click()
.type(text)
}
});
View gist:36250268ec0521d24bac
node_modules/.bin/intern-runner config=tests/intern functionalSuites=tests/functional/index
Listening on 0.0.0.0:9000
Starting tunnel...
UnknownError: [POST http://localhost:4444/wd/hub/session / {"desiredCapabilities":{"browserName":"safari","version":"7","platform":"OS X 10.9","name":"tests/intern","idle-timeout":60,"selenium-version":"2.44.0"}}] No enum constant org.openqa.selenium.Platform.OS X 10.9
at Server._post <node_modules/intern/node_modules/leadfoot/Server.js:68:9>
at Server.createSession <node_modules/intern/node_modules/leadfoot/Server.js:290:15>
at Suite.setup <node_modules/intern/runner.js:222:22>
at callOnSuite <node_modules/intern/lib/Suite.js:157:42>
at call <node_modules/intern/lib/Suite.js:208:13>
at Suite.run <node_modules/intern/lib/Suite.js:306:4>
View bad.rb
class ApiFrontEnd
def consume(attrs)
instance = Foo.new(attrs)
instance.include(SomeModule)
instance.method_from_some_module
end
end
@tobowers
tobowers / client.rb
Last active Aug 29, 2015
simple set key
View client.rb
class Client < ActiveRecord::Base
after_initialize :set_key
private
def set_key
self.client_key ||= SecureRandom.urlsafe_base64(20, false)
end
end
@tobowers
tobowers / select.rb
Created Sep 15, 2014
a quick select implementation
View select.rb
class Array
def select(&block)
new_array = []
self.each do |array_element|
new_array << array_element if block.call(array_element)
end
new_array
end
end
View gist:9916965
alerts on:
exceptions
http alerts
absence of events
dimensions of an event (queue wait time over 2 seconds, storage space used over 80%)
presence of a single event (oncall support request)
possibilities (for custom code)
You can’t perform that action at this time.