Skip to content

Instantly share code, notes, and snippets.

Avatar

Julian Mazzitelli thejmazz

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am thejmazz on github.
  • I am jmazz (https://keybase.io/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
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'
services:
init:
image: vault
container_name: minio_init
environment:
VAULT_ADDR: https://10.110.1.9:8200
VAULT_CACERT: /run/secrets/chain.pem
volumes:
@thejmazz
thejmazz / bootstrap.sh
Created Jul 6, 2018
yadm bootsrap with --bootstrap
View bootstrap.sh
#!/bin/bash
#
# 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
thejmazz / README.md
Last active Jun 17, 2018
Protype Procedural DAG API
View README.md

revision 1

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

@thejmazz
thejmazz / logs-per-hour.sh
Created Sep 14, 2017
Get mb/days of logfile for a docker container
View logs-per-hour.sh
#!/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
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
thejmazz / README.md
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
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)