Skip to content

Instantly share code, notes, and snippets.

View trinitronx's full-sized avatar
⛩️
Zazen

James Cuzella trinitronx

⛩️
Zazen
View GitHub Profile
@trinitronx
trinitronx / find-output-all-Mach-O.log
Last active January 24, 2022 19:01
Native vagrant + vagrant-libvirt gem binaries
View find-output-all-Mach-O.log
# Vagrant plugin directory
$ find ~/.vagrant.d/gems/2.7.4/ \( -iname '*.gemspec' -o -iname '.DS_Store' -o -iname '*.yaml' -o -iname '*.gz' -o -iname '*.pub' -o -iwholename '*/spec/*' -o -iwholename '*/test/*' \) -prune -o -type f -print0 | xargs -0 file | grep -v 'tar archive\|Ruby script\|ASCII text\|empty\|PNG image\|PEM\|JSON\|SPEC\|Unicode text\|HTML doc\|Git \(index\|pack\|bundle\)\|SVG\|ISO 9660\|Perl script\|JPEG\|CSV text'
~/.vagrant.d/gems/2.7.4//extensions/arm64-darwin-21/2.7.0/ruby-libvirt-0.8.0/_libvirt.bundle: Mach-O 64-bit bundle arm64
~/.vagrant.d/gems/2.7.4//gems/ruby-libvirt-0.8.0/ext/libvirt/nwfilter.o: Mach-O 64-bit object arm64
~/.vagrant.d/gems/2.7.4//gems/ruby-libvirt-0.8.0/ext/libvirt/nodedevice.o: Mach-O 64-bit object arm64
~/.vagrant.d/gems/2.
@trinitronx
trinitronx / Qt5 Circular Build Dependencies.txt
Last active November 9, 2021 17:03
ASCII art tree representation of Qt5 qtwebengine Build Dependencies on Debian unstable (sid)
View Qt5 Circular Build Dependencies.txt
qtwebengine
\
├ Depends: libqt5opengl5-dev (>= 5.15.2+dfsg~) but it is not going to be installed
| \
| libqt5opengl5-dev = Source Package: qtbase-opensource-src [1]
| \
| | Depends: qdoc-qt5 (>= 5.15~) but it is not going to be installed
| |\
| | qdoc-qt5 = Source Package: qttools-opensource-src [2]
@trinitronx
trinitronx / LICENSE
Last active July 4, 2020 09:20
AX_FEATURE_FLAG M4 Macro for usage with Autoconf
View LICENSE
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@trinitronx
trinitronx / Makefile_include_exclude
Last active November 25, 2019 22:13 — forked from davidlu1001/terraform_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
PLAN_OPTIONS ?=
APPLY_OPTIONS ?=
EXCLUDE ?=
INCLUDE ?=
TERRAFORM ?= terraform
PLAN_FILE ?= current.plan
REPO_NAME ?= terraform
@trinitronx
trinitronx / pkgutil --files com.apple.pkg.macOS_SDK_headers_for_macOS_10.14
Last active September 30, 2019 22:52
macOS Mojave 10.14.6 - Command Line Tools Header Files List
View pkgutil --files com.apple.pkg.macOS_SDK_headers_for_macOS_10.14
System
System/Library
System/Library/Frameworks
System/Library/Frameworks/AGL.framework
System/Library/Frameworks/AGL.framework/Headers
System/Library/Frameworks/AGL.framework/Versions
System/Library/Frameworks/AGL.framework/Versions/A
System/Library/Frameworks/AGL.framework/Versions/A/Headers
System/Library/Frameworks/AGL.framework/Versions/A/Headers/agl.h
System/Library/Frameworks/AGL.framework/Versions/A/Headers/aglContext.h
@trinitronx
trinitronx / apk-add.log
Last active May 18, 2018 20:53
Alpine openssl-dev openldap-dev package conflict
View apk-add.log
/ # apk add openldap-dev openssl-dev
ERROR: unsatisfiable constraints:
libressl-dev-2.6.3-r0:
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]
openssl-dev-1.0.2o-r0:
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
trinitronx / README.md
Last active May 3, 2018 22:47
kubernetes-grafana
View README.md

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
trinitronx / README.md
Last active April 26, 2018 00:30
Docker SOCKS5h Proxy Diagram
View README.md

docker-socks5h-diagram.svg

[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 https://gist.github.com/6427d6454fb3b121fc2ab5ca7ac766bc.git docker-socks5h-diagram.svg
cd ./docker-socks5h-diagram.svg
brew install ditaa

ditaa --transparent --verbose --no-separation --svg ./docker-ditaa-diagram.md ./docker-diagram.svg

@trinitronx
trinitronx / terraform-trace-output-crash.txt
Created March 5, 2018 21:29
Terraform console segfault
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
trinitronx / Makefile
Last active February 28, 2018 23:09
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))
INTERACTIVE_SHELL := true
endif
define set-env