Skip to content

Instantly share code, notes, and snippets.

View GauntletWizard's full-sized avatar

Ted Hahn GauntletWizard

View GitHub Profile
@GauntletWizard
GauntletWizard / kustomization-old.yaml
Last active May 8, 2023 20:53
Basic kustomize file
bases:
- ../base
patches:
- deployment.patch.yaml
# Before
ted@suki:~ $ dig onlyfinder.com ns @g.gtld-servers.net.
; <<>> DiG 9.18.14 <<>> onlyfinder.com ns @g.gtld-servers.net.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57770
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 13
;; WARNING: recursion requested but not available
@GauntletWizard
GauntletWizard / correction.md
Last active September 12, 2023 09:04
The Twelfth factor correction

The Twelfth Factor Correction

This is a series of notes on the Essay https://12factor.net/codebase

I. Codebase: One codebase tracked in revision control, many deploys

A twelve-factor app is always tracked in a version control system, such as Git, Mercurial, or Subversion. A copy of the revision tracking database is known as a code repository, often shortened to code repo or just repo.
A codebase is any single repo (in a centralized revision control system like Subversion), or any set of repos who share a root commit (in a decentralized revision control system like Git).

12 factor app specifically argues against a monorepo. Their argument is that the shared code should be refactored out into dependencies, as in Factor II. This is a valid argument, but the overhead of separating dependencies and testing them individually is not worth the cost for most small teams. The pattern of building a series of components of a distributed system from a common codebase - Of having one monorepo that produces m

@GauntletWizard
GauntletWizard / Juniper Config
Last active November 1, 2021 09:02
IPSEC Config
https://www.juniper.net/documentation/us/en/software/junos/vpn-ipsec/topics/topic-map/security-policy-based-ipsec-vpns.html#id-understanding-policy-based-ipsec-vpns
https://www.juniper.net/documentation/en_US/vsrx/information-products/pathway-pages/security-vsrx-aws-guide-pwp.pdf
- Page 23 has interface mappings.
https://www.juniper.net/documentation/us/en/software/junos/nat/topics/topic-map/security-nat-configuration-overview.html
https://www.juniper.net/documentation/en_US/day-one-books/AWS_vSRX_Cookbook22.pdf
Someone else's config:
https://gist.github.com/dijeesh/3e1f5526ca06846a715142b82fdf53c0
AWS Guide to juniper:
https://docs.aws.amazon.com/vpn/latest/s2svpn/Juniper_Troubleshooting.html
alias ta='terraform apply plan && rm plan'
alias tp='terraform get --update && terraform plan -out plan'
pip3 install virtualenvwrapper
export PATH="$PATH:/home/ted/.local/bin"
. ~/.local/bin/virtualenvwrapper.sh
activate
@GauntletWizard
GauntletWizard / README.md
Created October 16, 2020 10:16
Steam Cost history
# Login to gcloud
gcloud auth login
# Generate a service account token as yourself:
gcloud auth application-default login
auuaaagguuuauaccuucccagguaacaaaccaaccaacuuucgaucucuuguagaucuguucucuaaacgaacuuuaaaaucuguguggcugucacucggcugcaugcuuagugcacucacgcaguauaauuaauaacuaauuacugucguugacaggacacgaguaacucgucuaucuucugcaggcugcuuacgguuucguccguguugcagccgaucaucagcacaucuagguuucguccgggugugaccgaaagguaagauggagagccuugucccugguuucaacgagaaaacacacguccaacucaguuugccuguuuuacagguucgcgacgugcucguacguggcuuuggagacuccguggaggaggucuuaucagaggcacgucaacaucuuaaagauggcacuuguggcuuaguagaaguugaaaaaggcguuuugccucaacuugaacagcccuauguguucaucaaacguucggaugcucgaacugcaccucauggucauguuaugguugagcugguagcagaacucgaaggcauucaguacggucguaguggugagacacuugguguccuugucccucaugugggcgaaauaccaguggcuuaccgcaagguucuucuucguaagaacgguaauaaaggagcugguggccauaguuacggcgccgaucuaaagucauuugacuuaggcgacgagcuuggcacugauccuuaugaagauuuucaagaaaacuggaacacuaaacauagcagugguguuacccgugaacucaugcgugagcuuaacggaggggcauacacucgcuaugucgauaacaacuucuguggcccugauggcuacccucuugagugcauuaaagaccuucuagcacgugcugguaaagcuucaugcacuuuguccgaacaacuggacuuuauugacacuaagagggguguauacugcugccgugaacaugagcaugaaauugcuugguacacggaacguucugaaaagagcuaugaauugcagaca
@GauntletWizard
GauntletWizard / Notes
Last active March 14, 2020 01:12
Debugging go-fuse osx
Hello fails, memfs works. ZipFS also fails, for same reason. I think it has to do with how access is working? Going to try implementing access and see how works.
Implementing NodeAccesser on Hello makes the FS work. WTF. Even a meaningless one.