CIDR | Subnet mask | Wildcard mask | # of IP addresses | # of usable IP addresses |
---|---|---|---|---|
/32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
/31 | 255.255.255.254 | 0.0.0.1 | 2 | 2* |
/30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
/29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
/28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
/27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# https://github.com/HarlemSquirrel/scripts/blob/master/rpi-check-throttling.py | |
# https://blog.mccormack.tech/shell/2019/01/05/monitoring-raspberry-pi-power-and-thermal-issues.html | |
# https://github.com/raspberrypi/firmware/commit/404dfef3b364b4533f70659eafdcefa3b68cd7ae#commitcomment-31620480 | |
# 1110000000000000010 | |
# ||| |||_ under-voltage | |
# ||| ||_ currently throttled | |
# ||| |_ arm frequency capped |
-
Download & install the Raspberry Pi Imager
-
Choose Device: Raspberry Pi 3
-
Choose OS: Raspberry Pi OS (other) > Raspberry Pi OS Lite (Legacy, 64-bit)
-
Click Next then Edit Settings and set Username/Password or SSH key
Fixes issue with Goodix fingerprint reader when a fingerprint has already been enrolled in the BIOS, but then the OS has been removed (without un-enrolling the fingerprint first). I.e. fprintd device reported an error during enrol: Finger is too similar to another, try use a different finger
sudo pamac install base-devel meson gobject-introspection gtk-doc
git clone https://gitlab.freedesktop.org/libfprint/libfprint.git
cd libfprint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires `git filter-repo` https://github.com/newren/git-filter-repo | |
mkdir tmp && cd tmp | |
export USERNAME="github-username" | |
export TOKEN="github-token-with-repo-access" | |
curl -u "$USERNAME:$TOKEN" "https://api.github.com/search/repositories?q=user:$USERNAME" | | |
grep -e 'ssh_url*' | | |
cut -d \" -f 4 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# use bash so we can source files | |
SHELL ["/bin/bash", "-c"] | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
Quickly and easily deploy an Eleventy Static Site to GitHub Pages with an optional custom domain.
- Use or create a new Eleventy project and commit and push it to a GitHub repo.
- In the root folder of your Eleventy project create a new file
deploy.sh
and copy the contents into it and on the commandline runchmod +x deploy.sh
- Edit your
package.json
file adding"deploy": "./deploy.sh"
into the bottom of thescripts:
section.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk-slim-stretch | |
SHELL ["/bin/bash", "-c"] | |
# Install build tools & newer version of cmake from Debian backports | |
RUN echo "deb http://deb.debian.org/debian stretch-backports main contrib non-free" >> /etc/apt/sources.list.d/backports.list \ | |
&& apt-get update \ | |
&& apt-get install -y \ | |
build-essential \ | |
bzip2 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /home/pi/.config/lxsession/LXDE-pi/autostart | |
@bash /home/pi/chromium-monitoring.sh |
NewerOlder