Skip to content

Instantly share code, notes, and snippets.

View chwzr's full-sized avatar
🍋

Felix Koppe chwzr

🍋
View GitHub Profile
@chwzr
chwzr / setup-k3s-on-hetzner.sh
Created May 17, 2020 11:26 — forked from alexanderkjeldaas/setup-k3s-on-hetzner.sh
Setup k3s on Hetzner with CSI drivers
#!/bin/bash
LOCATION=${HCLOUD_LOCATION:-nbg1-dc3}
if [ -z "$HCLOUD_TOKEN" ]; then
echo "You need to set HCLOUD_TOKEN to an Hetzner API token!";
exit 1
fi
if [ -z "$SSH_KEY" ]; then
@chwzr
chwzr / wget.sh
Created November 15, 2018 09:17 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
wget \
--recursive \ # Download the whole site.
--no-clobber \ # Don't overwrite existing files.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
--restrict-file-names=windows \ # Modify filenames to work in Windows as well.
--domains yoursite.com \ # Do not follow links outside this domain.
--no-parent \ # Don't follow links outside the directory you pass in.
@chwzr
chwzr / CAME.ino
Created September 4, 2018 09:12 — forked from superyarik/CAME.ino
#define pinRX 2
#define pinTX 8
#define CM_MAX_TE 450
#define CM_MIN_TE 250
#define CM_BITS12 12
#define CM_BITS24 24
#define Te 320
volatile byte level = 255;