Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@i8degrees
i8degrees / Makefile.tb
Last active September 30, 2018 09:48
Video processing tasks for Time Bomb DVD
#!/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 September 21, 2014 17:21
SDL2 & Friends Build for iOS 7.1
#### 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 March 4, 2015 03:42
the effects of sleep deprivation on the logical mind
#!/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 August 13, 2017 22:17 — 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

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
#
# 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 08:42
Naughty Girl: Search Suggestion/Autocomplete (Rxjs,Ramda, Fetch)
#!/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/*
//- 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) {
<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 December 22, 2016 09:45
sha 7bb701e7c3d908d96b83efa443a986e109bfe3fc of imbue/imbue.studio repo
{
"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",
@i8degrees
i8degrees / fielding-vice.itermcolors
Last active October 23, 2016 10:36
fielding's vice color scheme
<?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>