Skip to content

Instantly share code, notes, and snippets.

View tekh's full-sized avatar
💭
I may be slow to respond.

Benoit St-Martin tekh

💭
I may be slow to respond.
  • 428 Precondition Required
View GitHub Profile

Anyone Can install RKE2 and Rancher on a Node

  • RKE2 - Security focused Kubernetes
  • Rancher - Multi-Cluster Kubernetes Management
  • Longhorn - Unified storage layer

We will need a few tools for this guide. We will walk through how to install helm and kubectl.

A longer version of this install : Can a 12 y/o install the Rancher Stack?

@hydrz
hydrz / install.sh
Last active September 15, 2025 10:10
High Availability K3s and Kube-vip with Cilium
#!/bin/sh
set -e
set -o noglob
# Usage: ./install.sh [options]
#
# Example:
# Installing on first master node run:
# ./install --num 3 --vip 192.168.2.10 --iface eth0
# Installing on other master nodes run:
import cv2
import numpy as np
def draw_text(
img,
*,
text,
uv_top_left,
color=(255, 255, 255),
@javaplus
javaplus / pwm.py
Last active August 4, 2025 06:05
RaspberryPI BTS7960 HBridge Example Simple
###############################################################
## Simple code to use PWM on the PI to control the BTS7960
##
## This simply spins the motor in one direction slowly
## speeding up slowly and then slowing down slowly over
## and over again.
##
###############################################################
import RPi.GPIO as GPIO
@Tokugero
Tokugero / How-To.md
Last active December 8, 2021 10:35
Telegraf with pfSense 2.4.4 and pfBlockerNG

How to Install Telegraf logparser for pfBlockerNG

On pfSense

Step 1: Install pfBlockerNg-devel

System > Package Manager > Available Packages > pfBlockerNG-devel (As of this writing this was 2.2.5_19) (Optional, run the /usr/local/bin/geoipupdate.sh script)

[2.4.4-RELEASE][root@pfSense.lab]/root: /usr/local/bin/geoipupdate.sh
Fetching GeoIP.dat and GeoIPv6.dat...
/usr/local/share/GeoIP/GeoIPupdate.VOmIvG/GeoI100% of  694 kB 6683 kBps 00m00s
/usr/local/share/GeoIP/GeoIPupdate.TeBBKT/GeoI100% of 1171 kB 6629 kBps 00m00s
@styblope
styblope / docker-api-port.md
Last active October 4, 2025 17:37
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@FlorianHeigl
FlorianHeigl / cheatsheets.md
Last active March 21, 2025 00:58
Printable Cheat Sheets for Software

A collection of links to useful cheat sheets.

Only what's properly printable can get a spot at the top of this list. It should also be small enough to fit on a few pages.
Almost all links in this document were designed by their creators so that YOU can print them in a good-looking format and store them however is best for you.
Anything that isn't really something you could print in A4/US Letter format, but is still a well-made cheatsheet can get a spot at the end of the page.

Pleae contribute any you remember you've seen and liked.
It would be wonderful if we can get these to be something more commonly made.

Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session