Skip to content

Instantly share code, notes, and snippets.

@sg-s
sg-s / automatic-version-numbers.md
Last active March 3, 2024 10:07
Automatic version numbers of your git repository using git hooks

Put this in a file called pre-commit in .git/hooks/

#!/bin/sh
# To enable this hook, rename this file to "pre-commit".

git rev-list --count master > build_number
git add build_number
@davecan
davecan / open_powershell_here.md
Last active May 3, 2024 16:45
How to enable "Open PowerShell Here" context menu in Windows 10
@alexellis
alexellis / k8s-pi.md
Last active April 11, 2024 14:17
K8s on Raspbian
@robfe
robfe / about.md
Last active December 20, 2022 21:56
Running localstack in docker for windows with persistence enabled

Running localstack in docker for windows with persistence enabled

Running on Docker for Windows

Localstack comes with a docker-compose file that won't quite work when you're running the (linux) container in docker for Windows.

Two changes need to be made:

The docker.sock volume won't work on windows

We can just comment that line out:

@frdmn
frdmn / index.md
Last active March 16, 2023 15:43
Raspberry Pi 4B with Prusa MK3s / Einsy RAMBo headers

Raspberry Pi 4B with Prusa MK3s / Einsy RAMBo headers

The guide below describes how to connect a Raspberry Pi 4B to the Prusa i3 MK3s main board (Einsy RAMBo) board with its builtin RPi headers and an additional step-down / buck converter. The buck converter is necessary, since the Einsy headers do not provide enough amps to power anything bigger than a Raspberry Pi Zero W.

Parts needed

Wiring