Skip to content

Instantly share code, notes, and snippets.

Ben Wiz benwiz

Block or report user

Report or block benwiz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View generated-routes.edn
:handler fhir-api.handlers/health-check}}]]
["/metadata" {} ["" {:get {:handler fhir-api.handlers/metadata}}]]
benwiz / karabiner_caps-to-esc-ctrl.json
Created Aug 14, 2019
This snippet goes inside the `rules` array of ~/.config/karabiner/karabiner.json
View karabiner_caps-to-esc-ctrl.json
"manipulators": [
"description": "Change caps_lock to control when used as modifier, escape when used alone (~/.config/karabiner/karabiner.json)",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
View init.el
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
;; I added this line copied from
;; because Clojure wasn't install correctly on my MacbookAir.
;(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
;; check OS type
;; TODO: Should this go inside user-init?
(when (string-equal system-type "darwin")
benwiz / s3-sync
Created Dec 23, 2018
Sync a folder on my computer with an S3 folder in my S3 archive bucket
View s3-sync
# TODO: Should take `DEST_DIR` as a required input
aws s3 sync . s3://benwiz-archive/$DEST_DIR --profile personal --exclude "*node_modules/*" --exclude "*venv/*" --exclude "*.DS_Store"
View cronfile
# sync bashrc, bash_profile, bash_alias on boot (every 3rd hour should be more than sufficient)
0 */3 * * * $HOME/code/backup_bash_configs/ &> /tmp/cronjob_logs
# Copy .bashrc to general git repo
cp "$HOME/.bashrc" "$TARGET_DIR/bashrc"
# Copy .bash_profile to general git repo
cp "$HOME/.bash_profile" "$TARGET_DIR/bash_profile"
# Copy .bash_alias to general git repo
cp "$HOME/.bash_alias" "$TARGET_DIR/bash_alias"
# commit and push change
View bash_alias
# ~/.bash_alias is a convention of my own design. All aliases (and functions?) should be placed in here.
# Then this file is sourced in ~/.bashrc.
# my local ip address
alias myip="ipconfig getifaddr en0"
# python & pip
alias pip=pip3
alias python=python3

Keybase proof

I hereby claim:

  • I am benwiz on github.
  • I am benwiz37 ( on keybase.
  • I have a public key ASDd6AN_wVRCCwtI769nxZ9DAALG3ZAWeIqJqKvke2zhmwo

To claim this, I am signing this object:

You can’t perform that action at this time.