Skip to content

Instantly share code, notes, and snippets.

View ljdelight's full-sized avatar

Lucas Burson ljdelight

View GitHub Profile
@ljdelight
ljdelight / docker-compose.yml
Created April 24, 2017 02:56
docker-compose for gitlab and jenkins
#
# Simple docker-compose file for Gitlab CE and a Jenkins master.
# This is for testing and builds are done on the jenkins master.
#
version: "2"
services:
gitlab:
image: "gitlab/gitlab-ce:8.15.2-ce.0"
@ljdelight
ljdelight / cloudapplications.m2.makefile
Last active September 16, 2015 03:48
This is a simple makefile to assist with quickly building the Exercises of MP2 for Coursera's Cloud Applications
#
# This is a simple makefile to assist with quickly building the Exercises of MP2.
#
# To build and execute a particular exercise:
# - For a single exercise, type 'make runA' to run exercise A.
# - For all exercises, 'make'.
#
#
HADOOP_CLASSPATH := ${JAVA_HOME}/lib/tools.jar
export HADOOP_CLASSPATH
import logging
from bs4 import BeautifulSoup, NavigableString
def modify_node(soup, node):
parent = node.parent
tokens = str(node.string).splitlines()
str_index = parent.index(node)
@ljdelight
ljdelight / SimpleEvent.java
Last active December 15, 2015 23:49
Simple program to demonstrate how to register an event with a button
//
// Simple program to demonstrate how to register an event with a button.
//
// There are two inputs, a result field, and a button. When the button is pushed,
// an event is fired which finds the root of the sum of the squares.
//
import java.awt.event.*;
import javax.swing.*;
@ljdelight
ljdelight / odtfuzzer.py
Created July 28, 2012 05:35
Modify ODT archive for fuzzing penetration tests. Created for Udacity CS258 PS-4.
#
# Lucas Burson
# 26 June 2012
#
# This attempts to crash ODT (or docx) readers via a fuzzed input file.
# Since ODT is zipped, we need to extract the files and then write random bytes (keep valid CRC).
#
# TODO: Maybe we "shouldn't" destroy XML tags or attribute names... XSD/marshall would catch those
#