Skip to content

Instantly share code, notes, and snippets.

View DHager's full-sized avatar

Darien DHager

  • Seattle, WA
View GitHub Profile
from datetime import datetime
from os import path
import sys
import shutil
from PIL import Image
__author__ = 'Darien Hager'
class SteamScreenImport:
@DHager
DHager / reddit_bc2_tags.user.js
Created June 18, 2011 08:10
User-tagger for Bad Company 2 on Reddit
// ==UserScript==
// @name BC2 Subreddit user info
// @author Darien Hager
// @namespace http://technofovea.com/
// @version 1.0.0
// @description Provides extra information inside the Bad Company 2 subreddit
// @include http://www.reddit.com/r/badcompany2/*
// @include http://reddit.com/r/badcompany2/*
// ==/UserScript==
@DHager
DHager / transcribed_html5_video.html
Last active April 30, 2019 21:28
Something I whipped up for a Seattle Startup Weekend event, provides a "transcript" of a video based on its closed-captioning data, and allows you to use the text to seek in the video.
<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 {
@DHager
DHager / coredump.php
Created December 3, 2015 20:42
Tries to cause a core-dump so that you can test your PHP/Apache/OS configuration to make sure they are being saved
<?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";