Skip to content

Instantly share code, notes, and snippets.


Jeffrey Carpenter i8degrees

View GitHub Profile
eric-hu / Open iterm tab here
Last active May 16, 2020
Apple script to open an iterm2 tab from right-clicking on a file or folder in Finder. To use: (1) Open Automator (2) Create a new service (3) Change "Service receives selected" drop downs to "Files or folders" in "Finder" (4) Select "Run applescript" from the sidebar, then paste this script in and save
View Open iterm tab here
-- Adapted from these sources:
-- Modified to work with files as well, cd-ing to their container folder
on run {input, parameters}
tell application "Finder"
set my_file to first item of input
set filetype to (kind of (info for my_file))
-- Treats OS X applications as files. To treat them as folders, integrate this SO answer:
View .htaccess
SetOutputFilter DEFLATE
i8degrees / github_feed
Created Apr 22, 2012
GitHub Feed for i8degrees
View github_feed
# Github Feed for i8degrees
if [ $# -eq 1 ] ; then
headarg=$(( $1 * 2 ))
View skel.rb
#!/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:
kylebarrow / example.html
Created Jun 23, 2011
Prevent links in standalone web apps opening Mobile Safari
View example.html
<!DOCTYPE html>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
<li><a href="">Remote Link (Google)</a></li>
You can’t perform that action at this time.