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" | |
| # Add this to ~/.zshrc (instead of heavy and clumzy oh-my-zsh) | |
| function git_branch_name() | |
| { | |
| branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) | |
| if [[ $branch == "" ]]; | |
| then | |
| : | |
| else | |
| echo ' '$branch |
| # When getting error while using gu updater | |
| % gu --version | |
| Error: The GraalVM directory /Library/Java/JavaVirtualMachines/graalvm-ce-java17-21.3.0/Contents is invalid. | |
| 1. ensure GRAALVM_HOME set properly — i.e. GRAALVM_HOME=/Library/Java/JavaVirtualMachines/graalvm-ce-java17-21.3.0/Contents/Home | |
| 2. ensure PATH has ${GRAALVM_HOME}/lib/installer/bin and ${GRAALVM_HOME}/bin (the lib/installer/bin has to be first) | |
| PATH="${GRAALVM_HOME}/lib/installer/bin:${GRAALVM_HOME}/bin:${PATH}" |
| ~ % find ~/Library/Developer/CoreSimulator/Devices/BBC2F33A-EC5D-433F-8C06-8698E20303A3 -type f -name TCC.db -exec sqlite3 {} 'select * from access' \; | |
| kTCCServiceMediaLibrary|com.zzz.dev|0|2|4|1||||UNUSED||0|1597755443 | |
| kTCCServicePhotosAdd|com.zzz.dev|0|2|4|1||||UNUSED||0|1597755447 | |
| kTCCServicePhotos|com.zzz.dev|0|2|2|2||||UNUSED||0|1597755549 |
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
| For those who could not get used to press 4 keys to paste without formatting | |
| To make "CMD + V" paste by default without any formatting - i.e. "Paste and Match Style": | |
| 1. Go to "System Preferences" -> Keyboard | |
| 2. Select 'App Shortcuts' on the left | |
| 3. Tap "+" sign to add a new shortcut | |
| 4. in the dialog | |
| - Use "All Applications" | |
| - In the field "Menu Title:" type exact text "Paste and Match Style" |
| 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