Based on https://dribbble.com/shots/2389505-Cards-Menu-Concept by Gal Shir.
Works well on small and big screens.
A Pen by Bennett Feely on CodePen.
| #! /bin/bash | |
| # complementing https://github.com/zerwes/opnsense-fail2ban | |
| # script will check all banned IPs listed in a list of fail2ban jails | |
| # and compare them against a opnsense alias, | |
| # removing the elements that are not in the ban list from fail2ban | |
| # | |
| # this will ensure that banned IPs that for what reaseon ever are left | |
| # in the opnsense alias are cleaned up (avoiding neverending bans) |
| --- | |
| # vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 smartindent nu ft=yaml | |
| # run a upgrade and optional | |
| # check later if the expected version of a desired package is installed | |
| # run needrestart | |
| # | |
| # example: ansible-playbook -e run_versioncheck=true -e apt_upgrade=full aptupgrade.yml | |
| - name: run apt upgrade |
| # shortform git commands | |
| alias g='git' | |
| # push changes to an empty git repository for the first time | |
| git push --set-upstream origin master | |
| # Remove + and - from start of diff lines | |
| git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r | |
| # clear out git hooks |
| #! /usr/bin/env python3 | |
| # | |
| # requirements: | |
| # apt install python3-apt | |
| import apt | |
| # as the script will list manual installed deb's, | |
| # you can ignore them by adding the name to this list | |
| IGNORE_PKG = ['check-mk-agent', 'yet-another-package-name'] |
| -- When using Whitelist and Blacklist last result wins! | |
| -- So maybe redis latency will decide ;) | |
| rspamd_config.PER_USER_WL = { | |
| -- CAUTION: This will whitelist the mail for every recipient when there is | |
| -- match for any recipient | |
| -- ADD a WL entry with: SADD RS_UWL_recipient@address.com sender@example.net | |
| -- This function searches redis like this: | |
| -- "SSCAN" "RS_UWL_recipient@address.com" "0" "MATCH" "sender@example.net" |
| # urls | |
| https://badgen.net/badge/support/UKRAINE/?color=0057B8&labelColor=FFD700 | |
| https://badgen.net/badge/stand%20with/UKRAINE/?color=0057B8&labelColor=FFD700 | |
| # embedded badge in github markdown | |
|  | |
|  |
# service samba-ad-dc stop
# mkdir sambabackup-20220213-offline
# samba-tool domain backup offline --targetdir=/root/sambabackup-20220213-offline
# mv /var/lib/samba /var/lib/samba.bakup
# samba-tool domain backup restore --newservername=DC01 --backup-file=/root/sambabackup-20220213-offline/samba-backup-2022-02-13T19-38-42.702607.tar.bz2 --targetdir=/var/lib/samba
# vim /etc/samba/smb.conf # set new "netbios name"
| #--------------------------------------------------------------------- | |
| # Global settings | |
| #--------------------------------------------------------------------- | |
| global | |
| # to have these messages end up in /var/log/haproxy.log you will | |
| # need to: | |
| # | |
| # 1) configure syslog to accept network log events. This is done | |
| # by adding the '-r' option to the SYSLOGD_OPTIONS in | |
| # /etc/sysconfig/syslog |