Skip to content

Instantly share code, notes, and snippets.

View d-t-w's full-sized avatar
💭
No alarms and no surprises.

Derek Troy-West d-t-w

💭
No alarms and no surprises.
View GitHub Profile
@d-t-w
d-t-w / kPow-LM.md
Last active January 26, 2022 07:19
@d-t-w
d-t-w / leiningen-release-me.md
Created June 24, 2021 06:54
Leiningen Release Me!

I work on a Macbook Pro.

I use Leiningen for project automation and Git-Flow (AVH) for a sane Git branching model.

I do not sign my releases, I don't need to for our internal projects.

An Unexpected Party

My misadventure began when I upgraded Leiningen.

@d-t-w
d-t-w / generate-certificate-chain.sh
Created June 17, 2021 06:04
Generate self-signed certificates, keystore, and truststore for use in testing Jetty HTTPS
#!/bin/bash
rm *.jks 2> /dev/null
rm *.pem 2> /dev/null
echo "===================================================="
echo "Creating fake third-party chain root -> ca"
echo "===================================================="
# generate private keys (for root and ca)
@d-t-w
d-t-w / gist:a239dfca4f57b7ff6f38c895b7f45405
Created February 27, 2021 22:21
Intellij Cursive+Cljfmt Editor CodeStyle
<code_scheme name="TW" version="173">
<ClojureCodeStyleSettings>{
:cljs.core/as-&gt; :only-indent
:cljs.core/assoc 0
:cljs.core/cond-&gt; :only-indent
:cljs.core/cond-&gt;&gt; :only-indent
:cljs.core/defonce :only-indent
:cljs.core/with-meta :only-indent
:cljs.core.async/go :only-indent
:cljs.core.async/go-loop :only-indent
@d-t-w
d-t-w / cljs-serverless.md
Created January 27, 2020 05:06 — forked from lilactown/cljs-serverless.md
CLJS in AWS Lambda Quick Start
<S> = template
<FWS> = #'[ \t\r\n]*'
when = <'~='> #'[a-zA-Z0-9\-]+'
when-not = <'~!'> #'[a-zA-Z0-9\-]+'
repeated = <'~*'>
text = #'[^~]*'
variable = <'~$'> #'[a-zA-Z0-9\-]+'
(ns insta.parse-test
(:require [cljs.test :refer-macros [is]]
[devcards.core :refer-macros [deftest]]
[instaparse.core :as insta :refer-macros [defparser]]))
(insta/defparser parser
(str "<S> = template\n\n<FWS> = #'[ \\t\\r\\n]*'\n\n"
""
"when = <'~='> #'[a-zA-Z0-9\\-]+'\n"
"when-not = <'~!'> #'[a-zA-Z0-9\\-]+'\n"

Keybase proof

I hereby claim:

  • I am d-t-w on github.
  • I am dtw (https://keybase.io/dtw) on keybase.
  • I have a public key whose fingerprint is 99C5 5C60 57AA 6F2C 7596 5AFB A518 818A 7E62 19A6

To claim this, I am signing this object: