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 / Makefile.tb
Last active Sep 30, 2018
Video processing tasks for Time Bomb DVD
View Makefile.tb
#!/usr/bin/env bash
#
# Makefile:jeff
#
# Video encoding, subtitles conversion, etc. tasks for "Time Bomb"
#
# TODO(jeff): Swap out use of ffmpeg in favor of x264 for encoding.
#
# mp4box -add previews/mpeg2/ch4_doggy-pounding.mp2 chapter4_doggy-pounding.mp4
@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 Disk Utility (10.10).sh
#!/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
View webp.js
var path = require('path');
var http = require('http');
var fs = require('fs');
var spawn = require('child_process').spawn;
function safe_path(request_url) {
var cwd = path.resolve(path.dirname());
var target = path.resolve(request_url.slice(1));
if (target.indexOf(cwd) !== 0)
return;
@cletusw
cletusw / .eslintrc
Last active Sep 20, 2019
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@soarez
soarez / ca.md
Last active Oct 15, 2019
How to setup your own CA with OpenSSL
View ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@i8degrees
i8degrees / nomdev.sublime-build
Last active Dec 31, 2015
Sublime Text 2 Build System for nomdev.rb
View nomdev.sublime-build
{
// nomdev.rb expects and needs to be executed from a project's root directory
"working_dir": "${project_path}",
// At the bare minimum, we need the executable paths to:
// a) Ruby v1.9.x interpreter; b) nomdev.rb; c) CMake v2.6.x+;
// d) build tools (make, clang, etc.)
"path": "${HOME}/Projects/nomdev.git:${HOME}/local/bin:/usr/local/bin:/usr/bin",
// Default build (Command + B)
"cmd": [ "nomdev.rb build --threads 6; nomdev.rb install" ],
// We need shell access in order to execute our build
@deepak1556
deepak1556 / webp2png.js
Created Dec 7, 2013
webp support using libwebpjs (webp->png in canvas)
View webp2png.js
WebPDecodeAndDraw = function (data) {
var decoder = new WebPDecoder();
var bitmap = decoder.WebPDecode(data, data.length);
if (bitmap) {
//Draw Image
var output = ctx.createImageData(canvas.width, canvas.height);
var biWidth = canvas.width;
var outputData = output.data;
@jed
jed / how-to-set-up-stress-free-ssl-on-os-x.md
Last active Oct 15, 2019
How to set up stress-free SSL on an OS X development machine
View how-to-set-up-stress-free-ssl-on-os-x.md

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

You can’t perform that action at this time.