Skip to content

Instantly share code, notes, and snippets.

@rosswf
rosswf / main.go
Last active April 30, 2023 19:51
Arduino Clock using tinygo
package main
import (
"machine"
"time"
)
var (
hour uint8 = 6
min uint8 = 48
@rosswf
rosswf / k3s.md
Last active June 17, 2024 12:29
Deploy HA k3s with kube-vip and MetalLB using k3sup

Prerequisites

kubectl

Install the required tools for deploying and controlling k3s.

Installation Docs:

# Download
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
@rosswf
rosswf / planner.py
Last active March 19, 2021 06:46
Beginner.py weekly coding prompt 18th March. Build a tool to help people plan ahead for the new season.
import pathlib
import sqlite3
import sys
from rich import box
from rich.align import Align
from rich.console import Console
from rich.prompt import Prompt
from rich.table import Table
@rosswf
rosswf / st-patrick.py
Created March 10, 2021 19:40
Beginner.py weekly coding prompt March 9th - Create something to determine if someone has the luck of the Irish.
import random
import pygame
import sys
# Options
WIDTH = 1024
HEIGHT = 768
FONT = "carlito"
FONT_SIZE = 72
FONT_COLOUR = pygame.Color("0x07a860")
@rosswf
rosswf / .vimrc
Created June 29, 2020 20:55
.vimrc
syntax enable
set number
set ts=4
set softtabstop=4
set colorcolumn=80