Skip to content

Instantly share code, notes, and snippets.

View oxr463's full-sized avatar
💻
./configure --enable-hacker-mode

oxr463

💻
./configure --enable-hacker-mode
View GitHub Profile
@oxr463
oxr463 / README.md
Last active May 9, 2023 08:07
OpenWrt JSON-RPC

OpenWrt JSON-RPC

Dependencies

Authentication

@oxr463
oxr463 / CHANGELOG.rst
Last active September 17, 2022 02:08
Keep a Changelog in reStructuredText!

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

@oxr463
oxr463 / README.md
Created April 13, 2022 16:58
Rancher v2.6.4 - cattle-cluster-agent error

Rancher v2.6.4 - cattle-cluster-agent error

kubectl get pods -n cattle-system
NAME                                    READY   STATUS             RESTARTS   AGE
cattle-cluster-agent-5d576c8868-kw4g5   0/1     CrashLoopBackOff   39         3h31m
cattle-cluster-agent-5d576c8868-zntln   0/1     CrashLoopBackOff   39         3h30m
lramage@srq-wrk-005:~$ kubectl logs cattle-cluster-agent-5d576c8868-zntln -n cattle-system
INFO: Environment: CATTLE_ADDRESS=10.30.59.102 CATTLE_CA_CHECKSUM= CATTLE_CLUSTER=true CATTLE_CLUSTER_AGENT_PORT=tcp://172.20.114.59:80 CATTLE_CLUSTER_AGENT_PORT_443_TCP=tcp://172.20.114.59:443 CATTLE_CLUSTER_AGENT_PORT_443_TCP_ADDR=172.20.114.59 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PORT=443 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_PORT_80_TCP=tcp://172.20.114.59:80 CATTLE_CLUSTER_AGENT_PORT_80_TCP_ADDR=172.20.114.59 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PORT=80 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_SERVICE_HOST=172.20.114.59 CATTLE_CLUSTER_AGENT_SER
@oxr463
oxr463 / yaml2dot.py
Last active April 7, 2022 12:47 — forked from rchrd2/yaml2dot.py
YAML to Graphviz
#!/usr/bin/python
# vim: fileencoding=utf-8
# SPDX-License-Identifier: MIT
u"""Translate YAML written text to graphviz dot language
Input YAML text like below:
---
@oxr463
oxr463 / README.md
Last active January 16, 2022 00:07
System Engineering Internship to Hire

Job title: System Engineer Intern

Location: Tampa, FL (remote)

Reports to: Chief Technology Officer (CTO)

Employment type: full/part time

@oxr463
oxr463 / calculator_form_wireframe.svg
Created September 28, 2021 23:30
Calculator Form Wireframe
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oxr463
oxr463 / elb.tf
Last active August 10, 2021 18:05
Elastic Load Balancer Terraform
# SPDX-License-Identifier: 0BSD
resource "aws_elb" "lramage-elb-001" {
availability_zones = [
"us-east-1a",
"us-east-1b"
]
connection_draining = false
connection_draining_timeout = 300
cross_zone_load_balancing = false
idle_timeout = 60
# Check Open Sockets
# See: https://github.com/rancher/rancher/issues/31324
NAME=$(docker ps --format='{{.Names}}' |grep k8s_cluster-register_cattle-cluster-agent)
PID=$(docker inspect -f '{{.State.Pid}}' "$NAME")
[ ! -d /var/run/netns ] && mkdir /var/run/netns
ln -sf /proc/$PID/ns/net "/var/run/netns/$NAME"
ip netns exec ${NAME} lsof -i -n -P
@oxr463
oxr463 / README.md
Last active June 20, 2021 16:34
Differences between uthash and libretro-deps/uthash

Libretro Dependency - uthash

Differences between uthash and libretro-deps/uthash.

Methodology

Clone source repositories

git clone https://github.com/libretro/libretro-deps.git
@oxr463
oxr463 / README.md
Created June 10, 2021 16:05
Linux VR Setup 2020