Skip to content

Instantly share code, notes, and snippets.


Jeffrey Carpenter i8degrees

View GitHub Profile
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>
<title>nom-video: demo</title>
<!-- hero video cover -->
<!-- ...and so on and so forth and what have you! -->
View gas-receipt-generator.markdown
i8degrees /
Created Aug 13, 2017 — forked from jed/
How to set up stress-free SSL on an OS X development machine

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

#!/usr/bin/env bash
# Execute a command
# This function supports "dry-run" execution; set the variable NOM_DRY_RUN
# before execution of this function to enable it.
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 / 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)](
all: bn-mp4
# all: bn-mp4 bn-webm
rm -rfv tmp/*
View _safari-web-app.pug
//- partials/_safari-web-app.pug:jeff
'use strict';
var script = document.createElement('script');
script.innerHTML = `(function(standalone) {
View gist:725d949fcdf3321ddedf9907e9ecaa53
<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;
You can’t perform that action at this time.