This is the most common way to get the path to the selected instance:
xcrun xcode-select --print-path| set remindersOpen to application "Reminders" is running | |
| set todoistToken to "<YOUR_TOKEN_HERE>" | |
| set apiCall to "curl https://api.todoist.com/sync/v9/quick/add" | |
| set listOfCommands to {} | |
| tell application "Reminders" | |
I use PlantUML a lot. It's what I use for drawing all sorts of diagrams and it's handy because of its easy markup (once you get used to it) while making things easy to maintain as projects grow (thanks to version control)
This gist explains how I do my PlantUML workspace in a project.
globals directory for all diagrams to follow (like the "stylesheet" below) to keep things consistent.stylesheet.iuml file that keeps the use of colors consistent through use of basic FOREGROUND, BACKGROUND and ACCENT colors.style-presets.iuml file defines these colors so you can make "presets" or "themes" out of them.stylesheet.iuml, you'll need the Roboto Condensed and Inconsolata fonts for these to work properly.example-sequence.puml for example: https://imgur.com/Klk3w2Ftype below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| class FirebaseCoordinator { | |
| static let shared = FirebaseCoordinator() | |
| static let initialize: Void = { | |
| /// We modify Google Firebase (and eventually Analytics) to load the mac-specific plist at runtime. | |
| /// Google enforces that we have a file named "GoogleService-Info.plist" in the app resources. | |
| /// This is unfortunate since we need two different files based on iOS and Mac version | |
| /// One solution is a custom build step that copies in the correct file: | |
| /// https://stackoverflow.com/questions/37615405/use-different-googleservice-info-plist-for-different-build-schemes | |
| /// However, this is basically impossible since Catalyst doesn't set any custom build variables, so detection is extremely difficult. | |
| /// We swizzle to modify the loading times. | 
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| Steps for installing the Android Emulator from EC2 console: | |
| ----------------------------------------------------------- | |
| sudo apt install default-jdk | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d android-sdk | |
| sudo mv android-sdk /opt/ | |
| export ANDROID_SDK_ROOT=/opt/android-sdk | |
| echo "export ANDROID_SDK_ROOT=/opt/android-sdk" >> ~/.bashrc | |
| echo "export PATH=$PATH:$ANDROID_SDK_ROOT/tools" >> ~/.bashrc | |
| re-login | 
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>limit.maxfiles</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>launchctl</string> | |
| <string>limit</string> | 
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
| # basic pfctl control | |
| # == | |
| # Related: http://www.OpenBSD.org | |
| # Last update: Tue Dec 28, 2004 | |
| # == | |
| # Note: | |
| # this document is only provided as a basic overview | |
| # for some common pfctl commands and is by no means | |
| # a replacement for the pfctl and pf manual pages. |