Shell scripts to run Borg backups unattended.
# backup script
<?php | |
/** | |
* Pico redirect plugin | |
* | |
* Adds a `Redirect` meta header to redirect to other URLs. The meta header | |
* supports URL substitution variables, namely %base_url%, %plugins_url%, | |
* %themes_url%, %assets_url% and %theme_url%. | |
* | |
* Example: |
#!/bin/bash | |
# coverage-badge.sh - Creates a coverage.svg badge from a clover.xml. | |
# | |
# Copyright (C) 2021 Daniel Rudolf (<https://www.daniel-rudolf.de>) | |
# License: The MIT License <http://opensource.org/licenses/MIT> | |
# | |
# SPDX-License-Identifier: MIT | |
function print_usage { | |
echo "Usage:" |
<?php | |
/** | |
* Parsedown figure extension | |
* | |
* Parsedown extension to wrap single-image lines in <figure>, not <p>. | |
* | |
* @author Krzysztof Antoniak | |
* @link https://gist.github.com/kantoniak/b1a5c7889e5583824487dc78d93da7cd | |
* @license Public Domain |
<?php | |
namespace PhrozenByte\MPDO; | |
use PDO; | |
use PhrozenByte\MPDOStatement; | |
use RuntimeException; | |
/** | |
* The MPDO class | |
* |
<?php | |
/** | |
* Pico page modification time plugin | |
* | |
* Adds a page's last modification time to its page data. | |
* | |
* Example: | |
* | |
* ```twig |
#!/bin/bash | |
# 6to4-daemon - Establishing an IPv6 tunnel using 6to4 | |
# Copyright (C) 2011 Daniel Rudolf <http://www.daniel-rudolf.de/> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
# Creates a empty public lobby in Grand Theft Auto Online. | |
# by Daniel Rudolf <https://github.com/PhrozenByte> | |
# | |
# This PowerShell v3+ script suspends `GTA5.exe` for 8 seconds, causing | |
# GTA Online to create a empty public lobby. For undisturbed fun | |
# without modders, griefers and other pathetic pip-squeaks. | |
# | |
# License: | |
# Creative Commons CC0 | |
# <https://creativecommons.org/publicdomain/zero/1.0/deed> |
<?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 |