This file contains hidden or 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 | |
| ## Quick and dirty script for finding image resources in an Xcode project folder | |
| for ext in jpg jpeg png | |
| do | |
| matches=`grep -r "\.$ext" *|grep -v '\.xcodeproj'` | |
| IFS=$'\n' | |
| for match in $matches | |
| do |
This file contains hidden or 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 | |
| ## Find the app which ran most recently in the iPhone simulator | |
| SIM_DIR="$HOME/Library/Application Support/iPhone Simulator" | |
| lastapp="`mdfind -onlyin "$SIM_DIR" "kMDItemContentType = \"com.apple.application-bundle\""|head -n 1`" | |
| if [ -z "$1" ] | |
| then |
This file contains hidden or 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 | |
| # Extract the subject of the signing certificate of a .mobileprovision file | |
| if [ -z "$1" ] | |
| then | |
| echo "Usage: $0 [mobileprovision-file]" | |
| exit 1 | |
| fi |
This file contains hidden or 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 | |
| ## | |
| ## Generate OPML from your PocketCasts podcast list | |
| ## | |
| ## You need to retrieve the 'Podcastdb.sqlite' file using iExplorer | |
| ## or some similar utility | |
| ## | |
| cat <<EOF |
This file contains hidden or 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/bash | |
| export MONGOLAB_URI="`heroku config|grep ^MONGO|cut -d' ' -f11`" | |
| bundle exec rackup |
This file contains hidden or 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 | |
| ## | |
| # Git diff for Xcode projects | |
| # | |
| # $ sudo gem install xcodeproj | |
| ## | |
| if [ -z "$DIFF" ] | |
| then |
This file contains hidden or 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 python | |
| import cookielib | |
| import json | |
| import mechanize | |
| ##### | |
| GOOGLE_USER = '[email protected]' | |
| GOOGLE_PASS = 'your-password' | |
| ##### |
This file contains hidden or 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 | |
| require 'rubygems' | |
| require 'cocoapods-core' | |
| require 'json' | |
| require 'mechanize' | |
| require 'rest-client' | |
| docs = JSON.parse(RestClient.get('http://cocoadocs.org/documents.jsonp')[12..-22]) |
This file contains hidden or 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
| FindClasses |
This file contains hidden or 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 | |
| ## | |
| ## This script gets the URL of your frontmost Safari tab, finds the | |
| ## YouTube MP4 URL for it and passes it to your AppleTV. | |
| ## | |
| require 'airplay/cli' | |
| require 'appscript' | |
| require 'net/http' |