Skip to content

Instantly share code, notes, and snippets.

View ghostsquad's full-sized avatar

Wes McNamee ghostsquad

View GitHub Profile
@ghostsquad
ghostsquad / replicaset-age.sh
Created September 13, 2023 17:17
replicaset-age.sh
#!/usr/bin/env bash
set -eou pipefail
DATE="date"
if command -v gdate &> /dev/null
then
DATE="gdate"
fi
@ghostsquad
ghostsquad / aliases.sh
Last active August 31, 2023 04:54
aliases.sh
# Docker
alias drd='docker rmi $(docker images -f "dangling=true" -q)'
alias dre='docker rm $(docker ps -a -f status=exited -q)'
alias drc='docker rm $(docker ps -a -f status=created -q)'
alias dps='docker ps --format '\''table {{ .ID }}\t{{ .Image }}\t{{ .Names }}\t{{ .Ports }}'\'''
alias dpsa='docker ps -a --format '\''table {{ .ID }}\t{{ .Image }}\t{{ .Names }}\t{{ .Ports }}'\'''
# Git
# https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git-extras/git-extras.plugin.zsh
@ghostsquad
ghostsquad / .zshrc
Last active August 31, 2023 04:41
zshrc - newmac
# https://github.com/marlonrichert/zsh-snap#installation
# source ~/znap-plugins/zsh-snap/znap.zsh
export COLORTERM=truecolor
export HISTFILE="$HOME/.zsh_history"
export GUILE_TLS_CERTIFICATE_DIRECTORY=/opt/homebrew/etc/gnutls/
# tell less not to paginate if less than a page
@ghostsquad
ghostsquad / starship.toml
Last active June 9, 2023 19:17
starship.toml - newmac
# ~/.config/starship.toml
# ---
# This is a WARP Optimized file!
# More work would be needed to get something pretty in both iTerm2 and Warp
# ---
@ghostsquad
ghostsquad / setup.sh
Last active June 9, 2023 18:32
terminal/home setup
# https://github.com/wagoodman/dive
# https://github.com/hadolint/hadolint
# https://www.shellcheck.net/
# https://github.com/johanhaleby/kubetail
# https://github.com/wercker/stern
# https://httpie.org/
# https://github.com/Versent/saml2aws#osx
# https://asdf-vm.com/#/core-manage-asdf-vm
brew tap \
@ghostsquad
ghostsquad / EffectiveIssueAnatomy.md
Last active May 22, 2023 16:16
Anatomy of an Effective Issue

Anatomy of an Effective Issue (or how to ask questions)

A Brief and Actionable Subject/Title

The brief subject line or title is the most important part of any issue that you write. It’s the first thing folks will see, and it gives the entire request context. Spend some time mastering this, just like you would a commit message.

The title should include verbs like "fix", "create", "give access to", etc which demonstrate the desired outcome. An action like "consider" has an ambiguous outcome, and should be avoided. Here are some examples of good and bad subject lines:

@ghostsquad
ghostsquad / .zshrc
Created October 14, 2022 02:13
zshrc - oldmac
# zmodload zsh/zprof
# printf "%-10s" "start:"
# printf "%s\n" "$(/usr/local/bin/gdate +%s%N)"
# If you come from bash you might have to change your $PATH.
export PATH="$HOME/bin:$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH"
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
@ghostsquad
ghostsquad / iterm2-profile.json
Created October 19, 2022 21:06
iterm2-profile - newmac
{
"Ansi 3 Color" : {
"Red Component" : 0.9424901008605957,
"Color Space" : "Calibrated",
"Blue Component" : 0.54832202196121216,
"Alpha Component" : 1,
"Green Component" : 0.98275065422058105
},
"Tags" : [
@ghostsquad
ghostsquad / .tool-versions
Created October 19, 2022 21:07
.tool-versions - newmac
kubectl 1.21.14
awscli 2.7.25
golang 1.19
nodejs 18.7.0
@ghostsquad
ghostsquad / .gacprc
Created October 19, 2022 21:07
.gacprc - newmac
{
"emoji": "emoji",
"add": false,
"editor": true
}