This file contains hidden or 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/lua | |
-- SPDX-FileCopyrightText: Florian Maurer | |
-- SPDX-License-Identifier: MIT | |
local jsonc = require("jsonc") | |
local function truncate_hostname(hostname, max_length) | |
-- If the hostname is already within the maximum length, return it as is | |
if #hostname <= max_length then | |
return hostname |
This file contains hidden or 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 sh | |
#################################################################### | |
### ____ _____ ____ ___ _ _ _ ___ _ _ _ __ __ ### | |
### | _ \| ____| __ )_ _| / \ | \ | | / _ \| \ | | | \ \ / / ### | |
### | | | | _| | _ \| | / _ \ | \| | | | | | \| | | \ V / ### | |
### | |_| | |___| |_) | | / ___ \| |\ | | |_| | |\ | |___| | ### | |
### |____/|_____|____/___/_/ \_\_| \_| \___/|_| \_|_____|_| ### | |
#################################################################### | |
####### _ _ ___ _ _ ____ _ _ _ _ _____ _ _ ######## |
This file contains hidden or 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 | |
# backup script which backs up a whole linux installation doing incremental backups using rsync | |
# Check for root priviliges | |
if [[ $EUID -ne 0 ]]; then | |
printf "Please run as root:\nsudo %s\n" "${0}" | |
exit 1 | |
fi | |
set -o errexit |
This file contains hidden or 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
services: | |
ollama: | |
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest} | |
container_name: ollama | |
volumes: | |
- ./ollama:/root/.ollama | |
ports: | |
- "11434:11434/tcp" | |
restart: unless-stopped | |
tty: true |
This file contains hidden or 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 bash | |
# SET ENV VARIABLES FOR YOUR USE CASE | |
# export RESTIC_PASSWORD= | |
# export RESTIC_REPOSITORY=sftp:host:/mnt/folder | |
# Each element is the exclusion path | |
excludes=( | |
"$HOME/.local" # Local configuration and application files | |
"$HOME/.cache" # Temporary cache files |
OlderNewer