Shell scripts to run Borg backups unattended.
# backup script
<?php | |
/** | |
* Pico assets modification time plugin | |
* | |
* Registers a Twig filter to add a asset's modification time. Pass a path | |
* to a file and it will return its corresponding URL with a time suffix. | |
* | |
* Example: | |
* |
#!/bin/bash | |
: << =cut | |
=head1 NAME | |
disks_ - Wildcard plugin to monitor filesystem usage | |
=head1 CONFIGURATION | |
This plugin does not normally require configuration. However, you can tweak its |
# -*- sh -*- | |
# Munin statefile support functions for munin shell plugins | |
# | |
: << =cut | |
=head1 NAME | |
plugin-statefile.sh - Munin statefile support functions for munin shell plugins | |
=head1 AUTHOR |
#!/bin/bash | |
export LC_ALL=C | |
readarray -t SCREENS < <(xrandr --listmonitors | grep "^ [0-9]\+: " | cut -d ' ' -f 6) | |
[[ ${#SCREENS[@]} > 0 ]] || exit 1 | |
CURBRIGHT="$(xrandr --current --verbose | awk 'on { if ($0 ~ /^\tBrightness: /) { print $2 } else if ($0 ~ /^\t/) { next } exit } /^[[:graph:]]+ connected primary/ { on=1 }')" | |
[ -n "$CURBRIGHT" ] && CURBRIGHT="$(bc 2> /dev/null <<< "scale=0; ($CURBRIGHT * 100)/1")" || CURBRIGHT=100 | |
function setbright { |
#!/usr/bin/env python3 | |
import os, sys | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
if len(sys.argv) < 2: | |
sys.stderr.write("Usage:\n") |
#!/bin/bash | |
: << =cut | |
=head1 NAME | |
nc_port - Plugin to monitor TCP/UDP port connectivity | |
=head1 CONFIGURATION |
Leider ist die Dokumentation der verschiedenen Statistikoptionen bei all-inkl.com ziemlich unvollständig und der Tooltip im KAS wenig hilfreich. Insbesondere welchen Einfluss die verschiedenen Optionen auf die Access Logs nehmen ist komplett undokumentiert. Der Einfluss auf die Access Logs ist dabei aber wichtig um zu verstehen welche Zugriffe in den Webalizer-Statistiken erfasst werden.
logs/access_log_[Datum].gz
des Rootverzeichnisses geloggt.logs/access_log_[Datum].gz
des Domainpfades geloggt.# <@LICENSE> | |
# Copyright 2016 Daniel Rudolf <www.daniel-rudolf.de> | |
# | |
# 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, software |