Skip to content

Instantly share code, notes, and snippets.

View woudsma's full-sized avatar
🌌
☀️🛰☁️🌈

Tjerk Woudsma woudsma

🌌
☀️🛰☁️🌈
View GitHub Profile

Dokku ACL plugin

# Dokku host
dokku plugin:install https://github.com/dokku-community/dokku-acl.git acl

dokku ssh-keys:add guest guest-key.pub
dokku ssh-keys:list

mkdir ~dokku/.dokkurc
echo "export DOKKU_ACL_ALLOW_COMMAND_LINE=1" >> ~dokku/.dokkurc/acl
#!/bin/bash
echo "Compositing files and ramping up video framerate"
echo "================================================"
rm -rf render && mkdir render
for file in *.mov; do
# Ramp up video framerate, add audio
ffmpeg \
@woudsma
woudsma / k-d-tree.md
Last active February 19, 2018 12:54
Javascript k-d-tree
npm i k-d-tree
const kd = require('k-d-tree')

const data = new Array(1000)
  .fill()
  .map(() => ({
 type: "Point",
@woudsma
woudsma / dokku-postgres-postgis.md
Created January 17, 2018 12:38
Using the PostGIS extension on a PostgreSQL database with Dokku

Using the PostGIS extension on a PostgreSQL database with Dokku

docker pull mdillon/postgis:latest  
export POSTGRES_IMAGE="mdillon/postgis"  
export POSTGRES_IMAGE_VERSION="latest"  
dokku postgres:create my-postgis-db
@woudsma
woudsma / dump.md
Last active October 11, 2017 09:12

Install Homebrew

  • xcode-select --install
  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install PostgreSQL + PostGIS

  • brew update
  • brew install postgres
  • brew install postgis
  • brew services start postgres
  • createdb paperstorm
  • psql