Skip to content

Instantly share code, notes, and snippets.

View stefanbirkner's full-sized avatar

Stefan Birkner stefanbirkner

View GitHub Profile
@stefanbirkner
stefanbirkner / checksum.sh
Created July 20, 2019 20:10
Create a checksum file in each directory
#!/usr/bin/env bash
readonly FOLDER=$1
create_checksum_file ()
{
local folder=$1
local file="$folder/md5_sums"
echo "Create checksum file $file"
@stefanbirkner
stefanbirkner / remove_old_snaps.sh
Created April 2, 2021 15:23
Removes old revisions of snaps
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
@stefanbirkner
stefanbirkner / cornwall.html
Created September 10, 2025 23:08
Cornwall Travel
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>