Skip to content

Instantly share code, notes, and snippets.


James Cuzella trinitronx

View GitHub Profile
trinitronx / LICENSE
Last active Jul 4, 2020
AX_FEATURE_FLAG M4 Macro for usage with Autoconf
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
The GNU General Public License is a free, copyleft license for
trinitronx / Makefile_include_exclude
Last active Nov 25, 2019 — forked from davidlu1001/Makefile_include_exclude
Makefile for Terraform to support include/exclude
View Makefile_include_exclude
# Plan exclude / include targets
# To use: export INCLUDE or EXCLUDE with Extended Grep pattern for targets to match
TERRAFORM ?= terraform
PLAN_FILE ?= current.plan
REPO_NAME ?= terraform
trinitronx / pkgutil --files
Last active Sep 30, 2019
macOS Mojave 10.14.6 - Command Line Tools Header Files List
View pkgutil --files
trinitronx / apk-add.log
Last active May 18, 2018
Alpine openssl-dev openldap-dev package conflict
View apk-add.log
/ # apk add openldap-dev openssl-dev
ERROR: unsatisfiable constraints:
conflicts: openssl-dev-1.0.2o-r0[pc:libcrypto=2.6.3] openssl-dev-1.0.2o-r0[pc:libssl=2.6.3] openssl-dev-1.0.2o-r0[pc:openssl=2.6.3]
satisfies: openldap-dev-2.4.45-r3[libressl-dev]
conflicts: libressl-dev-2.6.3-r0[pc:libcrypto=1.0.2o] libressl-dev-2.6.3-r0[pc:libssl=1.0.2o] libressl-dev-2.6.3-r0[pc:openssl=1.0.2o]
satisfies: world[openssl-dev]
trinitronx /
Last active May 3, 2018

A basic example for deploying OLD Grafana with:

  • Session storage in Redis (users logged into web UI)
  • Dashboard storage in MySQL or MariaDB
  • AWS CloudWatch access via grafana-cloudwatch-access secret (should contain .aws/ credentials & config files)
  • Basic user authentication. Change this if you want LDAP, Google OAuth, etc...

Note: This was to work around bug [grafana/grafana#3824][1]. This stack was for Grafana 3.1.1, and Kubernetes v1.6.4! If I were deploying this into a newer production cluster, I'd use Deployment instead of ReplicationController. NFS still seems to be the most well supported data store supporting multiple pods mounting at the same time.

On the NFS mount, the directory structure used was the following:

trinitronx /
Last active Apr 26, 2018
Docker SOCKS5h Proxy Diagram


[ASCII art diagram][1] for docker networking proxy setup. [SVG file diagram][2] generated from ditaa tool.

How to Generate from source & view

git clone docker-socks5h-diagram.svg
cd ./docker-socks5h-diagram.svg
brew install ditaa
ditaa --transparent --verbose --no-separation --svg  ./ ./docker-diagram.svg
View terraform-trace-output-crash.txt
docker run -it --rm -u 817502452 -v ~/.aws:/root/.aws -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -v /Users/exampleuser:/Users/exampleuser -e HOME=/Users/exampleuser -e TF_DATA_DIR -e TF_VAR_env -e CREATED_BY -e TF_LOG -v /Users/exampleuser/src/pub/terraform-crash:/wd -w /wd/terraform hashicorp/terraform:0.11.3 console
2018/03/05 21:25:21 [INFO] Terraform version: 0.11.3 3802b14260603f90c7a1faf55994dcc8933e2069
2018/03/05 21:25:21 [INFO] Go runtime version: go1.9.1
2018/03/05 21:25:21 [INFO] CLI args: []string{"/bin/terraform", "console"}
2018/03/05 21:25:21 [DEBUG] Attempting to open CLI config file: /Users/exampleuser/.terraformrc
2018/03/05 21:25:21 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/03/05 21:25:21 [INFO] CLI command args: []string{"console"}
2018/03/05 21:25:21 [DEBUG] command: loading backend config file: /wd/terraform
2018/03/05 21:25:21 [INFO] command: backend config not found, returning nil: /wd/terraform
2018/03/05 21:25:21 [INFO] command: no config, returning nil
trinitronx / Makefile
Last active Feb 28, 2018
grc + make + read bash builtin bug reproduction test case
View Makefile
.PHONY: help list clean
UID := $(shell id -u)
interactive := $(shell [ -t 0 ] && echo 1)
ifeq (1,$(interactive))
define set-env
trinitronx / cec-client_output.log
Created Jan 14, 2018
Testing CEC with Pulse8 USB adapter on Ubuntu + Vizio TV - f.f.f.f Address only with Golang code?
View cec-client_output.log
$ echo 'scan' | cec-client -s
opening a connection to the CEC adapter...
DEBUG: [ 54] Broadcast (F): osd name set to 'Broadcast'
DEBUG: [ 55] connection opened, clearing any previous input and waiting for active transmissions to end before starting
DEBUG: [ 60] communication thread started
DEBUG: [ 171] turning controlled mode on
NOTICE: [ 343] connection opened
DEBUG: [ 343] processor thread started
DEBUG: [ 343] << Broadcast (F) -> TV (0): POLL
TRAFFIC: [ 343] << f0
trinitronx / mupen64plus-journalctl.log
Created Nov 2, 2017
mupen64plus fullscreen journalctl logs
View mupen64plus-journalctl.log
Nov 01 23:00:03 saturn caribou[3357]: daemon.vala:120: error in focus handler: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Caribou.Keyboard was not provided by any .service files
Nov 01 23:00:04 saturn unity-settings-[3055]: failed to turn the panel on: Could not change DPMS mode
Nov 01 23:00:04 saturn unity-settings-[3055]: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
Nov 01 23:00:04 saturn unity-settings-[3055]: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
Nov 01 23:00:08 saturn kernel: snd_hda_codec_hdmi hdaudioC1D3: HDMI: invalid ELD data byte 92
Nov 01 23:00:09 saturn unity-settings-[3055]: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
Nov 01 23:00:09 saturn unity-settings-[3055]: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
Nov 01 23:00:09 saturn unity-panel-ser[
You can’t perform that action at this time.