Skip to content

Instantly share code, notes, and snippets.

View nexus166's full-sized avatar
🌪️
🐧

nexus166

🌪️
🐧
  • Earth
View GitHub Profile
@nexus166
nexus166 / rpi-debootstrap.sh
Last active March 21, 2022 14:04 — forked from G-UK/Debootstrap Debian Arm64 OS for Raspberry Pi 3 & 4.md
Build a 64bit Debian OS for the Raspberry Pi using Debootstrap
#!/usr/bin/env bash
set -xeo pipefail;
IMAGE_SIZE=2000M
BOOT_SIZE=256M
IMAGE_ARCH=arm64
while getopts "s:" option; do
case $option in
@nexus166
nexus166 / README.md
Last active March 28, 2020 05:35 — forked from mosquito/README.md
Add doker-compose as a systemd unit
cat <<'EOF' > '/etc/systemd/system/[email protected]'
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service

[Service]
Restart=always
WorkingDirectory=/etc/docker/compose/%i
@nexus166
nexus166 / generate_directory_index_caddystyle.py
Created January 22, 2021 02:29 — forked from glowinthedark/generate_directory_index_caddystyle.py
Generate directory index (recurse subfolders with `-r` or `--recursive`). Use `-h` or `--help` for all options
#!/usr/bin/env python3
# ---
# Copyright 2020 glowinthedark
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,