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
[["/health-check"
{}
[""
{:get
{:interceptors
[fhir-api.interceptors/phi-fhir-database
fhir-api.interceptors/phi-bundle-database],
:handler fhir-api.handlers/health-check}}]]
["/metadata" {} ["" {:get {:handler fhir-api.handlers/metadata}}]]
["/Consent"
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 https://github.com/syl20bnr/spacemacs/issues/12535
;; 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")
View blaze-authorization-proposal.md
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
@benwiz
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": [
"any"
]
View backup_bash_configs.sh
TARGET_DIR="$HOME/code/bash_configs"
# 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
@benwiz
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
#!/bin/bash
# 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/backup_bash_configs.sh &> /tmp/cronjob_logs
View keybase.md

Keybase proof

I hereby claim:

  • I am benwiz on github.
  • I am benwiz37 (https://keybase.io/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.