Skip to content

Instantly share code, notes, and snippets.

View bgulla's full-sized avatar
🦃
fast and loose is still fast.

Brandon bgulla

🦃
fast and loose is still fast.
  • Rancher Federal
  • Virginia
View GitHub Profile
@bgulla
bgulla / rke2_kubevip.md
Last active May 9, 2024 06:07
RKE2 api-server HA with Kube-VIP

On-Prem RKE2 api-server HA with Kube-VIP

               ,        ,  _______________________________
   ,-----------|'------'|  |                             |
  /.           '-'    |-'  |_____________________________|
 |/|             |    |    
   |   .________.'----'    _______________________________
   |  ||        |  ||      |                             |
   \__|'        \__|'      |_____________________________|
@bgulla
bgulla / banner_harvester.jpg
Last active April 22, 2024 02:45
Proxmox Nested Virtualization Tutorial- Harvester/ESXI
banner_harvester.jpg
@bgulla
bgulla / Makefile
Created April 17, 2023 20:31
RKE2/K3s Nvidia GPU-Operator installation
prep:
helm repo add nvidia https://helm.ngc.nvidia.com/nvidia \
&& helm repo update
install:
helm install --wait nvidiagpu \
-n gpu-operator --create-namespace \
--set toolkit.env[0].name=CONTAINERD_CONFIG \
--set toolkit.env[0].value=/var/lib/rancher/k3s/agent/etc/containerd/config.toml \
--set toolkit.env[1].name=CONTAINERD_SOCKET \
@bgulla
bgulla / rke2_k3s_external_container_runtime.md
Last active February 22, 2024 08:26
Instructions for running RKE2/K3s with an external CRI/container-runtime

k3s/RKE2 with external CRI/containerd support

While k3s and RKE2 ship with their own statically-compiled containerd binary, sometimes you need to be able to utilize a more standard container socket. Especially if your container-scanner expects a more traditional installation path (i.e. Twistlock/PrismaCloud). This quick guide will show you how to get up and running with an external CRI.

Install containerd

There are better ways to do this, but the most common way of installing containerd is via the docker-ce yum repository.

sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
@bgulla
bgulla / honeypot_counts.txt
Last active February 16, 2024 17:31
Passwords attempted over a 5-day period on a PORT 22 ssh honeypot.
204 password
193 123456
144 admin
125 support
116 123
114 1234
105 default
99 12345
97 1
84 ubnt
@bgulla
bgulla / proxmox_webvnc_fix.sh
Last active July 7, 2023 12:32
Proxmox script to fix WebVNC after an IP change
#!/bin/bash
## https://forum.proxmox.com/threads/console-failed-to-connect-to-server-host-key-verification-failed.78957/
# Usage: ./proxmox_webvnc_fix.sh <shorthostname>
# Notes: may need to run twice for the fix to take.
set -e
DOMAIN="lark.lol"
if [ $# -eq 0 ]; then
echo "No hostname provided. Exiting..."
@bgulla
bgulla / readme.md
Last active February 5, 2023 15:16
Bad instructions on setting up a Hyperion DIY ambilight system

WLED Hyperion Ambilight Notes

Disclaimer

Nothing about this is turnkey. It's a mess of protocols, firmware and apps, but if you're the right kind of nuts, keep reading.

Required hardware

  • Power Supply Amazon $22
  • WS2812B Addressable RGB LED Strips Amazon $30
  • NodeMCU 8266 Amazon $6
  • AndroidTV - There are alternatives that include using a HDMI grabber and decoding the signal on a Pi/server directly, but this works for a 0.1 alpha attempt. I used a NVidia ShieldTV
@bgulla
bgulla / webos_tv_root.txt
Last active December 28, 2022 14:29
LG WebOS Root Instructions from #OpenLGTV Discord
##
## shoutout to https://github.com/webosbrew
## I lifted these instructions from the #OpenLGTV discord (under pinned msgs). The instructions are for Windows but just replace Putty with a terminal and you're good to go.
1. Enable Developer Mode: https://webostv.developer.lge.com/develop/getting-started/developer-mode-app
2. Download Software:
a. WebOS-Dev-Manager - https://github.com/webosbrew/dev-manager-desktop/releases
b. PuTTY - https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
c. Homebrew Channel 0.5.1 ipk - https://github.com/webosbrew/webos-homebrew-channel/releases
3. In WebOS-Dev-Manager perform these steps:
@bgulla
bgulla / coral-playbook.yml
Created November 24, 2022 02:50
Google Coral GPU Ubuntu playbook
---
- hosts: all
tasks:
# ansible all -i closet.lark.lol -u root coral-playbook.yaml
# deb https://packages.cloud.google.com/apt coral-edgetpu-stable main
# https://packages.cloud.google.com/apt/doc/apt-key.gpg
- name: Add an Apt signing key, uses whichever key is at the URL
ansible.builtin.apt_key:
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
@bgulla
bgulla / rancher-airgap-examples.md
Last active September 23, 2022 14:15
Example scripts to get Rancher & Rancher Kubernetes Distributions in an air-gap environment

Rancher | Airgap all teh things.

k3s

k3s with private (authenticated) registry

### Assumptions:
# - Registry: You have a private registry (ex: harbor.air-gap.dev) pre-seeded with required images
# - File Dependencies:
#   - SELinuxRPM: k3s requires an selinux rpm. You can grab it ahead of time from here: https://github.com/k3s-io/k3s-selinux/releases
#   - k3s binary: (example) https://github.com/k3s-io/k3s/releases/download/v1.24.4%2Bk3s1/k3s