Skip to content

Instantly share code, notes, and snippets.

🦃
fast and loose is still fast.

Brandon bgulla

🦃
fast and loose is still fast.
  • Virginia
Block or report user

Report or block bgulla

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bgulla
bgulla / main.yml
Created Jan 13, 2020
Ansible-playbook to customize Proxmox installs
View main.yml
# _ _
# _ ____ _____ _ __ __ _| |_ ___| |__
# | '_ \ \ / / _ \_____| '_ \ / _` | __/ __| '_ \
# | |_) \ V / __/_____| |_) | (_| | || (__| | | |
# | .__/ \_/ \___| | .__/ \__,_|\__\___|_| |_|
# |_| |_|
#############
# TODO
@bgulla
bgulla / Jenkinsfile
Created Jan 13, 2020
Multi-architecture Jenkins Docker Builds with Docker manifest support
View Jenkinsfile
pipeline {
environment {
registryCredential = 'harbor-lol-jenk-robot'
DOCKER_IMAGE = sh 'echo ${JOB_NAME} | sed "s/gitea-larkspur//g" | sed "s/master//g"'
registry = "" /*be sure to include trailing slash*/
docker_image_name = "bgulla/rtl-tcp"
docker_img = "${registry}${docker_image_name}"
/* */
push_to_local_registry = true
View apcupsd_grafana.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
View manifest_example.jenkinsfile
pipeline {
environment {
registryCredential = 'harbor-lol-jenk-robot'
DOCKER_IMAGE = sh 'echo ${JOB_NAME} | sed "s/gitea-larkspur//g" | sed "s/master//g"'
registry = "" /*be sure to include trailing slash*/
docker_image_name = "bgulla/k8s757-flask"
docker_img = "${registry}${docker_image_name}"
/* */
push_to_local_registry = true
@bgulla
bgulla / kickstart.cfg
Last active Nov 12, 2019
Kickstarting a CentOS server
View kickstart.cfg
#####
# On the host that you want to run your kickstart server (in the folder containing kickstart.cfg):
# docker run --restart=always -p 9999:80 -v ${PWD}/kickstart.cfg:/var/www/html/kickstart.cfg nginx
#####
# Instructions:
# - Boot into a fresh CentOS box. When you get presented with the ASCII menu, press tab then type:
# ks=http://<IP_OF_KICKSTART_BOX>:9999/kickstart.cfg . Then press enter.
## kickstart.cfg
#####
@bgulla
bgulla / rancherOnProx.md
Last active Nov 8, 2019
Rancher Install Guide for n00bs
View rancherOnProx.md

Greenfield Rancher install

Pre-Rancher Steps

Kubernetes Persistent Storage

Head to your synology/freenas and setup a new NFS share just for your kubernetes persistent storage. Make sure to turn off authentication.

Networking - Create a vlan just for your VMs

  1. Create a vlan (10.0.X.1 or 192.168.X.1) just for your VMs in your Unifi Controller, dont worry about firewall or traffic shaping. What I typically do is once I have created the vlan, I go to the Unifi Switch configuration area, and assign the port that the server is being plugged-into as being mapped to my VM-VLAN.
  2. Create a vlan for your Ingress Controller/Metallb. Just create the vlan and we'll worry about the rest later.
@bgulla
bgulla / meterears-preview.py
Created Aug 14, 2019
Reading electric meters using a usb-sdr
View meterears-preview.py
#!/usr/bin/python
import sys
import os
import platform
import time
import subprocess
import json
import socket
import logging
from influxdb import InfluxDBClient
@bgulla
bgulla / oc-cli-arm64.md
Last active Aug 9, 2019
Installing oc-cli on Jetson Nano
View oc-cli-arm64.md

Building oc-cli for ARM Architectures

ARM64/AARCH64 (Jetson Nano) or RPi 4

cd $GOPATH
git clone -b release-3.11 https://github.com/openshift/origin.git
sudo apt install libgpgme-dev -y 
mkdir -p src/github.com/openshift
mv origin src/github.com/openshift/
go build -v github.com/openshift/origin/cmd/oc
@bgulla
bgulla / rancher_uninstall.sh
Created Jul 29, 2019
Removes rancher from a host
View rancher_uninstall.sh
docker rm -f $(docker ps -qa)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
sleep 1
for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done
rm -rf /etc/ceph \
/etc/cni \
@bgulla
bgulla / imessage_dump.py
Created Jun 25, 2019
Dumps all images from iMessages.
View imessage_dump.py
import os
import shutil
mkdir ~/Desktop/imessage
rootDir = "/Users/${USER}/Library/Messages/Attachments"
destDir = "/Users/${USER}/Desktop/imessage"
IGNORE_STRING = "pluginPayloadAttachment"
for dirName, subdirList, fileList in os.walk(rootDir):
#print("Found directory: %s" % dirName)
You can’t perform that action at this time.