Skip to content

Instantly share code, notes, and snippets.

View aldegoeij's full-sized avatar
🚀

Alexander L. de Goeij aldegoeij

🚀
View GitHub Profile
@aldegoeij
aldegoeij / .zshrc
Created December 26, 2021 10:54
My `~/.zshrc` 😎
# Make sure you `brew install`:
# - zsh-autosuggestions
ZSH_THEME="robbyrussell"
source #{HOMEBREW_PREFIX}/share/zsh-autosuggestions/zsh-autosuggestions.zsh
plugins=(git zsh-autosuggestions web-search)
source $ZSH/oh-my-zsh.sh
alias python=python3
alias pip=pip3
@aldegoeij
aldegoeij / gpg_ssh.md
Last active December 15, 2021 10:43
YubiKey GPG for git SSH and commit signing

So you want to be super secure and awesome with a GitHub verified badge to your name? Read on!

The below has been tested and verified with a new 'Yubico YubiKey 5c NFC', note that FIPS versions don't seem to support SSH usage, and e.g. the BIO is missing support for several standards).

Goal

The idea is you end up with a YubiKey 5 with:

  • a signing key for commit signing
  • an authorization key for SSH authentication
@aldegoeij
aldegoeij / gist:4e67b672af4fc687ca69ddeba1ec38c2
Last active September 6, 2021 09:45
How to download a bunch of log files from AWS S3 if they are not using prefixes properly
# brew install parallel first, forget about xargs and friends
aws s3 ls s3://___your_bucket_name___ --output=table | awk '{print $4}' | grep ___the_date_prefix___ | parallel -a - -exec aws s3 cp s3://___your_bucket_name___/{} .
@aldegoeij
aldegoeij / sync.sh
Last active March 23, 2022 14:55
Sync an entire GitHub org using `gh`. It clones missing repo's first, then runs a pull. Pull might fail if you have changes in your tree.
gh repo list $ORG_NAME_HERE --limit 1000 | while read -r repo _; do
gh repo clone "$repo" "$repo" --
git -C "$repo" pull
done
@aldegoeij
aldegoeij / openssl.md
Last active March 25, 2020 11:31
Often used and forgotten OpenSLL Commands

OpenSSL and SSH commands:

Adding password to an existing SSH key

ssh-keygen -p -f {file_name}

Generating SSL key-set (private & csr) (RSA 2048-bit SHA2)

@aldegoeij
aldegoeij / my_profile.iterm2
Created August 14, 2019 14:21
My Defautl iTerm2 Profile
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Red Component" : 0.51372549019607838,
"Color Space" : "sRGB",
"Blue Component" : 0.58823529411764708,
"Green Component" : 0.58039215686274515
@aldegoeij
aldegoeij / my_workspace.md
Last active August 14, 2019 13:45
A Cloud Engineer's Workspace

Hi, I'm a cloud engineer, spending most of my time in AWS with the occasional excursion into O365/Azure.

This is a collection of tools, ways of working and thoughts to keep stuff centralized for myself. Perhaps it can be useful to you!

I'm not a commandline junky so apologies for all the clickedy tools in this list!

  • VS Code: my IDE of choice, see my settings [here]
  • zsh
  • oh-my-zsh (agnoster, Solarized Dark, git npm yarn aws, eval "$(direnv hook zsh)")
  • direnv (
@aldegoeij
aldegoeij / my_machine.sh
Last active November 10, 2022 07:37
A Cloud Engineer's Machine
#!/bin/bash
# This runs fabulously on macOS Mojave!
echo ""
echo "Do NOT run this as root! You were warned..."
echo ""
# Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Keybase proof

I hereby claim:

  • I am aldegoeij on github.
  • I am aldegoeij (https://keybase.io/aldegoeij) on keybase.
  • I have a public key ASCYXabG8seEt4CH0TWtXca7sER2EILxw2ck8H_Mx6c1CAo

To claim this, I am signing this object: