Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@i8degrees
i8degrees / keybase.md
Created April 7, 2016 22:05
keybase proof

Keybase proof

I hereby claim:

  • I am i8degrees on github.
  • I am i8degrees (https://keybase.io/i8degrees) on keybase.
  • I have a public key whose fingerprint is FF9F 8211 F179 6C54 EB09 2C1F A739 8DBE 7101 436E

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am i8degrees on github.
  • I am i8degrees (https://keybase.io/i8degrees) on keybase.
  • I have a public key ASCWMbOafyEVaxnOsNmO9PECLq4BIv5eGtM29tjw9SSxugo

To claim this, I am signing this object:

#!/bin/sh
#
# WebM Encoder
#
# Reference: https://trac.ffmpeg.org/wiki/Encode/VP8
# ffmpeg -i TimeBomb_hq.mp4 -c:v libvpx -b:v 1M -c:a libvorbis TimeBomb.webm
function usage_info()
{
#!/usr/bin/env bash
# to_dvd.sh:jeff
# SOURCE: http://ffmpeg.gusari.org/viewtopic.php?f=25&t=1235
OUTPUT_FILE=out.mpg
# TODO(jeff): escape input with printf
ffmpeg -i "${1}" -filter:v "scale='if(gt(a,720/480),720,-1)':'if(gt(a,720/480),-1,480)',pad=w=720:h=480:x=(ow-iw)/2:y=(oh-ih)/2" -target ntsc-dvd ${OUTPUT_FILE}
# Environment setup for dvdauthor
@i8degrees
i8degrees / meid-to-pesn.py
Last active May 17, 2016 16:49
MEID (Mobile equipment identifier) to pESN (Psuedo-Electronic Serial Number)
#!/usr/local/bin/python2.7
# meid-to-pesn.py:jeff
#
# Sourced from https://en.wikipedia.org/wiki/Mobile_equipment_identifier#Code_to_convert
import hashlib
meid = raw_input("Enter an MEID (dec): ").upper()
s = hashlib.sha1(meid.encode('hex'))
#!/bin/sh
# 2012-05/01:jeff
#
# Geeklet (GeekTools / OSX)
#
# Github Feed for justfielding
#
URL="https://github.com/justfielding.atom"
@i8degrees
i8degrees / hosts.latest
Last active July 23, 2020 13:39
Ye'old pirates host config - hopefully early of a few revisions
# ...Adobe Products Activation Block...
127.0.0.1 na1r.services.adobe.com
127.0.0.1 na2m-pr.licenses.adobe.com
127.0.0.1 na4r.services.adobe.com
127.0.0.1 lm.licenses.adobe.com
127.0.0.1 lmlicenses.wip4.adobe.com
127.0.0.1 uds.licenses.adobe.com
127.0.0.1 192.150.14.69
@i8degrees
i8degrees / index.html
Created July 9, 2016 11:43 — forked from anonymous/index.html
JS Bin Touchpad pinch demo // source http://jsbin.com/lotolelele
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Touchpad pinch demo" />
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
http://experimental.mural.ly/vnext-mural/sticky/200/webglbody {
-ms-scroll-rails: none;
}
@i8degrees
i8degrees / gen_dev-ssl-certs.sh
Created September 16, 2016 05:26
SSL Certificates for Web Server with a Self-Signed CA root and One Site Domain Certificate
#!/usr/bin/env bash
#
# IMPORTANT(jeff): This file should always be ran from the project's root
# source tree, i.e.:
#
# bin/gen_dev-ssl-certs.sh
#
# ...environment init...
@i8degrees
i8degrees / gulpfile.js
Created September 25, 2016 19:07
gulp and node.js dev
var exec = require('child_process').exec;
gulp.task('start', function (callback) {
exec('node server/app.js', function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
callback(err);
});
});