Do this annually on April 15th.
Update the expiration from command line:
cd ~/.private
| <temp/> | |
| <revised/> |
| # Shell script to import a GPG secret key and set it for ultimate trust, and update key servers | |
| # WORK-IN-PROGRESS - DO NOT USE YET. | |
| # puzzling how to get a key fingerprint out of a .asc key file without importing it into an shell variable. | |
| # gpg --with-colons --import-options show-only --import --fingerprint < ~/.gnupg/Christopher\ Allen\ \(357405ED\)\ –\ Secret.asc | awk -F: '$1 == "fpr" {print $10;}' | |
| DEFAULT_GPG_KEY_FOR_GIT_SIGNING="FDFE14A54ECB30FC5D2274EFF8D36C91357405ED" | |
| expect -c "spawn gpg --edit-key $DEFAULT_GPG_KEY_FOR_GIT_SIGNING trust quit; send \"5\ry\r\"; expect eof" |
MVware Misc. Notes
Vmware Automation tool and SDK for it, command line tool, vmrun, in /Applications/VMware Fusion.app/Contents/Library/vmrun. You'll need VMware Tools installed in the guest OS:
And the commands you can use with vmrun are documented here:
Youtube Downloader
https://ytdl-org.github.io/youtube-dl/ brew install youtube-ld
youtube-dl --extract-audio --audio-format m4a https://www.youtube.com/watch?v=lpMF-EcQ9bA
youtube-dl --recode-video mp4 https://www.youtube.com/watch?v=lpMF-EcQ9bA
youtube-dl --batch-file batch-file.txt
Various Applescripts I Use on my Mac:
| #!/usr/bin/env zsh | |
| #=========================================================================== | |
| # * INFO | |
| # | |
| # macOS Preferences Defaults | |
| # By Christopher Allen @ChristopherA https://github.com/christophera/ | |
| # My most basic macOS preferences, in this gist to make it easy to load on | |
| # multiple machines and VMs. Ideally runs on all macOS versions since Yosemite, |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.