Skip to content

Instantly share code, notes, and snippets.


Julian Mazzitelli thejmazz

View GitHub Profile

Keybase proof

I hereby claim:

  • I am thejmazz on github.
  • I am jmazz ( on keybase.
  • I have a public key whose fingerprint is 3529 9E3C 8E7E 9F50 2688 324C 3392 20E2 CDBD F0A9

To claim this, I am signing this object:

thejmazz / docker-compose.yml
Last active Aug 22, 2018
Example using docker compose v2 health check depends on and tmpfs to store Vault secrets ephemeral with container
View docker-compose.yml
version: '2.3'
image: vault
container_name: minio_init
VAULT_CACERT: /run/secrets/chain.pem
thejmazz /
Created Jul 6, 2018
yadm bootsrap with --bootstrap
# This script can be "curl-piped" into bash to bootstrap a dotfiles repo when
# yadm is not locally installed. Read below for instructions.
# DISCLAIMER: In general, I would advise against piping someone's code directly
# from the Internet into an interpreter (like Bash). You should
# probably review any code like this prior to executing it. I leave
# it to you to decide if this is risky behavior or not. The main
thejmazz /
Last active Jun 17, 2018
Protype Procedural DAG API

revision 1

screenshot from 2018-06-16 21-39-28

thejmazz /
Created Sep 14, 2017
Get mb/days of logfile for a docker container
#!/usr/bin/env sh
# Usage: call with docker container name, requires stat
# E.g. sudo ./logs-per-hour project_service_1
id=$(docker inspect $1 --format "{{ .ID }}")
started_date=$(docker inspect $id --format "{{ .Created}}")
started=$(date +%s -d ${started_date})
now=$(date +%s)
thejmazz / package.json
Created Aug 1, 2017
ES2015 + glsl files + inline GLSL, with glslify on webpack 2
View package.json
"scripts": {
"start": "webpack-dev-server",
"build": "NODE_ENV=production webpack"
"devDependencies": {
"babel-core": "^6.18.2",
"babel-loader": "^6.2.8",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-glslify": "^2.0.0",
thejmazz /
Last active May 9, 2017
Example showing chrome debugger and express server with nodemon duplicated logging
View bincap-webpack.config.js
'use strict'
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
const whsAliases = require('whs/tools/alias.js')
const isProd = process.env.NODE_ENV === 'production'
View whs-reduce-links.js
thejmazz / headless-gl-simple-clear-render.js
Last active Mar 13, 2017
Simple clear render with headless gl
View headless-gl-simple-clear-render.js
'use strict'
const width = 512
const height = 512
const fs = require('fs')
const { PNG } = require('pngjs')
const gl = require('gl')(width, height, { preserveDrawingBuffer: true })
const regl = require('regl')(gl)