Skip to content

Instantly share code, notes, and snippets.

@mstred
mstred / resume.json
Last active January 9, 2024 12:12
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Edson Samuel Jr.",
"label": "Software Developer",
"image": "",
"email": "samuedson@gmail.com",
"phone": "+5581986434064",
"url": "https://mstred.net",
"summary": "",
@mstred
mstred / acg-mkwp-node-exporter-setup.md
Last active December 30, 2023 14:51
acg-mkwp-node-exporter-setup.md

This should be run on all cluster nodes:

(
sudo ufw allow 9100
sudo userdel -rf prometheus
rm -f setup-node-exporter.sh

cat <<EOF > setup-node-exporter.sh
#!/usr/bin/env sh
@mstred
mstred / acg-ke-cluster-setup.md
Last active December 26, 2023 13:48
acg-ke-cluster-setup.md

Run the setup scripts below on all cluster nodes:

cat <<EOF > setup-docker.sh
#!/usr/bin/env sh

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
@mstred
mstred / acg-kthw-net-conf-notes.md
Last active October 8, 2023 15:30
acg-kthw-net-conf-notes.md

Installing Weave Net on ACG-KTHW Worker Nodes

# I had to go back and remove CNI bridge and loopback config files to enable communication through Weave Net
sudo mv /etc/cni/net.d/10-bridge.conf /etc/cni/net.d/99-loopback.conf ~
# sudo mv ~/10-bridge.conf ~/99-loopback.conf /etc/cni/net.d

# see https://github.com/weaveworks/weave/issues/3960
# cloud.weave.works was shut down so we need to download the manifest file straight from their repository release url
wget https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml
cat <<EOF > config.yaml
---
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
networking:
podSubnet: 10.244.0.0/16
apiServer:
extraArgs:
service-node-port-range: 8000-31274
EOF
@mstred
mstred / vbox-modsign.md
Last active December 29, 2018 21:23
Signing Fedora Kernel Modules for VirtualBox

This procedure is required in order to use VirtualBox in a Fedora installation from a machine using SecureBoot.
It sucks, though... but, this is it. 🤷‍♂️

# generate MOK (machine owned key)
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=$(whoami)/"

# import MOK into SecureBoot
sudo mokutil --import MOK.der
@mstred
mstred / keybase.md
Created April 29, 2018 18:36
keybase.md

Keybase proof

I hereby claim:

  • I am mstred on github.
  • I am mstred (https://keybase.io/mstred) on keybase.
  • I have a public key ASDBExZ7PjDiB1Zuvp6hcwwQVXjDKRWEXI-k2RI7mbLOxQo

To claim this, I am signing this object:

@mstred
mstred / gist:a1c81c68e7c1041eced07f960f043a50
Created April 20, 2018 09:51
Delete all local branches but the one checked out
alias gbrda='git branch | gsed "s/^[^*]/git branch -D/e"'
@mstred
mstred / gist:8e409ad84c0ad7c16e777abd7a1c5a18
Created January 22, 2018 00:42
jekyll deps for alpine... just in case
apk add --update alpine-sdk cmake libxml2-dev libxslt-dev
@mstred
mstred / gist:e34abe5ab0fac72b32141a62c4496f73
Created December 24, 2016 15:38
Creating EFI System Partition for Windows
- Boot the computer using the Windows 7/8/8.1/10 installation media.
- On the first screen, press Shift+F10 to bring up the command prompt.
- Run the following commands at the command prompt.
diskpart
list disk
select disk # Note: select the disk where you want to add the EFI System partition.
list partition
select partition # Note: select the Windows OS partition (# number) or your data partition.
shrink desired=100