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 / .gitignore
Created November 30, 2022 20:26
global git ignore
# https://raw.githubusercontent.com/github/gitignore/main/Global/Diff.gitignore
*.patch
*.diff
# https://github.com/github/gitignore/blob/main/Global/Dropbox.gitignore
# Dropbox settings and caches
.dropbox
.dropbox.attr
.dropbox.cache
@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
}
@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 / 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 / .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 / 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
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 / 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: