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| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |
| # | |
| # python drive.py "origin" ["waypoint" ... ] "destination" | |
| # | |
| # i.e. python drive.py "Union Square, San Francisco" "Ferry Building, San Francisco" 'Bay Bridge' SFO | |
| import sys, json, urllib2, md5, os.path, pprint | |
| from math import radians, sin, cos, atan2, pow, sqrt | |
| from urllib import quote_plus | |
| from xml.sax.saxutils import escape | |
| from optparse import OptionParser |
| # blog post | |
| # | |
| # https://www.jessesquires.com/blog/customizing-git-log/ | |
| git log --graph --pretty=format:'commit: %C(bold red)%h%Creset %C(red)<%H>%Creset %C(bold magenta)%d %Creset%ndate: %C(bold yellow)%cd %Creset%C(yellow)%cr%Creset%nauthor: %C(bold blue)%an%Creset %C(blue)<%ae>%Creset%n%C(cyan)%s%n%Creset' |
| #!/bin/bash | |
| # | |
| # Put Tesla MCU1 in factory mode | |
| # | |
| # Call over diagnostics port with seceth enabled | |
| # | |
| # Reboot MCU afterwards | |
| # | |
| VALUE=true |