Skip to content

Instantly share code, notes, and snippets.

View konklone's full-sized avatar

Eric Mill konklone

View GitHub Profile
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.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.
@konklone
konklone / ssl.rules
Last active August 8, 2023 08:39
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 eric@konklone.com.
# 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 {
@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;

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 "ias3support@archive.org" 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
@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 "*****************************************"
var refreshRate = 100; var particleLimit = 15;
var snake = {
x: (window.innerWidth * Math.random()) - window.pageXOffset,
y: (window.innerHeight * Math.random()) - window.pageYOffset,
dx: Math.ceil(Math.random() * 30) - 15,
dy: Math.ceil(Math.random() * 30) - 15,
atan2: Math.atan2(this.dx, this.dy) + (Math.PI / 2), body: [],
update: function () {
if (this.x < 0) { this.x = 0; this.dx = -this.dx;}
else if (this.x > window.innerWidth) { this.x = window.innerWidth; this.dx = -this.dx; }
@konklone
konklone / apis-workshop.md
Last active May 2, 2016 05:35
Notes for an "Intro to APIs" workshop.

Intro to APIs - March 4-5, 2016

An introduction to working with URLs, JSON, APIs, and open data -- without writing any code.

URL of this document: bit.ly/intro-to-apis

You will need

  • A laptop, with a working connection to the public Internet.
  • A recent version of Firefox or Chrome.
@konklone
konklone / intro-to-apis-notes.md
Last active March 4, 2016 07:00
Notes for Intro to APIs workshop for Open Data Day, March 4-5, 2016
@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);