find $(pwd) -type d -name <NAME> -maxdepth 3 -exec tmutil addexclusion {} \;
This file contains 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/bash | |
## assumes "multiple repos" are all in the same parent directory, which is also the current working directory | |
# set up git | |
for dir in ./*/; do | |
dir=${dir%*/} # remove the trailing "/" | |
cd "$dir" | |
echo "$dir" | |
git fetch -p && git pull |
Python utility to delete GitHub Actions runs for a repository, based on parameters. The GitHub UI currently allows removal of individual workflow runs, but this becomes tedious with a bulk of previous runs. Credit: https://gist.github.com/magnetikonline/2242eb18bf8890e9fc72b3c3ef41bd93
- Create a Personal access token allowing the
workflow
scope: - Execute the script against a target GitHub repository (with optional parameters).
ref: https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c
#!/bin/bash
get_latest_version(){
curl "https://api.github.com/repos/$1/releases" -s \
| jq -r ".[].tag_name" \
| sort -nr \
| head -n 1
- Launch Automator
- Create New Document
- Create a new Quick Action (Select "Quick Action")
- Add the Action Workflow receives
current files or folders
inFinder
- If desired, add custom image/icon (see comment below)
- Add a new
Run Shell Script
action to the workflow. - Configure the Workflow
Rules / SOPs:
- Don't work in
base
environment - Use
mamba
as a solver - Create default environments with pinned packages, and clone / update the default envs as needed
For most applications, native vs. emulated modes do not need to be user-managed. However, for development purposes, managing the entire stack's architecture may become necessary.
For an x86 (Rosetta-emulated) environment, create an emulated Terminal.app
:
- Open
Finder
This file contains 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
import os | |
def isdrive(path): | |
"""Return `True` if path is the drive root | |
Parameters | |
---------- | |
path : path-like | |
""" | |
path = os.path.abspath(path) |
NewerOlder