cd /var
sudo mkdir teamsserver
sudo chown _teamsserver teamsserver
https://www.testflightapp.com/account/#api
sudo -H -u _teamsserver git config --global testflight.apitoken YOUR_APITOKEN
| #!/usr/bin/env ruby | |
| # Kill crazy BTServer processes when the iPad simulator is running and | |
| # you wake your Mac from sleeping | |
| seconds_between_checking = 30 | |
| kill_threshold_percent = 10.0 | |
| while true do | |
| ps_out_full = %x[ps aux | grep BTServer] |
| " Use arrow keys to move buffers | |
| map <up> <C-w>k<cr> | |
| map <down> <C-w>j<cr> | |
| map <left> <C-w>h<cr> | |
| map <right> <C-w>l<cr> |
| # Guardfile | |
| require 'guard/guard' | |
| class ::Guard::JohnIsAwesome < ::Guard::Guard | |
| def start | |
| puts "Whoa a guard." | |
| end | |
| def run_all |
| #!/usr/bin/env ruby -wKU | |
| require "fileutils" | |
| require "pty" | |
| unless ARGV.length == 3 | |
| STDERR.puts "USAGE: run-test-script <app bundle> <test script> <output directory>" | |
| exit 1 | |
| end |
| # This is part of a rakefile I use for UI Automation that's part of an | |
| # upcoming (secret) project that I hope to announce soon. | |
| # You need to set the $app_bundle global variable to point to the application's | |
| # bundle on disk. Then hand in 1 for iPhone or 2 for iPad to this function | |
| # and it will manipulate the plist of the device. | |
| def pick_simulator_device index | |
| # For now, the only way to tell UI Automation to run the iPad or iPhone | |
| # simulator is to change the app bundle plist to require only that device. |
| # Xcode auto-versioning script for Git by Steve Madsen. | |
| # Adapted from Subversion script by Axel Andersson. | |
| # | |
| # This is a Ruby script. Use /usr/bin/ruby as the shell. | |
| build_counter_file = 'build-counter' | |
| raise "#{$0}: Must be run from Xcode" unless ENV['BUILT_PRODUCTS_DIR'] | |
| def development? |
| -- AppleScript -- | |
| -- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
| -- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| -- This method is as good as its JXA counterpart. | |
| -- Webkit variants include "Safari", "Webkit", "Orion". | |
| -- Specific editions are valid, including "Safari Technology Preview". | |
| -- "Safari" Example: | |
| tell application "Safari" to return name of front document |
cd /var
sudo mkdir teamsserver
sudo chown _teamsserver teamsserver
https://www.testflightapp.com/account/#api
sudo -H -u _teamsserver git config --global testflight.apitoken YOUR_APITOKEN
| import Foundation | |
| let session = NSURLSession.sharedSession() | |
| let requestIsBeingHandledKey = "RequestIsBeingHandledKey" | |
| class CustomNSURLProtocol: NSURLProtocol { | |
| override class func canInitWithRequest(request: NSURLRequest) -> Bool { | |
| if NSURLProtocol.propertyForKey(requestIsBeingHandledKey, inRequest: request) != nil { | |
| return false // Prevent recursize loop |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.