Skip to content

Instantly share code, notes, and snippets.

View abuxton's full-sized avatar
💭
Always discombobulated. Never really too busy.

adam buxton abuxton

💭
Always discombobulated. Never really too busy.
View GitHub Profile
@abuxton
abuxton / Terraform on Mac M1.md
Created August 3, 2022 10:42 — forked from straubt1/Terraform on Mac M1.md
Notes to install Terraform on M1

Installing the amd64 version of Terraform on Mac with M1

Not all Terraform providers are built for arm64.

One solution here is to install Terraform as amd64 which can be easily done from the downloads page.

However, for those who are using and switching between versions of Terraform often, a more streamlined approach is desirable.

Enter asdf.

@abuxton
abuxton / tmux.md
Created July 20, 2022 07:28 — forked from davewongillies/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@abuxton
abuxton / .gitignore
Last active July 22, 2022 15:07 — forked from croxton/SSL-certs-OSX.md
Generate ssl certificates with Subject Alt Names
# Created by https://www.toptal.com/developers/gitignore/api/ssl
# Edit at https://www.toptal.com/developers/gitignore?templates=ssl
*.csr
*.pem
*.key
*.crt
# End of https://www.toptal.com/developers/gitignore/api/ssl
@abuxton
abuxton / openssl.markdown
Created July 19, 2022 15:10 — forked from leommoore/openssl.markdown
OpenSSL Basics

#OpenSSL Basics

##Certificate Types

  • CA Certificate Authority
  • CRL Certificate Revocation List
  • CSR Certificate Signing Request
  • DCA Deligate Certificate Authority
  • DER Data Encryption Standard
  • DES Data Encryption Standard
  • DH Diffie-Hellmann
@abuxton
abuxton / README.MD
Last active May 4, 2023 12:49 — forked from idokd/scrap-ca-to-bundle.sh
Scrape site for its certificates, validate and create a ca bundle, for the use in downloading a local copy of Certificate Authorities (CAs)
def get_ca_bundle():
"""Tries to find the platform ca bundle for the system (on linux systems)"""
ca_bundles = [
# list taken from https://golang.org/src/crypto/x509/root_linux.go
"/etc/ssl/certs/ca-certificates.crt", # Debian/Ubuntu/Gentoo etc.
"/etc/pki/tls/certs/ca-bundle.crt", # Fedora/RHEL 6
"/etc/ssl/ca-bundle.pem", # OpenSUSE
"/etc/pki/tls/cacert.pem", # OpenELEC
"/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", # CentOS/RHEL 7
]
@abuxton
abuxton / self-signed-certificate-with-custom-ca.md
Created January 21, 2022 14:53 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@abuxton
abuxton / README.md
Last active November 17, 2021 13:00 — forked from kordless/README.md
Rust Server Deployment for Google Container Engine

Howdy Y'all! I'm @kordless on YouTube and I occasionally play and stream Rust, the game.

This repo is for deploying a Rust Server running on Google Container Engine. Google has a deal going where you can get $300 of free credits for a year on Google Cloud, so it's a good excuse to signup and run your own server. And no, I don't work for Google!

based on this article https://www.rustafied.com/how-to-host-a-rust-server-in-linux

This deployment origionally used an image built by @dids, which is hosted on Docker Hub: https://hub.docker.com/r/didstopia/rust-server/

This deployment method can be used to start a small server to play with friends or practice building things. In a few days, I'll update the scripts to include a way to save the content you've created, in-game, with others who can then run their own servers and load your content in to explore it for themselves.

@abuxton
abuxton / README.md
Created November 6, 2021 08:49 — forked from mbaitelman/README.md
Automated Terraform Deployments Using Bitbucket Pipelines