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.
# 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 | |
# apt install python3-apt | |
import apt | |
cache = apt.Cache() | |
for pkg in cache: | |
if cache[pkg.name].is_installed: | |
continue | |
if cache[pkg.name].candidate: | |
continue | |
print(pkg.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 [email protected] [email protected] | |
-- This function searches redis like this: | |
-- "SSCAN" "[email protected]" "0" "MATCH" "[email protected]" |
# 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 |
## list connections | |
nmcli c | |
## get the password of a specific connection | |
## where XXX is the NAME or UUID from the list above | |
nmcli --show-secrets c show XXX | grep psk |