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.
  • Virginia
View GitHub Profile
@bgulla
bgulla / rancher_uninstall.sh
Created July 29, 2019 19:43
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
bgulla / imessage_dump.py
Created June 25, 2019 15:20
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
bgulla / jetson_nano_cheatsheet.md
Last active September 5, 2022 21:29
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/jetson_clocks.sh --show
@bgulla
bgulla / boozer_help.md
Last active April 7, 2019 16:08
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 https://github.com/bgulla/boozer/raw/master/db/db.sqlite #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:

user@gulla-brandon-9ad8ebdf2:~$ sudo su -
1a5g@twog3tJ48^
^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
(Ignored)
root@gulla-brandon-9ad8ebdf2:~# sudo docker pull k8s.gcr.io/kube-scheduler-amd64:v1.10.1
v1.10.1: Pulling from kube-scheduler-amd64
f70adabe43c0: Pull complete
9dc7b6510188: Pull complete
user@gulla-brandon-9ad8ebdf3:~$ sudo kubeadm init --pod-network-cidr=10.244.0.0/16
[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 github.com/kubernetes-incubator/cri-tools/cmd/crictl
[certificates] Generated ca certificate and key.
[certificates] Generated apiserver certificate and key.
[certificates] apiserver serving cert is signed for DNS names [gulla-brandon-9ad8ebdf3.mylabserver.com kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IP
s [10.96.0.1 172.31.115.181]
#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 "10.0.1.11"
@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
🦄 user@devbox[~] > docker pull openshift/hello-openshift
Using default tag: latest
latest: Pulling from openshift/hello-openshift
4f4fb700ef54: Pull complete
5e90e09d6c7d: Pull complete
Digest: sha256:4d93c5c5171740635c2840a97f12dc14ac7919990b2644b835b8fa23a6f6f9f8
Status: Downloaded newer image for openshift/hello-openshift:latest
🦄 user@devbox[~] > openshift kube create pods -c examples/hello-openshift/hello-pod.json
🦄 user@devbox[~] >
_ _ _____ _ _ ___ __ _____ ____ _ ____