most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
# File Transfer for Pythonista | |
# ============================ | |
# This script allows you to transfer Python files from | |
# and to Pythonista via local Wifi. | |
# It starts a basic HTTP server that you can access | |
# as a web page from your browser. | |
# When you upload a file that already exists, it is | |
# renamed automatically. | |
# From Pythonista's settings, you can add this script | |
# to the actions menu of the editor for quick access. |
#!/bin/bash | |
plist=$1"/Info.plist" | |
/usr/libexec/PlistBuddy -c "Add :UIFileSharingEnabled bool true" $plist |
# This is the nuclear option. Use with extreme care | |
# Works up to and including Mountain Lion (10.8.x) | |
# Show all extended attributes | |
ls -lOe ~/dir-to-fix | |
# Remove no-change attributes | |
sudo chflags nouchg ~/dir-to-fix | |
# Recursively clear all entended attributes |
10.3 (Panther): http://swscan.apple.com/scanningpoints/scanningpointX.xml | |
10.4 (Tiger): http://swscan.apple.com/content/catalogs/index-1.sucatalog | |
10.5 (Leopard): http://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog | |
10.6 (Snow Leopard): http://swscan.apple.com/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog | |
10.7 (Lion): http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog | |
10.8 (Mountain Lion): http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog | |
10.9 (Mavericks): http://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog | |
10.9 (Mavericks incl. seeds): http://swscan.apple.com/content/catalogs/others/index-10.9seed-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog |
#!/usr/bin/env python | |
"""Utilities for writing code that runs on Python 2 and 3""" | |
import operator | |
import sys | |
import types | |
__author__ = "Benjamin Peterson <benjamin@python.org>" | |
__version__ = "1.2.0" |
""" | |
Scrape a user's Netflix movie ratings by automating a Safari browsing | |
session (with the user already logged in). The ratings are written | |
as tab-delimited UTF-8 encoded text in a plain text file. | |
This Python script is for terminal-savvy Mac users. | |
To use | |
====== |
#!/bin/sh | |
# Usage: ./cyexec <process> <code> | |
# | |
# Example #1 (Locks device): | |
# | |
# ./cyexec SpringBoard '[[SBUserAgent sharedUserAgent] lockAndDimDevice]' | |
# | |
# Example #2 (Shows an alert message): | |
# |
#!/bin/sh | |
# So you've installed XCode 6 Beta | |
# Now we could use Swift toolchain to build a minimal | |
# command line Hellow World | |
# let's set new Developer Toolchain bundled with Xcode6-Beta.app | |
# as default toolchain | |
# sudo xcode-select -s /Applications/Xcode6-Beta.app/Contents/Developer | |
# alias for Swift binary |
# IMPORTANT SETUP INSTRUCTIONS: | |
# | |
# 1. Go to http://www.dropbox.com/developers/apps (log in if necessary) | |
# 2. Select "Create App" | |
# 3. Select the following settings: | |
# * "Dropbox API app" | |
# * "Files and datastores" | |
# * "(No) My app needs access to files already on Dropbox" | |
# * "All file types" | |
# * (Choose any app name) |