Skip to content

Instantly share code, notes, and snippets.

View tobowers's full-sized avatar

Topper Bowers tobowers

View GitHub Profile
@tobowers
tobowers / ossec.gpg
Created September 7, 2016 08:05
the ossec gpg key from http://ossec.wazuh.com/key/RPM-GPG-KEY-OSSEC on 7SEP2016
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
mQENBFXvILcBCAC1yi/6q3rDQLRf0TtTw25sxP/v7v5f0gR6Wd9nJCHjJ3SqU64y
idA17+ENc3+ybETJ6uJDSTyVG0cvaV2fOzMPVmLVrOSgAinscH50BNteVee38ryb
p4GRhdExPcDwsEH2/wcBHNgFpLLdmh6ih4B+bN7uO/u37Ksa8Rs6RYRHvCmpbCo9
tBRBDUMfflNHO/num0NSHhhDyukbp3DR0Tbhp1r2DRh9bhSs505URkqEDHyeY2tu
qzmZaM4G9j7wKIleR4sLvx9mNLUd1WhBeq2jtPaZNp8JMiYEWVcqVyxyiVofGq00
XPexnCpqTWQiDtrwmOPtWXU3KGBDKkpQAliVABEBAAG0H0pvc2UgTHVpcyBSdWl6
IDxqb3NlQHdhenVoLmNvbT6JATkEEwECACMFAlXvILcCGwMHCwkIBwMCAQYVCAIJ
[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]
{
id: 1234,
FirstName: [
{
beginTime: 2014-03-02 1:02 AM
endTime: null
value: "John"
},
{
beginTime: 2013-03-02 1:04 PM
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
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).
var Masthead = new CustomComponent;
Masthead.extend({
typeIntoLocation: function(text) {
parent
.findById("q")
.click()
.type(text)
}
});
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>
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 August 29, 2015 14:07
simple set key
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 September 15, 2014 19:45
a quick select implementation
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