Skip to content

Instantly share code, notes, and snippets.

View ChristopherA's full-sized avatar

Christopher Allen ChristopherA

View GitHub Profile
<temp/>
<revised/>
@ChristopherA
ChristopherA / Update-GPG-Key-Expiration.md
Last active September 4, 2021 12:21
Update GPG Key Expiration

Update GPG Key Expiration

Works, but working on script to automate this

Do this annually on April 15th.

Update the expiration from command line:

cd ~/.private
@ChristopherA
ChristopherA / import-trusted-key.sh
Created April 18, 2020 19:41
Shell script to import a GPG secret key and set it for ultimate trust, and update GPG key servers
# 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"
@ChristopherA
ChristopherA / See-Hidden-Files-in-macOS-Finder-or-Hide-Desktop-Files.md
Last active September 6, 2021 15:50
See Hidden Files in macOS Finder or Hide Desktop Files

See Hidden Files in macOS Finder or Hide Desktop Files

See Hidden Files

Temporarily

1 Open up the folder in the Finder that you want to see hidden files inside. 2 Press Command+Shift+Dot. 3 Your hidden files will become visible. Repeat step 2 to hide them again.

@ChristopherA
ChristopherA / vmware.md
Created April 19, 2020 23:17
#Vmware misc.
@ChristopherA
ChristopherA / youtube-dl.md
Created May 9, 2020 20:12
Youtube Downloader

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 
@ChristopherA
ChristopherA / macOS_Installation_Tips_-_Advice.md
Last active September 28, 2023 04:29
macOS Installation Tips & Advice

macOS Installation Tips & Advice

Download from macOS App Store


Hit Cmd+Get in the Mac App Store, then:

14, Sonoma, https://apps.apple.com/us/app/macos-sonoma/id6450717509
13, Ventura, https://apps.apple.com/us/app/macos-ventura/id1638787999
@ChristopherA
ChristopherA / macOS-Preferences-Defaults.sh
Last active October 25, 2025 17:16
macOS Preferences Defaults
#!/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,
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active November 7, 2025 12:17
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

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.

Sponsor

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.