Skip to content

Instantly share code, notes, and snippets.

[jgnagy@Gnagy-Rosetta-MBP13:erb4cfn-rim] $ dig @ns-946.awsdns-54.net nva.blackberryorigin.com SOA
; <<>> DiG 9.8.3-P1 <<>> @ns-946.awsdns-54.net nva.blackberryorigin.com SOA
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 10557
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
[jgnagy@Gnagy-Rosetta-MBP13:erb4cfn-rim] $ git diff
diff --git a/snippets/instance_typical_parameters.json.erb b/snippets/instance_typical_parameters.json.erb
index c672fc5..b4a570c 100644
--- a/snippets/instance_typical_parameters.json.erb
+++ b/snippets/instance_typical_parameters.json.erb
@@ -16,7 +16,7 @@
"InstanceSubnet": {
"Description" : "Subnet",
"Type" : "String",
- "Default" : "subnet-6cf61e35",
@jgnagy
jgnagy / ActiveMQConsumer.java
Last active August 29, 2015 14:18
Java ActiveMQ JMS Consumer
import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.Connection;
import javax.jms.DeliveryMode;
import javax.jms.Destination;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageConsumer;
@jgnagy
jgnagy / catstomp.rb
Created April 9, 2015 21:11
Ruby STOMP publisher
#!/usr/bin/env ruby
# Note: This is mostly not my code... shamelessly borrowed from ActiveMQ
require 'rubygems'
require 'stomp'
@port = 61613
@host = "localhost"
@user = ENV["STOMP_USER"];

Keybase proof

I hereby claim:

  • I am jgnagy on github.
  • I am jgnagy (https://keybase.io/jgnagy) on keybase.
  • I have a public key whose fingerprint is BB73 D585 0DED D4F2 935E 1D60 78FA 502F 4CCA A201

To claim this, I am signing this object:

@jgnagy
jgnagy / gist:5482519
Created April 29, 2013 15:51
DB2 stopping, round II
stop() {
echo -n $"Stopping $prog: "
dprofile || failure
db2gcf -s 1>>${DB2LOG} 2>&1
RETVAL=$?
if [ $RETVAL -gt 0 ]; then
echo -n $"${prog} is already stopped"
failure
RETVAL=3
echo ""
@jgnagy
jgnagy / gist:5482512
Created April 29, 2013 15:50
DB2 stopping...
stop() {
LOGFILE=$(mktemp)
echo -n $"Stopping IBM DB2 [${DB2USER}]"
# Is DB2 already stopped?
status
if [ $RETVAL -ne 0 ]; then
# Already stopped return 0
success
#!/usr/bin/env ruby
require './lib/framework/installer.rb'
include InstallerFramework
class TestInstaller < BaseInstaller
before { puts "Before hook 1" }
before { puts "Before hook 2" }