Skip to content

Instantly share code, notes, and snippets.

View kmott's full-sized avatar
😱
Automating myself out of a job.

Kyle Mott kmott

😱
Automating myself out of a job.
View GitHub Profile
@kmott
kmott / 01-summary.md
Last active November 10, 2023 18:41
Migrating from PX-Developer to PX-Essentials or PX-Enterprise on HashiCorp Nomad

Summary

These are the steps I took to migrate an existing pxd volume from PX-Developer to PX-Essentials / PX-Enterprise running in Nomad--I am not responsible for any data loss you incur if you follow these steps!!

Prerequisites

If you are running PX-Developer using portworx/px-dev Docker container, you MUST stop that first before continuing:

  • nomad stop --purge storage
@kmott
kmott / 01-vault-gitlab-module.tf
Last active March 15, 2024 07:47
Terraform - JWT Auth for GitLab using Vault
//
// This enabled the JWT Auth backend in Vault for GitLab to authenticate with (obtains a Vault token based on $CI_JOB_JWT
// in pipeline jobs)
//
resource "vault_jwt_auth_backend" "gitlab" {
type = "jwt"
path = var.gitlab.jwt_auth_path
jwks_url = format("https://%s/-/jwks", var.gitlab.hostname)
bound_issuer = var.gitlab.hostname
}
@kmott
kmott / switchport-flapping-apr6-apr9.txt
Created April 9, 2020 16:56
Switchport Flapping - Apr 6 - Apr 9
SanctuarySW-Upstairs-US.v4.0.80# tail -76 messages | grep -ciE '.*Port\ \(1\).*disabled.*'
START DATE: Apr 6 04:58:29 SanctuarySW-Upstairs user.warn syslog: uplink-monitor[1008]: libubnt.get_ufdb_entry_by_mac(): wrong mac address format
COUNT: 32 flapping events detected
END DATE: Apr 9 09:38:29 SanctuarySW-Upstairs user.info syslog: utermd[1006]: utermd.house_keeper(): Session "86af7601-af17-4a0d-863e-6e5f8ebcd3ee" answer parsed successfully, going to build up connection
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- FVC Sermon Podcast
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Title Published YouTube ID MP3
----- --------- ---------- ---
The Amazing and Amazed Jesus Thu, 05 Sep 2019 20:15:46 +0000 https://youtu.be/eFByscJmTm8 The_Amazing_and_Amazed_Jesus.mp3
Zombies and Witches Sun, 01 Sep 2019 12:59:49 +0000 https://youtu.be/wFZgXrbjaIs Zombies_and_Witchcraft.mp3
The Unknown God
@kmott
kmott / autoexec.cfg
Created May 17, 2019 23:05
Quake3 Config - yesh
// Original Mouse used: Razer DeathAdder 2013 (500 DPI, 0 Accel, 1000 polling rate)
// Thanks to GreenKnight for his config archive, where i got most of the aliases :O
// http://www.challenge-world.com/gk/configs/quake3/
unbindall
bind kp_enter "exec yesh.cfg"
bind kp_del "exec hulk.cfg"
seta name "IronGold"
seta cl_renderer "opengl2"
//Movement===============================================================================
bind mouse2 "+forward"