Skip to content

Instantly share code, notes, and snippets.

View wdhowe's full-sized avatar

Bill Howe wdhowe

  • United States
View GitHub Profile
@wdhowe
wdhowe / clojure-dev-setup.md
Last active December 12, 2025 01:39
Clojure Development Setup

Clojure Development Setup

TLDR to copy and paste a clojure dev setup on MacOS.

Install packages

brew install openjdk rlwrap clojure leiningen borkdude/brew/babashka babashka/brew/neil visual-studio-code
@wdhowe
wdhowe / .bashrc
Last active December 9, 2025 17:04
bashrc/profile
##-- Aliases --##
alias ll='ls -l'
alias k='kubectl'
alias ke='kubectl exec -it'
alias kc='kubectx'
alias kn='kubens'
##-- Completions --##
# bash-completion@2 (installed via brew install bash-completion@2)
[[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"
@wdhowe
wdhowe / git-cheatsheet.md
Last active December 9, 2025 17:17
Git Commands Cheat Sheet

Git Commands Cheat Sheet

Configuration

List Current Global Settings

git config --global --list
@wdhowe
wdhowe / debugging.md
Last active April 11, 2021 03:17
debugging
@wdhowe
wdhowe / Makefile
Last active April 11, 2021 22:10
An example Makefile for Docker and Leiningen.
.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)
@wdhowe
wdhowe / docker-commands.md
Created November 28, 2020 19:36
Docker commands to build, push, and run containers.

Docker Image Running/Building Examples

The docker images can all be run/built similar to the following.

Variables

Setup the variables per image.

GitHub Example

@wdhowe
wdhowe / clojure-tools-deps-projects.md
Last active December 11, 2025 14:15
Creating Clojure projects with deps.edn
@wdhowe
wdhowe / clojure-install.md
Last active December 12, 2025 01:32
Install the Clojure Programming Language
@davidvhill
davidvhill / gist:c71ec05730994e5f1fb1f39b2dd57dd6
Last active September 21, 2020 14:45
Function with Retry
;; 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]
@wdhowe
wdhowe / emacs-cheatsheet.md
Last active June 15, 2023 06:49
Emacs Cheatsheet

Emacs Cheatsheet

A cheatsheet inspired by the book "Clojure for the Brave and True".

Shortcut Keys Used

  • C = Control Key
  • M = Meta Key (Alt on PCs, Option on Macs)

Examples: