Skip to content

Instantly share code, notes, and snippets.

View ingebrixen's full-sized avatar
🏝️
Working from home

Thomas Böhme ingebrixen

🏝️
Working from home
View GitHub Profile
@ingebrixen
ingebrixen / fail2ban-allstatus.sh
Created February 25, 2021 09:15 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
public function getDateRange()
{
$Start = new \DateTime(date('Y-m-d')); // Datum von
$dtEnd = new \DateTime(date('m/y')); // Datum bis
$dtEnd->modify('first day of next month');
$dtStart = $Start->modify('-1 year');
$period = new \DatePeriod(
$dtStart,
@ingebrixen
ingebrixen / dbeaver
Created November 7, 2022 08:21
MacOS: ddev dbeaver - open DBeaver for your current ddev project
#!/bin/bash
#ddev-generated
# Support for dbeaver
# This command is available if macOS and dbeaver is installed in the normal place
## Description: Run dbeaver with current project database
## Usage: dbeaver
## Example: "ddev dbeaver"
## OSTypes: darwin
## HostBinaryExists: /Applications/DBeaver.app