Skip to content

Instantly share code, notes, and snippets.

@kmassada
kmassada / Readme.md
Last active October 28, 2023 00:37
Quaint HP Servers in 2023

Quaint HP Servers in 2023

Acquired a few old HP servers for home lab.. this is to document their journey.

Challenge:

  • Started without using a monitor and a keyboard.

  • No access to any KVM over IP, or similar tools

REGISTRY=https://index.docker.io/v2
REPO=library
IMAGE=debian
TAG=latest
TOKEN=$(curl -sSL "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$REPO/$IMAGE:pull" \
| jq --raw-output .token)
curl -LH "Authorization: Bearer ${TOKEN}" "$REGISTRY/$REPO/$IMAGE/manifests/$TAG"
@kmassada
kmassada / failure.log
Last active April 7, 2021 19:49
zzh cannot connect logs
2021-04-07 07:23:15 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event timer_out_of_sync[L]: seconds=1.8326559760000123>
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.zigbee.application] Probing /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Connecting to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 at 115200 baud
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Opened /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 serial port
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Toggling RTS/CTS to skip CC2652R bootloader
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Connected to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 at 115200 baud
2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s before sending anything
2021-04-07 07:23:20 DEBUG (MainThread) [zigpy_znp.api] Sending bootloader skip byte
2021-04-07 07:23:20 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s or until a reset indication is recei
@kmassada
kmassada / README.md
Last active July 30, 2019 17:32
PFsense image to GCE instance

PFsense image to GCE instance

package main
import (
"errors"
"flag"
"fmt"
"strings"
"time"
)
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoheaders
spec:
selector:
matchLabels:
app: echoheaders
replicas: 1
template:
@kmassada
kmassada / README.md
Last active September 26, 2018 18:29
fanout ingress with static IP

create static IP

gcloud compute addresses create fanout-ingress --region $REGION

Note annotation "fanout-gress" is the name of static IP

 annotations:
// pubsub attempts to reproduce a client timeout issue.
package main
import (
"context"
"fmt"
"math/rand"
"os"
"os/user"
"sync/atomic"
@kmassada
kmassada / README.md
Created June 25, 2018 17:32
Trying let'sencrypt with nginx

Letsencrypt + nginx

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx
sudo apt-get install nginx