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
diff --git a/lib/uniform_notifier.rb b/lib/uniform_notifier.rb | |
index f362948..41e4022 100644 | |
--- a/lib/uniform_notifier.rb | |
+++ b/lib/uniform_notifier.rb | |
@@ -42,5 +42,13 @@ module UniformNotifier | |
def raise=(exception_class) | |
UniformNotifier::Raise.setup_connection(exception_class) | |
end | |
+ | |
+ def add_notifier(logger) |
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
diff --git a/lib/bullet.rb b/lib/bullet.rb | |
index f6c522f..4569927 100644 | |
--- a/lib/bullet.rb | |
+++ b/lib/bullet.rb | |
@@ -95,6 +95,10 @@ module Bullet | |
end | |
end | |
+ def custom_logger=(logger) | |
+ UniformNotifier.add_notifier(logger) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Chat Example Using STOMP Over WebSockets</title> | |
<!--[if lt IE 9]> | |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<link href="/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="/css/bootstrap.min.responsive.css" rel="stylesheet"> |
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
var net = require("net") | |
var LZ = require("lazy-socket") | |
var port = process.env.PORT || 3000 | |
var hosts = process.argv.slice(0).splice(2) | |
if (hosts.length === 0) { | |
console.log("you must pass at least one host to pass traffic too") | |
process.exit(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
I, [2014-04-28T16:35:46.627453 #59837] INFO -- Kitchen: -----> Starting Kitchen (v1.2.1) | |
I, [2014-04-28T16:35:47.477559 #59837] INFO -- Kitchen: -----> Cleaning up any prior instances of <default-ubuntu-1204> | |
I, [2014-04-28T16:35:47.477726 #59837] INFO -- Kitchen: -----> Destroying <default-ubuntu-1204>... | |
I, [2014-04-28T16:35:47.481514 #59837] INFO -- Kitchen: -----> Testing <default-ubuntu-1204> | |
I, [2014-04-28T16:35:47.481598 #59837] INFO -- Kitchen: -----> Creating <default-ubuntu-1204>... | |
I, [2014-04-28T16:38:37.263288 #59837] INFO -- Kitchen: -----> Converging <default-ubuntu-1204>... | |
E, [2014-04-28T16:38:39.281204 #59837] ERROR -- Kitchen: ------Exception------- | |
E, [2014-04-28T16:38:39.281382 #59837] ERROR -- Kitchen: Class: Kitchen::ActionFailed | |
E, [2014-04-28T16:38:39.281604 #59837] ERROR -- Kitchen: Message: Failed to complete #converge action: [task was terminated] | |
E, [2014-04-28T16:38:39.281698 #59837] ERROR -- Kitchen: ---Nested Exception--- |
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
Bringing machine 'default' up with 'vmware_fusion' provider... | |
==> default: Cloning VMware VM: 'chef/ubuntu-12.04'. This can take some time... | |
==> default: Checking if box 'chef/ubuntu-12.04' is up to date... | |
==> default: Verifying vmnet devices are healthy... | |
==> default: The cookbook path '/Users/addisonj/.berkshelf/default/vagrant/berkshelf-20140423-59235-1883t4t-default' doesn't exist. Ignoring... | |
[0mUpdating Vagrant's berkshelf: '/Users/addisonj/.berkshelf/default/vagrant/berkshelf-20140423-59235-1883t4t-default'[0m | |
[0mResolving cookbook dependencies...[0m | |
[0mFetching 'base-capsule' from source at .[0m | |
[0mFetching cookbook index from http://mychef.server.com:26200...[0m | |
[0mInstalling base (0.2.24) from http://mychef.server.com:26200 ([chef_server] https://chef.dblayer.com:443/)[0m |
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 addisonj on github. | |
* I am addisonj (https://keybase.io/addisonj) on keybase. | |
* I have the public key with fingerprint 7229 8E1C 5B4D 46A8 1165 BFAF 4CC0 5809 E627 6843 | |
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
^C^Croot@codetrain-base:~# docker run -i -t -p 3000:3000 ubuntu /bin/bash | |
root@7c761d543db3:/# nc -kl 3000 & | |
[1] 9 | |
root@7c761d543db3:/# echo "hello" | nc 192.168.133.128 3000 | |
hello | |
root@7c761d543db3:/# ifconfig | |
eth0 Link encap:Ethernet HWaddr 96:81:71:3a:55:8d | |
inet addr:172.17.0.3 Bcast:0.0.0.0 Mask:255.255.0.0 | |
inet6 addr: fe80::9481:71ff:fe3a:558d/64 Scope:Link | |
UP BROADCAST RUNNING MTU:1500 Metric: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
Feb 14 19:46:20 es-logs-0 c0: elasticsearch | [2014-02-14 19:46:20,414][WARN ][cluster.service ] [es-logs-0] failed to reconnect to node [es-logs-0][1ocHvK_vS126Bo4KWLMvgA][c0][inet[/172.16.23.128:9300]]{master=true} | |
Feb 14 19:46:20 es-logs-0 c0: elasticsearch | org.elasticsearch.transport.ConnectTransportException: [es-logs-0][inet[/172.16.23.128:9300]] connect_timeout[30s] | |
Feb 14 19:46:20 es-logs-0 c0: elasticsearch | at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:718) | |
Feb 14 19:46:20 es-logs-0 c0: elasticsearch | at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:647) | |
Feb 14 19:46:20 es-logs-0 c0: elasticsearch | at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:615) | |
Feb 14 19:46:20 es-logs-0 c0: elasticsearch | at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129) | |
Feb 14 19:46:20 es-logs-0 c0: elasticsearch | at org.elasticsearch.cluster.service |
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
var fileProcessor = require("../lib/fileProcessor.js") | |
var assert = require("assert"); | |
var fs = require("fs"); | |
var decl = { | |
"id" : "some_unique_id", | |
"files" : [ | |
{ | |
"filename" : "main.js", |