Skip to content

Instantly share code, notes, and snippets.

View thejmazz's full-sized avatar

Julian Mazzitelli thejmazz

View GitHub Profile

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 February 21, 2022 22:46
Example using docker compose v2 health check depends on and tmpfs to store Vault secrets ephemeral with container
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 July 6, 2018 15:59
yadm bootsrap with --bootstrap
#!/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 June 17, 2018 03:41
Protype Procedural DAG API

revision 1

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

@thejmazz
thejmazz / logs-per-hour.sh
Created September 14, 2017 18:59
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
thejmazz / package.json
Created August 1, 2017 04:32
ES2015 + glsl files + inline GLSL, with glslify on webpack 2
{
"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 19:53
Example showing chrome debugger and express server with nodemon duplicated logging

screen shot 2017-05-09 at 3 44 42 pm screen shot 2017-05-09 at 3 45 11 pm screen shot 2017-05-09 at 3 45 22 pm

'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'
@thejmazz
thejmazz / headless-gl-simple-clear-render.js
Last active March 13, 2017 13:51
Simple clear render with headless gl
'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)