Skip to content

Instantly share code, notes, and snippets.

View jrglee's full-sized avatar

Jorge Lee jrglee

  • Arc Boat Company
  • San Francisco, CA
View GitHub Profile
@jrglee
jrglee / build.gradle
Last active March 31, 2016 04:54
Initial Gradle build for Java projects
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
compile 'org.projectlombok:lombok:1.16.8'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:3.2.0'
@jrglee
jrglee / build.gradle
Created March 31, 2016 04:39
Initial Gradle build for Scala project
plugins {
id "com.github.maiflai.scalatest" version "0.11"
}
apply plugin: 'scala'
repositories {
mavenCentral()
}
@jrglee
jrglee / docker-compose.yml
Created March 7, 2016 06:25
Docker - elasticsearch cluster
version: '2'
services:
master:
image: elasticsearch:2.2
container_name: es-master
command: elasticsearch -Des.node.master=true -Des.node.data=false
networks:
- cluster
master-fo:
@jrglee
jrglee / hexxor.py
Created November 26, 2012 14:21
Script to xor hex strings
#!/usr/bin/env python
import sys
a = sys.argv[1].decode("hex")
b = sys.argv[2].decode("hex")
def tohex(v):
return chr(v).encode("hex")
out = [tohex(ord(x) ^ ord(y)) for (x, y) in zip(a, b)]