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 /
Created Aug 14, 2019
Reading electric meters using a usb-sdr
import sys
import os
import platform
import time
import subprocess
import json
import socket
import logging
from influxdb import InfluxDBClient
bgulla /
Last active Aug 9, 2019
Installing oc-cli on Jetson Nano

Building oc-cli for ARM Architectures

ARM64/AARCH64 (Jetson Nano) or RPi 4

git clone -b release-3.11
sudo apt install libgpgme-dev -y 
mkdir -p src/
mv origin src/
go build -v
bgulla /
Created Jul 29, 2019
Removes rancher from a host
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 /
Created Jun 25, 2019
Dumps all images from iMessages.
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)
bgulla /
Last active Sep 24, 2019
Notes related to the NVIDIA Jetson Nano dev kit

Jetson Nano Cheatsheet

image text

Below are my personal notes related to the Nvidia Jetson Nano Dev-board.

Performance Management

Nvidia allows your to fine tune the performance of your Jetson nano. More on this here.

Show the current settings

sudo /usr/bin/ --show
bgulla /
Last active Apr 7, 2019
Troubleshoot boozer deployments with this handy-dandy script.

Boozer Boilerplate Test

The following instructions are certified-correct way to get yourself a working boozer setup.

Step 1: Setup Environment & dl database file

Run the following commands.

mkdir ~/boozer-test
cd ~/boozer-test
wget #Downloads the baseline database file.
touch config.ini

API Primitives

Object Spec:

  • Provided to k8s
  • Describes desired state of objects

Object status:

  • provided by k8s
  • describes the actual state of the object

More on APIs:

View gist:cadd73516dca486888eda21c7ee7ce6c
user@gulla-brandon-9ad8ebdf2:~$ sudo su -
^C[sudo] password for user:
You are required to change your password immediately (root enforced)
su: Authentication token is no longer valid; new one required
root@gulla-brandon-9ad8ebdf2:~# sudo docker pull
v1.10.1: Pulling from kube-scheduler-amd64
f70adabe43c0: Pull complete
9dc7b6510188: Pull complete
View linux_academy_fail.txt
user@gulla-brandon-9ad8ebdf3:~$ sudo kubeadm init --pod-network-cidr=
[init] Using Kubernetes version: v1.10.1
[init] Using Authorization modes: [Node RBAC]
[preflight] Running pre-flight checks.
[WARNING FileExisting-crictl]: crictl not found in system path
Suggestion: go get
[certificates] Generated ca certificate and key.
[certificates] Generated apiserver certificate and key.
[certificates] apiserver serving cert is signed for DNS names [ kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IP
s []
View bmp180.cpp
#include <ESP8266WiFi.h>
#include <Wire.h>
#include <PubSubClient.h>
#include <Adafruit_BMP085.h>
//#include <Adafruit_HDC1000.h>
#define wifi_ssid "ssid"
#define wifi_password "redacted"
#define mqtt_server ""
You can’t perform that action at this time.