This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# ~/Projects/homnom/nomnom-v0.2/tmp/cmdline-args.rb:jeff | |
# | |
# Preliminary play with a new input arguments parser for much enhanced | |
# console-level control of our I/O scripts. | |
# | |
# Usage: | |
# | |
# http://ruby-doc.org/stdlib-1.9.3/libdoc/optparse/rdoc/OptionParser.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Github Feed for i8degrees | |
# | |
URL="https://github.com/i8degrees.atom" | |
if [ $# -eq 1 ] ; then | |
headarg=$(( $1 * 2 )) | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetOutputFilter DEFLATE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ...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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create mount points for decrypted sparse bundle disk image and full Apple disk image. | |
sudo mkdir /mnt/bundle /mnt/dmg | |
# Ensure loopback kernel module is loaded. | |
lsmod | grep ^loop || sudo modprobe loop | |
# Decrypt and FUSE-mount sparse bundle disk image. Trailing options help with debugging. | |
sudo sparsebundlefs <ENCRYPTED_SPARSE_BUNDLE_DISK_IMAGE> /mnt/bundle -s -f -D | |
# Note partition 2's "Start" and "Size" values. |
OlderNewer