Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Config, add µLogger Credentials and the relative Path to µLogger
*/
define('USER', 'UloggerUsername');
define('PASSWORD', 'UloggerPassword');
define('ULOGGER_PATH', 'ulogger');
/**
@restah
restah / php_fail2ban.php
Created April 19, 2022 06:58
php_fail2ban.php
<?php
/**
* Try to block Clients and Bots on host Packages without Access to the Server functions
*
*
* SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
* START TRANSACTION;
* SET time_zone = "+00:00";
* CREATE TABLE `f2b_connections` (
* `id` int(255) UNSIGNED ZEROFILL NOT NULL,
@restah
restah / install_synology_drive_on_fedora.sh
Created January 21, 2021 13:22 — forked from JochemKuijpers/install_synology_drive_on_fedora.sh
Installs Synology Drive on Fedora 29 (from the .deb package). Use at own risk.
#!/usr/bin/env bash
if [[ $UID != 0 ]];
then
echo "Please run this script with sudo or as root:"
echo
echo "sudo $0 $*"
exit 1 || return 1
fi