Skip to content

Instantly share code, notes, and snippets.

@bondolo
Last active August 25, 2022 22:27
Show Gist options
  • Save bondolo/ae1d46be7dd0dbbfe4990ce9066d2dac to your computer and use it in GitHub Desktop.
Save bondolo/ae1d46be7dd0dbbfe4990ce9066d2dac to your computer and use it in GitHub Desktop.
Install of new MacOS Java development system
Install OhMyZsh!
Install Xcode
Install Homebrew
Install homebrew tap cask-versions
homebrew install —cask bbedit firefox flux oracle-jdk oracle-jdk-javadoc slack transmission vlc wireshark zulu zulu8 gpg-suite
ack
ant
automake
bash
gh
glib
gnutls
gradle
hub
libgcrypt
libmaxminddb
libsmi
libssh
lua@5.1
maven
mpfr
nghttp2
openssl@3
pcre2
python@3.9
shellcheck
shfmt
spring-io/tap/spring-boot
tcl-tk
watch
xmlstarlet
homebrew install ack bash git maven monkeysphere watch shellcheck shfmt
Install netbeans
Generate GPG Keys
Generate SSH Keys from GPG Key with monkeysphere
Export SSH keys
Import SSH key in to git repo
gpg --default-new-key-algo rsa4096 --gen-key
gpg --list-secret-keys --keyid-format LONG
gpg --armor --export <your_key_id> | pbcopy
# paste the GPG key to Github
ssh-keygen -t rsa -b 4096
ssh-add -K ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub | pbcopy
# paste the SSH key to Github
git config --global user.email "<your_preferred_full_email>@somewhere.com"
git config --global user.name "<your_preferred_full_name>"
git config --global user.signingkey <your_key_id>
git config --global commit.gpgsign true
# This causes local changes to be rebased on top of pull rather than adding a merge commit
git config --global pull.rebase true
# This causes local uncommitted changes to be stashed during rebase
git config --global rebase.autoStash true
git config --global diff.algorithm histogram
git config --global core.editor "bbedit --new-window --wait --resume --"
git alias branches "for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
git alias lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git alias parent "!git show-branch | sed 's/].*//' | grep '*' | grep -v $(git rev-parse --abbrev-ref HEAD) | head -n1 | sed 's/^.* .//' #"
git alias fetch "git fetch --tags"
git config --global rerere.enabled true
git config --global gpg.program /usr/local/bin/gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment