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! -->
@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 gas-receipt-generator.markdown
@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 / ios-build.sh
Created Sep 21, 2014
SDL2 & Friends Build for iOS 7.1
View ios-build.sh
#### SDL2 & Friends Build for iOS 7.1+
* Note that -scheme puts files in ~/Library/Developer/Xcode/DerivedData
* Note that you should set $BUILD_DIR to wherever you want the destination
libraries to end up.
```
cd ~/Projects/third-party/SDL2.hg/Xcode-iOS/SDL
@i8degrees
i8degrees / amps.rb
Created Mar 4, 2015
the effects of sleep deprivation on the logical mind
View amps.rb
#!/usr/bin/env ruby
class NomNom
def initialize(io)
# ...I'm not writing this class over again, hoe!
end
end
class SuperYumNom < NomNom
@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.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) {
You can’t perform that action at this time.