Skip to content

Instantly share code, notes, and snippets.

View jarheadjred's full-sized avatar

Jared Olhoft jarheadjred

View GitHub Profile
@jarheadjred
jarheadjred / docker-compose.yaml
Created March 9, 2017 17:21
copied from confluent kafka stack example. may modify for local dev connections
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000

Keybase proof

I hereby claim:

  • I am jarheadjred on github.
  • I am jaredolhoft (https://keybase.io/jaredolhoft) on keybase.
  • I have a public key whose fingerprint is 52AD 28C4 6418 BFB9 DEA5 FF27 B972 AE93 8E88 7E0A

To claim this, I am signing this object:

// replace the previous signKey function with this one calling the CryptoJS Library instead of Google's libraries.
// It assumes that you have added the CryptoJS library as a file in your google script project.
//
/* Encode with standard HMAC-SHA512 */
function signKey(url, secret) {
var signature = CryptoJS.HmacSHA512(url, secret).toString();
Logger.log(signature);
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
var CryptoJS=CryptoJS||function(a,j){var c={},b=c.lib={},f=function(){},l=b.Base={extend:function(a){f.prototype=this;var d=new f;a&&d.mixIn(a);d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)});d.init.prototype=d;d.$super=this;return d},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},
u=b.WordArray=l.extend({init:function(a,d){a=this.words=a||[];this.sigBytes=d!=j?d:4*a.length},toString:function(a){return(a||m).stringify(this)},concat:function(a){var d=this.words,M=a.words,e=this.sigBytes;a=a.sigBytes;this.clamp();if(e%4)for(var b=0;b<a;b++)d[e+b>>>2]|=(M[b>>>2]>>>24-8*(b%4)&255)<<24-8*((e+b)%4);else if(65535<M.le