Skip to content

Instantly share code, notes, and snippets.

View abuxton's full-sized avatar
💭
discombobulated as always

adam buxton abuxton

💭
discombobulated as always
View GitHub Profile
@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
@abuxton
abuxton / README.md
Created October 8, 2021 11:03 — forked from renestalder/README.md
Unfollow all on Facebook

Facebook: Unfollow people and pages

  1. Open news feed preferences on your Facebook menu (browser)
  2. Click people or pages
  3. Scroll down (or click see more) until your full list is loaded
  4. Run the script in your browser console

Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.

See comments section for more up-to-date versions of the script. The original script is from 2017 and will not work as is.