Get emergency internet access on your Mac via your iPhone if you don't have a hotspot-enabled plan.
- Download iSH App: https://ish.app/, once opened set up the ssh server with:
adduser rich
apk add openssh nano
| require ["include", "environment", "variables", "relational", "comparator-i;ascii-numeric", "spamtest"]; | |
| require ["fileinto", "imap4flags"]; | |
| # Skip anything scored as spam by Proton | |
| if allof (environment :matches "vnd.proton.spam-threshold" "*", | |
| spamtest :value "ge" :comparator "i;ascii-numeric" "${1}") { | |
| return; | |
| } | |
| # Match change-related verbs/phrases |
| # Theme / Style | |
| theme = Ayu Mirage | |
| unfocused-split-opacity = 0.7 | |
| cursor-style = block | |
| shell-integration-features = no-cursor | |
| font-size=14 | |
| # Quake Terminal | |
| keybind = global:cmd+`=toggle_quick_terminal |
| #!/bin/bash | |
| set -e | |
| INCREMENT_LEVEL="patch" # Choose from "major", "minor", or "patch" | |
| awk -v level="$INCREMENT_LEVEL" ' | |
| BEGIN { | |
| FS = OFS = "\""; | |
| } | |
| { | |
| if ($2 == "version") { |
| ## Add this to your `~/.zshrc` file to have CTRL+G let you select your recent branches | |
| ## Open a new terminal, or run `source ~/.zshrc` after adding | |
| ## Requires: fzf (`brew install fzf`) | |
| # Function to select recent branches | |
| function gsl() { | |
| git switch -q $(git for-each-ref refs/heads --format='%(refname)' --sort='committerdate' | cut -d'/' -f3- | fzf +s --tac --preview='git log --oneline {} | head -20') | |
| zle reset-prompt | |
| } |
| #!/bin/bash | |
| set -e | |
| RACKNAME=$(convox rack | grep Name | xargs | cut -d" " -f2) | |
| echo "Creating kubeconfig for $RACKNAME" | |
| convox rack kubeconfig > $HOME/.kube/$RACKNAME-config | |
| export KUBECONFIG=$HOME/.kube/$RACKNAME-config | |
| echo "Testing" | |
| kubectl get nodes |
| #!/bin/bash | |
| set -e | |
| FEATURE_BRANCH=$(git branch --show-current) | |
| if [ "$FEATURE_BRANCH" == "main" ]; then | |
| echo "Looks like you're not on a feature branch 🌲, so we'll just update main 🔺" | |
| git pull | |
| exit | |
| else | |
| echo "Rebasing $FEATURE_BRANCH against main ⚾️" |
Get emergency internet access on your Mac via your iPhone if you don't have a hotspot-enabled plan.
adduser rich
apk add openssh nano