a enter into insert mode after the character your cursor is on
A enter into insert mode at the end of the current line
| <?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>Label</key> | |
| <string>com.localhost.tilde-switch</string> | |
| <key>StandardErrorPath</key> | |
| <string>/tmp/tilde/tilde-err.log</string> |
| # Borrowed & adapted from: https://github.com/brantb/dotfiles/blob/master/tmux.conf | |
| # Set prefix to Ctrl-Space | |
| unbind C-b | |
| set-option -g prefix C-a | |
| # using C-a as the tmux prefix comes at the cost of some great features: | |
| # bash: move to start of line (in emacs mode, aka when i'm ssh'd somewhere) | |
| # vim: insert mode increment number |
| Movement: | |
| j, k down, up | |
| h, l left, right (in some contexts) | |
| space page down | |
| pg up/down page up/down | |
| arrows up, down, left, right |
| // Thanks to @MonsieurDart for the idea :) | |
| func scroll(collectionView:XCUIElement, toFindCellWithId identifier:String) -> XCUIElement? { | |
| guard collectionView.elementType == .collectionView else { | |
| fatalError("XCUIElement is not a collectionView.") | |
| } | |
| var reachedTheEnd = false | |
| var allVisibleElements = [String]() | |
| while !reachedTheEnd { |
| #!/bin/sh | |
| # Create a RAM disk with same perms as mountpoint | |
| # Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
| # Usage: sudo ./xcode_ramdisk.sh start | |
| USERNAME=$(logname) | |
| DEV_CACHES_DIR="/Users/$USERNAME/Library/Developer/Xcode/DerivedData" | |
| DEV_CACHES_SHADOW_DIR="/Users/$USERNAME/Library/Developer/Xcode/DerivedData_shadow" |
| defaults write xcodebuild PBXNumberOfParallelBuildSubtasks 4 | |
| defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4 | |
| defaults write com.apple.dt.Xcode PBXNumberOfParallelBuildSubtasks 4 | |
| defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4 | |
| defaults write com.apple.dt.Xcode ExplainWhyBuildCommandsAreRun -bool true | |
| defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool true |
| #!/bin/sh | |
| wget http://ipinfo.io/ip -qO - |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2015-09-24-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to: