Skip to content

Instantly share code, notes, and snippets.

View konklone's full-sized avatar

Eric Mill konklone

View GitHub Profile
@konklone
konklone / 51-android.rules
Created October 26, 2010 02:52
Android USB rules for Ubuntu Maverick/Natty with Nexus One and Galaxy Tab 10.1
# Meant for /etc/udev/rules.d/51-android.rules
# Google [*not* HTC] (i.e. Nexus One)
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
# Samsung (i.e. Galaxy Tab)
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
@konklone
konklone / amendment.json
Created January 10, 2011 22:57
Real Time Congress API collection examples.
{
"amendments": [
{
"actions": [
{
"text": "Amendment SA 4843 proposed by Senator Bingaman for Senator Rockefeller.",
"acted_at": "2010-12-17T12:00:00Z",
"type": "action"
},
{
@twneale
twneale / gpolocator.py
Created January 23, 2012 05:34
Getting GPO Locator data into a more usable form
# -*- coding: utf-8 -*-
'''
Usage:
>>> f = open('usc08.10')
>>> x = getlines(f)
>>> x.next()
GPOLocatorLine(code='F', arg='5800', data=u'\r\n')
>>> print x.next().data
TITLE 8–ALIENS AND NATIONALITY
@dstroot
dstroot / install-redis.sh
Created May 23, 2012 17:56
Install Redis on Amazon EC2 AMI
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"

GENERAL TODO:

  • The examples are all over the place. They need to be more consistent.
  • Check that x-archive-queue-derive header. I just skimmed it and it doesn't seem right.
  • Investigate getting an "[email protected]" address for support requests
  • Some of the standard metadata fields are repeatable, some are not. State this in the descriptions.
  • Excellent Hank idea: Quick Start (TL;DR) section to avoid all the gory details
  • Dang, but this damn thing is hard to read. Will that get better when it gets converted to the PHP wrapper? I have my doubts. May need a some quick George love to give tips for better readability.
  • All the other 'foo' (read: green) bits below
@konklone
konklone / ssl.rules
Last active October 29, 2024 07:36
nginx TLS / SSL configuration options for konklone.com
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email [email protected].
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@SyntaxColoring
SyntaxColoring / Sine.js
Last active January 1, 2016 10:19
Trace a sine wave with your flag on isitchristmas.com.
var theta = 0.0;
window.setInterval(function() {
theta += Math.PI/10;
if (theta >= Math.PI*4) theta = 0.0;
var event = {clientX: theta*100, clientY: (Math.sin(theta)+1.5)*100, button: 2};
me.angle = Math.cos(theta)*180/Math.PI;
setRotate(me.flag, me.angle);
emit('scroll', {id: me.id, angle: me.angle});
document.onmousemove(event);
document.onmousedown(event);
@RnbwNoise
RnbwNoise / heart.js
Last active December 26, 2022 07:21
A program for drawing a heart at isitchristmas.com: https://twitter.com/konklone/status/416399871231275008/
var a = 0.0;
var t = 0;
var drawHeart = function() {
if(a < Math.PI / 2 || a > Math.PI * 3/2)
a += 0.20; // for old ghost values: 0.35;
else
a += 0.10; // for old ghost values: 0.25; // the top part is more detailed
if(a >= Math.PI * 2)
a = 0;
@epixoip
epixoip / cloudflare_challenge
Last active December 2, 2023 11:53
How I obtained the private key for www.cloudflarechallenge.com
I wasn't first to get the key. Nor was I second, third, or even fourth. I'm probably not even the
10th to get it (ok, looks like I was the 8th.) But I'm happy that I was able to prove to myself
that I too could do it.
First, I have to admit I was a skeptic. Like the handful of other dissenters, I had initially
believed that it would be highly improbable under normal conditions to obtain the private key
through exploiting Heartbleed. So this was my motivation for participating in Cloudflare's
challenge. I had extracted a lot of other things with Heartbleed, but I hadn't actually set out to
extract private keys. So I wanted to see first-hand if it was possible or not.
@clkao
clkao / README.md
Last active August 29, 2015 14:02
g0v.tw campaign finance digitization project