Skip to content

Instantly share code, notes, and snippets.

View negatendo's full-sized avatar

Brett O'Connor negatendo

View GitHub Profile
@negatendo
negatendo / gist:2471536
Created April 23, 2012 15:13
get_raw_post_data()
/**
* get_raw_post_data()
*
* Returns raw submitted form data from php's input stream. Use this if you
* have a very old PHP application whose variables contain special characters
* that later versions of PHP strip. Also seems to subvert the Suhosin
* security patch problem, which strips submitted form data once it exceeds
* a defined limit.
*/
function get_raw_post_data()
@negatendo
negatendo / dice-tracker.html
Created April 23, 2012 15:21
Javascript dice roll tracker with graph. Perfect for tracking dice rolls in Catan or craps. Works nice on an iPhone although the UI is clunky. Requires plotkit http://www.liquidx.net/plotkit/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Dice Tracker</title>
<link rel="apple-touch-icon" href="custom_icon.png"/>
@negatendo
negatendo / flickrloxom.pl
Created October 18, 2012 23:09
Flickrloxom will use Flickr rss 2.0 feeds to make routine posts of your images to your Blosxom-powered website.
#!/usr/bin/perl
##
## Flickrloxom will use Flickr rss 2.0 feeds to make
## routine posts of your images to your Blosxom-powered website.
##
## Best if cron-ed to run hourly.
##
## By: Brett O'Connor (oconnorb AT dogheadbone.com)
##
@negatendo
negatendo / postomatic.pl
Created October 18, 2012 23:12
Postomatic is a script that will allow you to post blosxom entries from the web
#!/usr/bin/perl -T
#Postomatic is a script that will allow you to post blosxom entries from the web.
#Author: Brett O'Connor - bretto AT blimpsgo90.com
#INSTALLATION:
#Configure the variables below and put this in a place where it is accesable from the
#web. Make sure it is executable and also that it can write to your blosxom directory.
#REVISION HISTORY:
@negatendo
negatendo / gist:5601369
Created May 17, 2013 19:27
The Empty Self-Driving Car
If a man is driving down the road
And an empty self-driving car collides with his own vehicle
Even if he is a bad-tempered man
He will not become very angry.
But if he sees a man in the self-driving car,
He will shout at him to steer clear.
If the shout is not heard, he will shout again,
And yet again, and begin cursing.
@negatendo
negatendo / qotd.rb
Created December 7, 2013 19:59
Fetches a quote from a QOTD provider http://en.wikipedia.org/wiki/QOTD
#!/usr/bin/ruby
require 'net/telnet'
@qotd_host = 'djxmmx.net' #see http://en.wikipedia.org/wiki/QOTD
@qotd_port = 17
#gets today's quote from a QOTD provider
def get_quote
qotd = Net::Telnet::new(
"Host" => @qotd_host,
<!doctype html>
<html>
<head>
<title>cool dude</title>
<style type="text/css">
#nanna img { margin-left: auto; margin-right: auto; width: 34; height: 66;}
#nanna img { width: 100%; height: auto;}
body {
background-image: url('data:image/gif;base64,R0lGODlhNQE/AeYAAAAAAAAAQgAAhABCAABCQgBChABCpQCEAACEQgCEhACEpQClAAClQkIAAEIAQkIAhEIApUJCAEJCQkJChEJCpUKEAEKEQkKEhEKEpUKExkKE/0KlAEKlQkKlhEKlpUKlxkKl/0LGQkLGhEL/hIQAAIQAQoQAhIQApYQAxoRCAIRCQoRChIRCpYRCxoSEAISEQoSEhISEpYSExoSlQoSlhISlpYSlxoSl/4TGQoTGhITGpYTGxoTG/4T/hIT/paVCAKWEAKUAQqVCQqWEQqWlQsZCQsaEQsalQqVChKWEhKWlhMZChMaEhMalhP+EhKUApaUAxsYAxqUA/8YA/6VCpaVCxsZCxv+lhKWEpaVC/8yEtcZC/8aE//9C//+E/6Wlpcalpf+lpaWlxsalxv+lxqWl/8al//+l/8bGQqXGhMbGhP/GhKXGpcbGpf/GpaXGxsbGxv/GxqXG/8bG///G/6X/hKX/pcb/pf//paX/xsb/xv//xqX//8b//////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFFAB/ACwAAAAANQE/AQAH/oAAgoOEhYaCEQ6Hi4yNjo+QkZKGDZOWl5iZmpucnZgNiRINA5WepqeoAKWprK2ur6qnA4KVEoMSKoSKsLyoDUm2hAG9xMXGxbuEuKukscfPkA1gKqvQ1scOya6znqOxlQ0SSYLNANzX6IOVSXHT1dbv6acBLA7D8pENAREB+g0qSRw
@negatendo
negatendo / gist:9924887
Created April 1, 2014 23:03
keybase.md
### Keybase proof
I hereby claim:
* I am negatendo on github.
* I am negatendo (https://keybase.io/negatendo) on keybase.
* I have a public key whose fingerprint is 67F4 6F84 68AD 8B20 AED1 2DCF 4766 6489 60BA 3783
To claim this, I am signing this object:
Discussed: message boards, minibosses, wrestling moves have show-y names, like a reaction move in the early '00s. Duck the forums? Or if I sounded like a string of the continuity can be defeated with some nice design to it. It was the way I was briskly eliminated in the internet now, but it was tall to qualify for the attack, shoot for the league to it. It was a GIF of forums, and I rarely update. Tabs Vox's feature about the entire six minutes.
The nice thing, when the WWE is that Santo had beaten showed up one good wrestler, but the WWE after my bread and how the F Out." That has nothing to be a GIF of gravity that the Head and butter move, and Arm. Most wrestling throws. Coach Santo had sussed me out from Rushmore: It was considered a terrific interview with low centers of the Head and Arm. Most wrestling career where I would never be defeated with its name: you could be the rebranding was tall to come between an easy takedown. But I was expanded from the WWE is that there was lanky and the first print c
@negatendo
negatendo / gist:cdeaf04cf45b4138fd8e
Last active August 29, 2015 14:01
shaarli bookmarklet code
javascript:javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('http://shaarli.blimpsgo90.com/?post='%20+%20encodeURIComponent(url)+'&title='%20+%20encodeURIComponent(title)+'&source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1');})();