- Backup your iOS device to your computer (not iCloud) through iTunes
- Download iPhone / iPod Touch Backup Extractor from http://supercrazyawesome.com/
- Run the app, and click "Read Backups"
- Find the backup you just made
- Make an empty directory
- Scroll all the way down and highlight "iOS Files"
- Extract the iOS files to the directory you made
- Visit https://www.dcode.fr/cpbitmap-format
- Click "Choose File"
- Inside the directory you created, find the iOS Files/Library/Springboard directory.
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
// based on http://avoidtheinevitable.wordpress.com/2013/01/21/instapaper-random-article-bookmarklet/ updated to | |
// Instapaper's latest design. This only picks a random article from the first page of Instapaper items | |
javascript:var l=document.querySelectorAll(".article_item .article_inner_item .host a");l[Math.floor(1+Math.random()*l.length)].click(); |
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
# The following code goes in your ~/.profile | |
# | |
# This propmpt shows a beer when you launch a Terminal window on a Fridays. | |
# It checks every time you get a new prompt. A minute after 11:59M on a | |
# Thursday, if you press enter, it will add beer to the prompt. A minute | |
# after 11:59 PM on a Friday, no more beer. | |
# | |
# This is for terminals that use the Bash shell, which was the default for | |
# MacOS previous to Catalina. |
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/bash | |
# Enter a time using 24H. 1:30pm is 13:30 . | |
ENTERTIME="%filltext:name=Time (in 24H)%" | |
# See https://gist.github.com/palaniraja/f8e21e8c66eac7e1b313 for a | |
# list of time zone names. | |
T1=$(TZ="America/New_York" date -jf "%H:%M %z" "$ENTERTIME $(date "+%z")" "+%-I:%M %p %Z" | tr -s '[:lower:]' '[:upper:]') |
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
javascript: var asin_elements, asin; | |
asin_elements = document.getElementsByName('ASIN'); | |
if (asin_elements.length == 0) { | |
asin_elements = document.getElementsByName('ASIN.0'); | |
}; | |
if (asin_elements.length == 0) { | |
alert('Sorry, this doesn\'t appear to be an Amazon book page.'); | |
} else { | |
asin = asin_elements[0].value; | |
if (asin.match(/\D/) === null) { |
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
-- from http://www.tuaw.com/2011/03/14/use-applescript-to-open-current-safari-url-in-google-chrome/ | |
-- install FastScripts http://www.red-sweater.com/fastscripts/ and place this AppleScript in the Scripts applications folder for Google Chrome. | |
-- For me that was ~/Library/Scripts/Applications/Safari | |
-- You can then assign it a keyboard shortcut. I went with Cmd-Shift-C | |
property theURL : "" | |
tell application "Safari" | |
set theURL to URL of current tab of window 1 | |
end tell | |
tell application "Google Chrome" |
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
url = new URL(window.location.href); | |
if (url.hostname = 'amazon.com') { | |
amazon_ca = url.href.replace('amazon.com', 'amazon.ca'); | |
location.href = amazon_ca; | |
} |
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
# Duane Storey wrote an iPhone-friendly random password in PHP. | |
# http://www.migratorynerd.com/tips/iphone-friendly-strong-password-generator/ | |
# "Basically the idea is to only use mostly keys that are accessible without | |
# having to hit shift or the keyboard button that switches to symbol mode." | |
# This is a port to Python if you wanted to wanted to generate it using something | |
# like Pythonista for iOS. http://omz-software.com/pythonista/ | |
import random | |
def generate_password(length = 10): |
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
/* | |
TODO: * An article that starts a sentence should be capitalized. | |
* A more comprehensive list of subtleties like "a useful", "a once", "an hour", "an historical" | |
* Tests | |
*/ | |
exports.article = function(text) { | |
var vowels = 'aeiou'; | |
var an_exceptions = ['eucalyptus', 'eunuch', 'euphemism', 'euphemistic', 'euphonium', 'euphoric', 'european', 'once', 'one', 'onesie', 'union', 'unique', 'unison', 'united', 'useful', 'utopia', 'utopic', 'user', 'unicorn']; | |
var a_exceptions = ['hour', 'historical', 'honorable', 'honourable']; | |
if (a_exceptions.indexOf(text) != -1 || (vowels.indexOf(text.charAt(1)) == -1 && an_exceptions.indexOf(text) == -1)) { |
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 http = require('http'), | |
fs = require('fs'), | |
qs = require('querystring'); | |
server = http.createServer( function(req, res) { | |
if (req.method == 'POST') { | |
var body = ''; | |
req.on('data', function (data) { | |
body += data; | |
}); |
NewerOlder