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 / demo.html
Last active Jul 24, 2019
A snippet from my nom-video module from Naughty Girl to demonstrate the "Page Visibility" API (browser implement)
View demo.html
<!DOCTYPE html>
<html>
<head>
<title>nom-video: demo</title>
</head>
<body>
<!-- hero video cover -->
<!-- ...and so on and so forth and what have you! -->
View gas-receipt-generator.markdown
@i8degrees
i8degrees / how-to-set-up-stress-free-ssl-on-os-x.md
Created Aug 13, 2017 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
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

View fix-imessage.sh
#!/usr/bin/env bash
#
# fix-imessage.sh:jeff
#
# http://www.tonymacx86.com/threads/how-to-fix-imessage.110471/#TOP3.3
# Execute a command
#
# This function supports "dry-run" execution; set the variable NOM_DRY_RUN
# before execution of this function to enable it.
@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 / Makefile.ndev
Last active May 27, 2017
Naughty Girl: Search Suggestion/Autocomplete (Rxjs,Ramda, Fetch)
View Makefile.ndev
#!/usr/bin/env bash
#
# [Naughty Girl: Search Suggestion/Autocomplete (Rxjs,Ramda, Fetch)](http://codepen.io/fielding/pen/Vbdppm)
all: bn-mp4
# all: bn-mp4 bn-webm
clean:
rm -rfv tmp/*
View _safari-web-app.pug
//- partials/_safari-web-app.pug:jeff
//-
//- https://gist.github.com/kylebarrow/1042026
//- http://stackoverflow.com/questions/2898740/iphone-safari-web-app-opens-links-in-new-window
script().
'use strict';
var script = document.createElement('script');
script.innerHTML = `(function(standalone) {
View at-command-set.md
View gist:725d949fcdf3321ddedf9907e9ecaa53
<html><head>
<script type="text/javascript" src="AppleScrollArea.js" charset="utf-8"></script>
<script type="text/javascript" src="AppleScrollbar.js" charset="utf-8"></script>
<style type="text/css">
body {
background: transparent;
color: white;
font: 12px "Lucida Grande";
overflow: hidden;
}
@i8degrees
i8degrees / package.json
Created Dec 22, 2016
sha 7bb701e7c3d908d96b83efa443a986e109bfe3fc of imbue/imbue.studio repo
View package.json
{
"devDependencies": {
"autoprefixer": "^6.5.3",
"babel-cli": "^6.18.0",
"babel-core": "^6.0.15",
"babel-preset-babili": "0.0.8",
"babel-preset-es2015": "^6.0.15",
"browser-sync": "^2.9.0",
"chokidar-cli": "^1.2.0",
"cli-real-favicon": "0.0.6",
You can’t perform that action at this time.