Skip to content

Instantly share code, notes, and snippets.

View kgorman's full-sized avatar

Kenny Gorman kgorman

View GitHub Profile
@kgorman
kgorman / README.md
Created January 24, 2023 21:06 — forked from magnetikonline/README.md
Python - comparing JSON data structures.

Python - comparing JSON data structures

A function compare_json_data(source_data_a,source_data_b), accepting structures populated with data loaded from json.load() and comparing for equality.

Example

$ ./compare.py 
Compare JSON result is: True
@kgorman
kgorman / apache-flink.rb
Last active December 19, 2017 16:33 — forked from thirteen37/apache-flink.rb
Apache Flink 1.4 Homebrew formula
@kgorman
kgorman / pyscript.py
Created April 13, 2016 21:29 — forked from nhoffman/pyscript.py
Python script template
#!/usr/bin/env python
"""A simple python script template.
"""
import os
import sys
import argparse
@kgorman
kgorman / setup_kafka.sh
Created October 14, 2015 16:40 — forked from ekampf/setup_kafka.sh
Setup Kafka (0.8.0) on OSX
brew install sbt
cd /tmp
wget http://apache.spd.co.il/kafka/0.8.0/kafka_2.8.0-0.8.0.tar.gz
tar -zxvf kafka_2.8.0-0.8.0.tar.gz -C /usr/local/
cd /usr/local/kafka_2.8.0-0.8.0
sbt update
sbt package
@kgorman
kgorman / gist:4169771
Created November 29, 2012 15:24 — forked from erikbeebe/gist:4166417
py code for sv
import bson
import pprint
import pymongo, pymongo.objectid
import sys
## Connect string
## Server: "localhost:27017",
## Database: "users"
## Write concern: 1 (acknowledge writes)
db = 'mongodb://rocketuser:rocketpass@localhost:27017/users?w=1'