Githook pre-commit script to prevent accidental commits using the wrong email address, for example from git global configuration.
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
#!/bin/bash | |
touch initrd.new | |
cd early | |
find . -print0 | cpio --null --create --format=newc > ../initrd.new | |
cd ../early | |
find . -print0 | cpio --null --create --format=newc >> ../initrd.new |
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
#!/bin/sh | |
echo "Top 5 Alpine Mirrors:" | |
for MIRROR in $(curl -s http://dl-cdn.alpinelinux.org/alpine/MIRRORS.txt) | |
do | |
MEASUREMENT=$(curl -s --connect-timeout 2 --max-time 5 -w '%{time_total}' -o /dev/null "$MIRROR") | |
TIME=$(echo "scale=0;(${MEASUREMENT} * 1000)/1" | bc) | |
echo "${TIME} ${MIRROR}" | |
done | sort -n | head -n5 | cut -d " " -f2 |
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
## template: jinja | |
#cloud-config | |
users: | |
- name: compose | |
uid: '2000' | |
groups: docker | |
write_files: | |
- path: /home/compose/env | |
permissions: '0644' |
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
#!/bin/ash | |
set -euo pipefail | |
readonly HOOK_NAME='efi-kernel' | |
# Defaults | |
output_dir='/boot/efi/Alpine' | |
output_name='linux-{flavor}.efi' | |
backup_old=yes | |
skip_flavors= |
Implementation of the Caddy webserver new file listing template as nginx XSLT template.
Requires nginx module ngx_http_xslt_filter_module
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
#!/bin/sh | |
# Based on: https://github.com/tprelog/iocage-homeassistant/issues/64 | |
install_packages() { | |
echo "[i] Installing required packages for Home Assistant" | |
pkg install -y \ | |
autoconf \ | |
bash \ |
OlderNewer