Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"permissions": {
"allow": [
"Bash(cat:*)",
"Bash(git ls-tree:*)",
"Bash(find:*)",
"Bash(chmod:*)",
"Bash(bash:*)",
"Bash(git add:*)",
"Bash(git commit:*)"
]
}
}
56 changes: 56 additions & 0 deletions gh/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/bash
#
# GitHub CLI installation for Debian/Ubuntu-based systems

set -e

info() {
printf "\r [ \033[00;34m..\033[0m ] $1\n"
}

success() {
printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
}

# Skip on non-Linux systems
if [ "$(uname)" != "Linux" ]; then
exit 0
fi

# Skip if apt-get is not available
if ! command -v apt-get > /dev/null 2>&1; then
info "Skipping gh CLI (apt-get not found)"
exit 0
fi

# Check if gh is already installed
if command -v gh > /dev/null 2>&1; then
success "GitHub CLI $(gh --version | head -n1) already installed"
exit 0
fi

info "Installing GitHub CLI..."

# Ensure wget is available
if ! command -v wget > /dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y wget
fi

# Set up GPG keyring
sudo mkdir -p -m 755 /etc/apt/keyrings
out=$(mktemp)
wget -nv -O"$out" https://cli.github.com/packages/githubcli-archive-keyring.gpg
cat "$out" | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null
rm "$out"
sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg

# Add the official repository
sudo mkdir -p -m 755 /etc/apt/sources.list.d
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null

# Install GitHub CLI
sudo apt-get update
sudo apt-get install -y gh

success "GitHub CLI $(gh --version | head -n1) installed"
15 changes: 15 additions & 0 deletions git/gitconfig.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
[core]
excludesfile = ~/.gitignore
editor = vim
autocrlf = input
[apply]
whitespace = nowarn
[mergetool]
Expand All @@ -33,3 +34,17 @@
default = simple
[credential]
helper = osxkeychain
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[gpg]
format = ssh
[gpg "ssh"]
program = /opt/1Password/op-ssh-sign
allowedSignersFile = /home/pettergriffin/.ssh/allowed_signers
[commit]
gpgsign = true
[user]
signingkey = /home/pettergriffin/.ssh/personal-git.pub
6 changes: 6 additions & 0 deletions homebrew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.

# Skip on Linux - homebrew setup is macOS-specific
if test "$(uname)" != "Darwin"
then
exit 0
fi

# Check for Homebrew
if test ! $(which brew)
then
Expand Down
85 changes: 85 additions & 0 deletions java/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/sh
#
# JDK (Java Development Kit)
#
# Installs the default JDK package.
# Supports macOS, Ubuntu/Debian, Arch Linux, and Fedora/RHEL.

set -e

info () {
printf "\r [ \033[00;34m..\033[0m ] $1\n"
}

success () {
printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
}

fail () {
printf "\r\033[2K [\033[0;31mFAIL\033[0m] $1\n"
}

# Detect OS and package manager
detect_platform() {
OS="$(uname -s)"
PKG_MANAGER=""

if [ "$OS" = "Darwin" ]; then
PKG_MANAGER="brew"
elif [ "$OS" = "Linux" ]; then
if command -v apt-get > /dev/null 2>&1; then
PKG_MANAGER="apt"
elif command -v pacman > /dev/null 2>&1; then
PKG_MANAGER="pacman"
elif command -v dnf > /dev/null 2>&1; then
PKG_MANAGER="dnf"
elif command -v yum > /dev/null 2>&1; then
PKG_MANAGER="yum"
fi
fi
}

install_jdk() {
if command -v javac > /dev/null 2>&1; then
success "JDK already installed ($(javac -version 2>&1))"
return 0
fi

info "installing JDK"

case "$PKG_MANAGER" in
brew)
brew install openjdk
success "JDK installed"
;;
apt)
sudo apt-get update
sudo apt-get install -y default-jdk
success "JDK installed"
;;
pacman)
sudo pacman -S --noconfirm jdk-openjdk
success "JDK installed"
;;
dnf)
sudo dnf install -y java-latest-openjdk-devel
success "JDK installed"
;;
yum)
sudo yum install -y java-latest-openjdk-devel
success "JDK installed"
;;
*)
fail "unsupported package manager for JDK"
return 1
;;
esac
}

# Main
detect_platform
info "detected platform: $OS ($PKG_MANAGER)"

install_jdk

exit 0
34 changes: 34 additions & 0 deletions kubernetes/aliases.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# kubectl aliases
alias k='kubectl'
alias kx='kubectx'
alias kn='kubens'
alias kgp='kubectl get pods'
alias kgs='kubectl get services'
alias kgd='kubectl get deployments'
alias kgn='kubectl get nodes'
alias kga='kubectl get all'
alias kd='kubectl describe'
alias kdp='kubectl describe pod'
alias kds='kubectl describe service'
alias kdd='kubectl describe deployment'
alias kl='kubectl logs'
alias klf='kubectl logs -f'
alias ke='kubectl exec -it'
alias kaf='kubectl apply -f'
alias kdf='kubectl delete -f'
alias kctx='kubectl config current-context'
alias kns='kubectl config view --minify --output "jsonpath={..namespace}"'

# helm aliases
alias h='helm'
alias hi='helm install'
alias hu='helm upgrade'
alias hup='helm upgrade --install'
alias hd='helm delete'
alias hl='helm list'
alias hla='helm list -A'
alias hs='helm search repo'
alias hr='helm repo'
alias hra='helm repo add'
alias hru='helm repo update'
alias hv='helm show values'
Loading
Loading