Skip to content

Instantly share code, notes, and snippets.

View program247365's full-sized avatar

Kevin Ridgway program247365

View GitHub Profile
program247365 /
Created December 30, 2020 02:12 — forked from lelandbatey/
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"


program247365 /
Last active February 17, 2020 18:14
My Long Journey to Figuring out Why The Circus Is Not Working on AppleTV+ Channels


AppleTV+ Channel Showtime doesn't play latest episode of The Circus. Been shuffled between Apple and showtime support, not a great experience thus far.

Longer Version

Hi there, current Showtime subscriber through AppleTV+. I can play anything from showtime except the latest 'The Circus' episode. Any idea what's going on there? It doesn't work on iOS, AppleTV or FireTV device (through AppleTV+ app).

Here's what it looks like on iOS:

Keybase proof

I hereby claim:

  • I am program247365 on github.
  • I am program247365 ( on keybase.
  • I have a public key ASCvWVe02SM56NjmBrt-6MaOFSCa6NVWPc4MhZIPLf0heAo

To claim this, I am signing this object:

program247365 / addLogging.js
Created June 8, 2015 17:59
Console Logging with Esprima
function addLogging(code) {
var ast = esprima.parse(code);
estraverse.traverse(ast, {
enter: function(node, parent) {
if (node.type === 'FunctionDeclaration' || node.type === 'FunctionExpression') {
return escodegen.generate(ast);
program247365 / index.js
Created April 20, 2015 02:17
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var d3 = require('d3');
var c3 = require('c3');
var chart = c3.generate({
data: {
x: 'x',
program247365 / randomgifs.js
Created August 26, 2014 06:47
An idea for a funny Docker based GIF generator.
var http = require('http');
var util = require('util'),
left = ["happy", "jolly", "dreamy", "sad", "angry", "pensive", "focused", "sleepy", "grave", "distracted", "determined", "stoic", "stupefied", "sharp", "agitated", "cocky", "tender", "goofy", "furious", "desperate", "hopeful", "compassionate", "silly", "lonely", "condescending", "naughty", "kickass", "drunk", "boring", "nostalgic", "ecstatic", "insane", "cranky", "mad", "jovial", "sick", "hungry", "thirsty", "elegant", "backstabbing", "clever", "trusting", "loving", "suspicious", "berserk", "high", "romantic", "prickly", "evil"],
right = ["lovelace", "franklin", "tesla", "einstein", "bohr", "davinci", "pasteur", "nobel", "curie", "darwin", "turing", "ritchie", "torvalds", "pike", "thompson", "wozniak", "galileo", "euclid", "newton", "fermat", "archimedes", "poincare", "heisenberg", "feynman", "hawking", "fermi", "pare", "mccarthy", "engelbart", "babbage", "albattani", "ptolemy", "bell", "wright", "lumiere", "morse", "mclean", "brown", "bardeen",
program247365 / Vagrantfile
Last active August 29, 2015 14:00 — forked from andreiashu/Vagrantfile
Vagrantfile for Centos 6 and Docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
BOX_NAME = ENV['BOX_NAME'] || "Centos6.5.1"
BOX_URI = ENV['BOX_URI'] || ""
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
program247365 / .disable-hibernate
Created February 20, 2013 19:09
Disable hibernate on mac
# !/bin/bash
sudo pmset hibernatemode 0;sudo rm -rf /var/vm/sleepimage
// Placeholder @mixin for Sass
// A mixin to style placeholders in HTML5 form elements.
// Includes also a .placeholder class to be used with a polyfill e.g.
// Requires Sass 3.2.
// Example usage (.scss):
// input {
program247365 / livereload-noie.js
Created December 17, 2012 16:30
Have livereload script be on the page. But never load it for any IE.
var ie = (function(){
var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',