Skip to content

Instantly share code, notes, and snippets.

View mattkenn4545's full-sized avatar

Matthew Kennedy mattkenn4545

View GitHub Profile
@mattkenn4545
mattkenn4545 / install-k3s.sh
Last active April 11, 2022 16:03
K3s/Rancher install script
#!/bin/env bash
set -e
export PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
: <<'README'
# Master node install, note this script /should/ be idempotentish. Rerunning to get worker node command output is fine
sudo -E ./install-k3s.sh
# to skip install of rancher
SKIP_RANCHER_INSTALL=true sudo -E ./install-k3s.sh
@mattkenn4545
mattkenn4545 / config.ign
Created June 23, 2020 17:25
flatcar-test
{"ignition":{"config":{},"security":{"tls":{}},"timeouts":{},"version":"2.2.0"},"networkd":{},"passwd":{"users":[{"name":"core","passwordHash":"$6$rounds=4096$oX9DRIVKq0Geq$symIddb9yXlf9KZFcDa6qM7VVY1Agm/XzvySA7wWm.C/VOKfYcXWl6o.qA17ZTAciOEt5XWFqcu5dNATtRY/V1"}]},"storage":{},"systemd":{}}
[bltouch]
sensor_pin: P1.25
control_pin: P2.0
x_offset: -51
y_offset: -18
z_offset: 2.300
speed: 5.0
samples: 2
[bed_mesh]
@mattkenn4545
mattkenn4545 / triplet.py
Created March 25, 2014 07:09
Pythagorean Triplet
'''Pythagorean Triplet
dumb_triplet is dumb because it is... this is by design
'''
import random
from datetime import datetime
print '##############The Dumb way##############\nLets just randomly guess what a, b, and c are...'