This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if [[ $# < 2 ]]; then | |
| echo "Use password saved in macOS keychain for Cisco VPNs" | |
| echo "$0 usage: myscript vpnname keychainitem [close_second_window]" | |
| exit 1 | |
| fi | |
| VPNName=$1 # match the name of the VPN service to run | |
| keychainItem=$2 # this name has to match "Account" for the entry you make in keychain | |
| password=$(security find-generic-password -wl "$keychainItem") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Lets you `cd 'iCloud Drive'` from your home directory, | |
| # or `cd ~/iCloud\ Drive` from elsewhere. | |
| ln -sv ~/Library/Mobile\ Documents/com~apple~CloudDocs/ ~/iCloud\ Drive | |
| chflags -h hidden ~/iCloud\ Drive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Get path data for a rounded rectangle. Allows for different radius on each corner. | |
| * @param {Number} w Width of rounded rectangle | |
| * @param {Number} h Height of rounded rectangle | |
| * @param {Number} tlr Top left corner radius | |
| * @param {Number} trr Top right corner radius | |
| * @param {Number} brr Bottom right corner radius | |
| * @param {Number} blr Bottom left corner radius | |
| * @return {String} Rounded rectangle SVG path data | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs | |
| # just run "sudo trimforce enable" to activate the trim support from now on! | |
| # | |
| # Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/) | |
| # Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/ | |
| # | |
| # Looks for "Apple" string in HD kext, changes it to a wildcard match for anything | |
| # | |
| # Alternative to http://www.groths.org/trim-enabler-3-0-released/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |