git config --global --list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##-- PATH and Aliases --## | |
| export PATH="/opt/homebrew/bin:/opt/homebrew/opt/openjdk/bin:$PATH:$HOME/bin" | |
| alias ll='ls -l' | |
| alias k='kubectl' | |
| alias ke='kubectl exec -it' | |
| alias kc='kubectx' | |
| alias kn='kubens' | |
| ##-- Completions --## | |
| # Installed via "brew install bash-completion" |
Notes from watching Stuart Halloway's "Debugging with the Scientific Method" from Clojure/conj 2015.
Clear problem statement: steps you took, what you expected, what actually happened.
Efficient hypothesis: bisect the problem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .PHONY: build test deploy | |
| ##-- Environment Variables --# | |
| # Image and container registry | |
| IMAGE_NAME := my-image-name | |
| IMAGE_PATH := mygroup/myproject | |
| REGISTRY := registry-url:port | |
| IMAGE := $(REGISTRY)/$(IMAGE_PATH)/$(IMAGE_NAME) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Returns a function with retries. | |
| ;; retries: num of retries | |
| ;; delay: delay between retries in milliseconds | |
| ;; f: function to apply | |
| ;; ef: error function, determines if f should be retried | |
| ;; f and ef should not throw Exceptions | |
| (defn with-retry | |
| [retries delay f ef] | |
| (fn [& args] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require '[clojure.edn :as edn]) | |
| ;; props to didibus https://clojuredocs.org/clojure.core/num | |
| (defn numberize | |
| [value] | |
| (edn/read-string value)) |