Skip to content

Instantly share code, notes, and snippets.

View thomasbilk's full-sized avatar
💭
Git is for gits

Thomas Bilk thomasbilk

💭
Git is for gits
View GitHub Profile
@thomasbilk
thomasbilk / vault_decrypt
Last active June 8, 2017 15:53 — forked from leucos/clean_vault
Ansible vault transparent encryption revisited
#!/bin/sh
tmp=`mktemp`
cat "${1--}" > $tmp
ansible-vault decrypt $tmp > /dev/null 2>&1
if [ $? -eq 0 ]; then
cat "$tmp"
else
cat "${1--}"
@thomasbilk
thomasbilk / mandelbrot.sql
Last active August 29, 2015 14:25 — forked from rupey/mandelbrot.sql
Mandelbrot plot in postgres
WITH RECURSIVE
x(i) AS ( VALUES (0)
UNION ALL SELECT i + 1
FROM x
WHERE i < 101),
Z(Ix, Iy, Cx, Cy, X, Y, I) AS (
SELECT
Ix,
Iy,
X :: FLOAT,