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
@kamermans
kamermans / fail2ban-allstatus.sh
Created July 11, 2011 17:06
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
@koehnlein
koehnlein / dbeaver
Last active October 27, 2023 06:49
ddev dbeaver // UPDATE: A better `ddev dbeaver` command is part of DDEV since https://github.com/ddev/ddev/releases/tag/v1.22.4 and nobody should need this snippet from here anymore.
#!/usr/bin/env bash
## Usage: dbeaver
## Description: Open DBeaver and create database connection with the current project
## Example: "ddev dbeaver"
dbeaver -con "name=ddev-${DDEV_PROJECT}|driver=mariadb|database=db|user=root|password=root|host=127.0.0.1|port=${DDEV_HOST_DB_PORT}|openConsole=true"