Skip to content

Instantly share code, notes, and snippets.

View christianbundy's full-sized avatar

Christian Bundy christianbundy

  • 01:31 (UTC -07:00)
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDOE/PDXPQ9fS5mjhxX0L3wlugWnK3A0q6uD5RKfHJ+4/GcddjlAInh/h772D8sXa9gX93HYUQvfWhHykFM4nLTAqgIhOOCwn2ahlRGlXzAAfA14jSwM5wTkL5zKeNUWB3KGynx0N8DKwlwrn9CYbv66cxD950s49vHkx4oJuc9gGDwDI2NgX2fov3RrPF7tBkzxOFaNlP99W29D+GsMq9kjaSYejygekcfcwzlLPXbzxEV5hCbUYu5plew0B1MpmaXl9XzmxObRXPT6c9B1lF+gGieUuUiq2rkz/jpVzfUE+vtvRhH6ayZN7sTEqbzRWxZ8nVA/FqanoIKtULUQd9qbFpbw0JuVY//yFrzmA5XBeBLeLFHRNnEnLnAUqFL3ShiNVnAgVfukv9KIYtiAS4s6hXCQLMs4WuV3lg7FMk7OHdrYUmWgktWLn/WlljCoTfAlQ6vfhjyuixVYreJbgKX42Mv+/wx41W6jQh0JrJafmq0Jp6AbpaqDSPXVBH4ONfHM4s3MEGTWZiGytZxnJMHnQZMQZMGBP/8AvmzklxwsfxyY9jndLdapd6/Gr3JHbmeH4gmNA648jBpxHyUZJseT93nF+gZ12OfmnmwEj5p9FBGQoiR3ajd/txupN+iQZpk8Il+O9RnH/bYtBCjMNjB6MIZNpDQkPpS6q00hO6Qyw== christianbundy@cuatro.local
@christianbundy
christianbundy / data.csv
Created January 5, 2016 22:22 — forked from d3noob/.block
Simple d3.js Graph
date close
1-May-12 58.13
30-Apr-12 53.98
27-Apr-12 67.00
26-Apr-12 89.70
25-Apr-12 99.00
24-Apr-12 130.28
23-Apr-12 166.70
20-Apr-12 234.98
19-Apr-12 345.44
@christianbundy
christianbundy / random_uniques.js
Last active December 21, 2015 09:49
Generates a set of random unique integers.
// do not use this
function random_uniques(min, max, num) {
if (max-min > num) {
_result = {};
for (i = 1; i<=num; i++) {
_unique=false;
while (!_unique) {
_new = Math.round((Math.random()*max)+min);
for (j = 1; j<=i; j++) {

#Zero-day Startup

Hi. I'm going to start a project today, and detail my experience with the project.

##Monday

##Tuesday

##Wednesday

Screensizr Height Bug

Here's the bug we're fixing:

Screensizr Bug

As you can see, my viewport is definitely not 604px in height, but it's being reported that way by Screensizr. Why?

# IMPORTANT - CHANGE ME (unless you have the Chromebook Pixel 2015)
export BOARD=samus
sudo aptitude install -y git-core gitk git-gui subversion curl
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
cat > /tmp/sudo_editor <<EOF
#!/bin/sh
@christianbundy
christianbundy / stegosploit.html
Last active August 29, 2015 14:22
Source HTML for Stegosploit proof-of-concept by Saumil Shah.
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE-Edge">
<style>
body { visibility: hidden; }
img { visibility: visible; }
</style>
<script src="elephant3.jpg"></script>
</head>
<body>
def answer(x):
len_x = len(x)
modifier = (sum(x) / float(len_x)) % 1
modifier = modifier if modifier <= 0.5 else 1 - modifier
return int(len_x - len_x * modifier)
def expect(expected, actual):
assert expected is actual, \
"expected: {}, actual {}".format(expected, actual)
#!/usr/bin/env bash
trap 'exit' ERR # exit on error (better than `set -e`)
set -x # echo commands before running
set -u # throw error if an unbound variable is called
BASEDIR=$(cd $(dirname $0) && pwd) # path to directory for itself
LOGDIR="$BASEDIR/times" # directory for logging
LOGFILE="$LOGDIR/times.txt" # file for logging (within $LOGDIR)
#!/bin/bash
MIN=0
MAX=1
STEPS=100
RANGE=$(echo "$MAX - $MIN" | bc -l)
INC=$(echo "$RANGE / $STEPS" | bc -l)
fade () {