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 / 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[~] >
_ _ _____ _ _ ___ __ _____ ____ _ ____
$ oc login
OpenShift server [https://adxplatform.org:8443]: https://adxplatform.org
Username: alice
Authentication required for https://adxplatform.org (openshift)
Password: ******
Login successful.
You don't have any projects. You can try to create a new project, by running
#!/usr/bin/python
# -*- coding: utf-8 -*
import os
import time
import math
import logging
import scrollphat
import RPi.GPIO as GPIO
from flowmeter import *