Skip to content

Instantly share code, notes, and snippets.

View wdullaer's full-sized avatar
🏠
ThingHandlerFactory

wdullaer

🏠
ThingHandlerFactory
View GitHub Profile
@wdullaer
wdullaer / bunyan-log.clj
Created February 5, 2018 15:15
A bunyan configuration for the Clojure Timbre logger
(ns wdullaer.bunyan-log
(:require [clojure.data.json :as json]
[clojure.string :as string]
[taoensso.timbre :as log]))
(def bunyan-levels
"Maps a logging level keyword into a bunyan integer level"
{:trace 10
:debug 20
:info 30
@wdullaer
wdullaer / git-oneliners.sh
Last active March 21, 2021 05:27
Useful git scripts / onelines
#!/bin/bash
# Checkout remote branch to new local branch
git checkout -b newbranch remotename/remotebranch
# Reset a file to a version from a few commits ago
# https://stackoverflow.com/questions/9751928/git-best-way-to-remove-all-changes-from-a-given-file-for-one-branch
BASE_REV=$(git merge-base old-branch current-branch)
git filter-branch --tree-filter "git checkout ${BASE_REV} -- path-to-restore" old-branch..current-branch

Keybase proof

I hereby claim:

  • I am wdullaer on github.
  • I am wdullaer (https://keybase.io/wdullaer) on keybase.
  • I have a public key ASDhhLdKJQA77jQA0r6XHyUhDt7pMtq5WN9LGZGYji4QXQo

To claim this, I am signing this object: