Skip to content

Instantly share code, notes, and snippets.

View ekroon's full-sized avatar
📺

Erwin Kroon ekroon

📺
View GitHub Profile
@ekroon
ekroon / wait-for-it.sh
Created March 15, 2017 15:04
wait-for-it.sh
#!/usr/bin/env bash
## FROM: https://github.com/vishnubob/wait-for-it
# The MIT License (MIT)
# Copyright (c) 2016 Giles Hall
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
@ekroon
ekroon / fix-tunnelblick.sh
Last active February 20, 2017 09:17
Fix Tunnelblick routing (OSX)
#!/usr/bin/env bash
# install gtimeout with `brew install coreutils`
sudo ifconfig en0 down
sudo ifconfig en1 down
sudo gtimeout 5 route flush
sudo gtimeout 5 route flush
sudo ifconfig en1 up
sudo ifconfig en0 up
@ekroon
ekroon / Makefile
Last active January 30, 2017 07:43
adoc to docx
ADOC_FILES=$(wildcard *.adoc)
DOCX_FILES=$(addprefix target/,$(ADOC_FILES:.adoc=.docx))
all: $(DOCX_FILES)
target/%.docx: %.adoc target
asciidoctor -b docbook --out-file - $< | pandoc -f docbook -o $@
target:
mkdir -p target
@ekroon
ekroon / Linkerd TLS custom routing.md
Last active October 20, 2016 09:19
Linkerd TLS custom routing

Linkerd custom proxying

  • ./start-linkerd.sh
  • ./google-normal.sh
  • ./google-tls.sh
  • ./stop-linkerd.sh
@ekroon
ekroon / change_font.el
Last active December 23, 2015 06:34
emacs configuration
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:height 140 :family "Source_Code_Pro_for_Powerline"))))
'(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil))))
'(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil)))))
@ekroon
ekroon / core.clj
Last active August 29, 2015 14:15
sequenced-spiral
(defn spiral [n]
(let [amounts
(drop 1
(interleave
(range n 0 -1)
(range n 0 -1)))
directions
(cycle [[1 0] [0 1] [-1 0] [0 -1]])
@ekroon
ekroon / keybase.md
Created October 14, 2014 15:06
keybase.md

Keybase proof

I hereby claim:

  • I am ekroon on github.
  • I am erwin (https://keybase.io/erwin) on keybase.
  • I have a public key whose fingerprint is 79D0 15F2 1F65 D29B 320E 0BE5 6151 EA01 0D7E 912B

To claim this, I am signing this object:

{:db/id #db/id [:db.part/user]
:db/ident :generate-number
:db/fn #db/fn {:lang "clojure"
:params [db
counter-e counter-a
prefix
target-e target-a]
:code (let [current (or (ffirst (q '[:find ?v
:in $ ?e ?a
:where [?e ?a ?v]]
@ekroon
ekroon / Develop_attach.s
Last active December 12, 2015 01:18
Automatic disk attachment
select vdisk file=C:\Develop\Develop.vhd
attach vdisk
@ekroon
ekroon / gist:4344115
Created December 20, 2012 09:26
Recursive git line endings reset
Get-ChildItem -Recurse | ?{ $_.PSIsContainer } | ForEach-Object { cd $_.FullName ; git rm -r --cached . ; git reset --hard ; git add . ; git commit -m "Normalize line endings ($_)" }