- Close duplicate tabs
- Save all your tabs to an Apple Notes Note
Run with osascript ~/close_chrome_duplicates.scpt
or osascript ~/save_chrome_tabs_to_notes.scpt
Setup some alisases
| ExportOptions.plist - Options in a better order | |
| Xcodebuild manfile says the following | |
| > **Distributing Archives** | |
| > The -exportArchive option specifies that xcodebuild should distribute the archive specified by -archivePath using the options specified by | |
| > -exportOptionsPlist. xcodebuild -help can print the full set of available inputs to -exportOptionsPlist. The product can either be uploaded to Apple or | |
| > exported locally. The exported product will be placed at the path specified by -exportPath. | |
| The following is the list of settings (as of Xcode 10.1) output by `xcodebuild --help` but in a more logical order. |
| security cms -D -i AppStore.mobileprovision > tmp.plist && /usr/libexec/PlistBuddy -x -c 'Print:Entitlements' tmp.plist |
| (function() { | |
| /** | |
| * This is an example fetching /users/current from cloud kit with a server to server token without utilising aplpe's cloudkit.js | |
| * https://developer.apple.com/library/ios/samplecode/CloudAtlas/Listings/Node_node_client_s2s_index_js.html#//apple_ref/doc/uid/TP40014599-Node_node_client_s2s_index_js-DontLinkElementID_22 | |
| */ | |
| const https = require('https'); | |
| var fs = require('fs'); | |
| var crypto = require('crypto'); |
| enum StringValueKey | |
| { | |
| Name = 1, | |
| Title = 5, | |
| Inscription = 7, | |
| InscribedBy = 8, | |
| FellowshipName = 10, | |
| UsageInstructions = 14, | |
| SimpleDescription = 15, | |
| FullDescription = 16, |
Sometimes you need the latest updates from Laravel Settler the Homestead base box source.
This assumes you're on macOS and have homebrew, Vagrant and Virtualbox installed.
These instructions are a slighly expanded version of the settler readme
mkdir settler-master| <html> | |
| <head></head> | |
| <body> | |
| <!-- NOTE: ?api=1 and player_id at the end of the URL --> | |
| <iframe id="player" width="" height="" src="http://player.vimeo.com/video/62207569?api=1&player_id=player" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> | |
| <script src="http://a.vimeocdn.com/js/froogaloop2.min.js"></script> | |
| <script> | |
| var player = $f(document.getElementById('player')); |
| import boto.rds2 | |
| from datetime import datetime | |
| db_identifier = 'DB-IDENTIFIER' | |
| db_region = 'ap-southeast-2' | |
| conn = boto.rds2.connect_to_region(db_region) | |
| log_files = conn.describe_db_log_files(db_identifier, 'mysql-slowquery.log', file_size=1024) | |
| log_files = log_files['DescribeDBLogFilesResponse']['DescribeDBLogFilesResult']['DescribeDBLogFiles'] | |
| log_files.sort(key=lambda r: r['LastWritten'], reverse=True) |