Skip to content

Instantly share code, notes, and snippets.

Jeffrey Carpenter i8degrees

Block or report user

Report or block i8degrees

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@i8degrees
i8degrees / fielding-vice.itermcolors
Last active Oct 23, 2016
fielding's vice color scheme
View fielding-vice.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.092231146991252899</real>
@i8degrees
i8degrees / convert-color-profile.sh
Last active Sep 26, 2016
a few of my video editing scripts
View convert-color-profile.sh
#!/usr/bin/env bash
COLOR_PROFILE="${HOME}/.colors/displays/ProPhoto.icm"
INPUT_DIR=$(pwd)
OUTPUT_DIR="o"
cd "${INPUT_DIR}" || exit 1
mkdir -pv "${OUTPUT_DIR}"
@i8degrees
i8degrees / gulpfile.js
Created Sep 25, 2016
gulp and node.js dev
View gulpfile.js
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);
});
});
@i8degrees
i8degrees / gen_dev-ssl-certs.sh
Created Sep 16, 2016
SSL Certificates for Web Server with a Self-Signed CA root and One Site Domain Certificate
View gen_dev-ssl-certs.sh
#!/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 / index.html
Created Jul 9, 2016 — forked from anonymous/index.html
JS Bin Touchpad pinch demo // source http://jsbin.com/lotolelele
View index.html
<!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 / hosts.latest
Last active Feb 27, 2019
Ye'old pirates host config - hopefully early of a few revisions
View hosts.latest
# ...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
View github_fielding.sh
#!/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
MEID (Mobile equipment identifier) to pESN (Psuedo-Electronic Serial Number)
View meid-to-pesn.py
#!/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'))
View to_dvd.sh
#!/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
View webm_encoder.sh
#!/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()
{
You can’t perform that action at this time.