View steam_screenshot_import.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from os import path | |
import sys | |
import shutil | |
from PIL import Image | |
__author__ = 'Darien Hager' | |
class SteamScreenImport: |
View openssl_rc4_poc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import itertools | |
import binascii | |
import StringIO | |
from Crypto.Hash import SHA, MD5 | |
from Crypto.Cipher import AES, ARC4 | |
from Crypto import Random | |
View aoc_day3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import Counter | |
class Santa: | |
def __init__(self): | |
self.position = [0,0] | |
self.path = [tuple(self.position)] | |
def move(self, char): |
View coredump.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); | |
header("Cache-Control: post-check=0, pre-check=0", false); | |
header("Pragma: no-cache"); | |
ob_end_flush(); | |
$pid = getmypid(); | |
$secs = 10; | |
$cmd = "kill -3 $pid"; |
View day2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://adventofcode.com/day/2 | |
from itertools import combinations | |
import operator | |
def wrapNeeded(dims): | |
sides = combinations(dims,2) | |
halfAreas = map(lambda (a,b): a*b, sides) | |
return sum(halfAreas)*2 + min(halfAreas) |
View lockfile_check.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* If composer.json references a project that has a git directory in the vendor | |
* folder, and that depdencency is set to track the "latest" of a branch, then | |
* try to validate that the lockfile-version hasn't been outpaced. | |
*/ | |
class GitUtils{ |
View transcribed_html5_video.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="jquery-1.11.0.js"></script> | |
<style> | |
#transcript{ | |
background-color:#F0F0F0; | |
min-height:50px; | |
padding:5px; | |
} | |
#transcript span.active { |
View prepare-commit-msg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
branchPath=$(git symbolic-ref -q HEAD) #Somthing like refs/heads/myBranchName | |
branchName=${branchPath##*/} #Get text behind the last / of the branch path | |
if [[ $branchName =~ tickety([[:digit:]]+) ]]; then | |
bnum=${BASH_REMATCH[1]}; | |
heading="TICKETY-$bnum \/\/"; | |
else | |
heading="($branchName) "; |
View OverridablePropertiesConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.technofovea.springtest; | |
import java.io.File; | |
import java.lang.reflect.Array; | |
import java.net.URL; | |
import java.util.Collection; | |
import java.util.Iterator; | |
import org.apache.commons.configuration.Configuration; | |
import org.apache.commons.configuration.ConfigurationException; | |
import org.apache.commons.configuration.PropertiesConfiguration; |
NewerOlder