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
# Via: http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme | |
List of currently known URLs in the Settings app: | |
prefs:root=General&path=About | |
prefs:root=General&path=ACCESSIBILITY | |
prefs:root=AIRPLANE_MODE | |
prefs:root=General&path=AUTOLOCK | |
prefs:root=General&path=USAGE/CELLULAR_USAGE | |
prefs:root=Brightness | |
prefs:root=General&path=Bluetooth |
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 | |
# | |
# Name: Apple keynote stream video downloader | |
# Author: venj<i[AT]venj.me> | |
# Date: 2012-09-13 | |
# | |
# Description: | |
# This script helps you download apple keynote stream video on | |
# http://www.apple.com/apple-events/. Video format is TS. | |
# |
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
American Typewriter: | |
AmericanTypewriter | |
AmericanTypewriter-Bold | |
Apple Color Emoji: | |
AppleColorEmoji | |
AppleGothic: | |
AppleGothic |
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
document.addEventListener('DOMContentReady', function(){ | |
// DOM ready. | |
}); |
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
// ==UserScript== | |
// @name aotucapcha | |
// @namespace http://218.90.160.85:9090/bustravelguide/default.aspx | |
// @description Auto enter capcha | |
// @include http://218.90.160.85:9090/bustravelguide/default.aspx | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
document.addEventListener('DOMContentLoaded', function(){ |
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 | |
require "fileutils" | |
(puts "Usage: #{File.basename $0} widthxheight"; exit 0) if ARGV.size != 1 | |
width, height = ARGV[0].split("x").collect(&:to_i) | |
(puts "Please enter a valid size."; exit 0) if ((width.to_i == 0) or (height.to_i == 0)) | |
half_width = width / 2 | |
FileUtils.cd("images") do | |
Dir['**/*'].each do |f| |
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 | |
# Change this line to the URI path of the xcode DMG file. | |
# XCode 3.2.5 | |
#XCODE_PATH="/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg" | |
# XCode 4 | |
#XCODE_PATH="/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg" |
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 | |
# Convert video to gif. | |
if [[ $# -ne 3 ]]; then | |
echo "Usage: trans_gif source.mp4 target.gif 300" | |
exit 1 | |
fi | |
palette="/tmp/palette.png" | |
filters="fps=15,scale=$3:-1:flags=lanczos" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>OnDemand</key> | |
<false/> | |
<key>KeepAlive</key> | |
<true/> | |
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/ruby | |
exit(0) if File.exists?('/root/.jlpt_sent') | |
require 'net/https' | |
require 'json' | |
require 'open-uri' | |
require 'hpricot' | |
SLACK_URL = "https://hooks.slack.com/services/xxxxx" |
NewerOlder