Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@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;
}
#!/bin/sh
# 2012-05/01:jeff
#
# Geeklet (GeekTools / OSX)
#
# Github Feed for justfielding
#
URL="https://github.com/justfielding.atom"
@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'))
#!/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
#!/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()
{

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:

@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:

@i8degrees
i8degrees / config_remove-usb-cap.plist
Created March 11, 2016 03:26
AppleUSBXHCIPCI kext patch for removing the USB 3 Cap of 15 ports
<!-- SOURCE: http://www.insanelymac.com/forum/topic/308325-guide-1011-full-speed-usb-series-89-keeping-vanilla-sle/page-23#entry2210241 -->
<dict>
<key>Comment</key>
<string>Remove USB limit</string>
<key>Find</key>
<data>
g72M/v//EA==
</data>
<key>Name</key>
<string>AppleUSBXHCIPCI</string>
#!/bin/sh -x ## or just ` curl -Ls http://git.io/vRozn | sh `.
## Downloads the Mac OS X 10.10 Recovery Partition update,
## Copy's over the 10.10 version of Disk Utility.app, then
## use git to apply a binary patch so it will run on 10.11+.
cd /tmp
rm -rf DU1010
mkdir DU1010
Process: ttcards [77673]
Path: /Users/USER/*/ttcards.app/Contents/MacOS/ttcards
Identifier: org.i8degrees.ttcards
Version: 0.10.0 (2.8.12.1)
Code Type: X86-64 (Native)
Parent Process: bash [77452]
Responsible: Terminal [77448]
User ID: 501
Date/Time: 2013-12-15 21:54:12.074 -0600