Skip to content

Instantly share code, notes, and snippets.

View dardo82's full-sized avatar
🏠
Working from home

Michele Venturi dardo82

🏠
Working from home
View GitHub Profile
@dardo82
dardo82 / .zshrc@SurfacePro7
Last active May 12, 2026 01:06
ZSH configs
#!/usr/bin/env zsh
# ZSH configuration
# Set shell options.
export SH="${SHELL##*/}"
export SHRC="$HOME/.${SH}rc"
export CORRECT_IGNORE="_*"
@dardo82
dardo82 / .tmux.conf
Last active April 28, 2026 08:12
Tmux Conf
# Tmux Conf
bind-key "C-x" send-prefix
bind-key -T root "M-C" copy-mode
bind-key -T root "M-D" paste-buffer -p -s ""
bind-key -T root "M-P" paste-buffer -p -s ""
@dardo82
dardo82 / showpw-askpass.sh
Last active January 6, 2026 01:59
sudo helper
#!/bin/zsh
_sudo_showpw() {
echo "[sudo] Enter credentials of $USER: "
local HIDDEN=true
while true
do if [[ -z $HIDDEN ]] ; then
if ((CURSOR==${${#BUFFER}})) ; then
echo -e -n $'\r'${${BUFFER}} ;
else echo -e -n $'\r'${=LBUFFER//?/*}${BUFFER:$CURSOR:1}${${RBUFFER#?}//?/*}; fi
@dardo82
dardo82 / fixterms-uk.map
Last active July 15, 2025 04:48
fixterms keymap
#
# hypermap.map 1994/11/11
# Michael Shields <shields@tembel.org>
#
# A keymap redesigned for sanity.
#
#
# This keymap is a ground-up reimplementation of the keyboard map,
# intended to be consistent and rational. It uses an m4 metalanguage to
@dardo82
dardo82 / fstab
Last active July 4, 2025 20:47
FSTAB
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=3463baed-f571-41bc-a11b-d0871ea82a20 / btrfs defaults,noatime,compress=zstd,subvol=/@ 0 0
UUID=3463baed-f571-41bc-a11b-d0871ea82a20 /home btrfs defaults,noatime,compress=zstd,subvol=/@home 0 0
UUID=3463baed-f571-41bc-a11b-d0871ea82a20 /root btrfs defaults,noatime,compress=zstd,subvol=/@root 0 0
@dardo82
dardo82 / SOAP.txt
Created June 6, 2025 18:24
Stack Overflow Alternative Paid
Stack Overflow Alternative Paid
There is no easy way to make real money by
answering technical questions online, but it
would be a good gig; StackOverflow doesn't
work like I think would be better sometimes.
If asking costed a bit you would filter out
malformed, lazy or duplicate questions...
That same money would attract nerd with
@dardo82
dardo82 / motd
Last active May 11, 2025 05:52
MOTD
2025
January February March
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 4 1 1
5 6 7 8 9 10 11 2 3 4 5 6 7 8 2 3 4 5 6 7 8
12 13 14 15 16 17 18 9 10 11 12 13 14 15 9 10 11 12 13 14 15
19 20 21 22 23 24 25 16 17 18 19 20 21 22 16 17 18 19 20 21 22
26 27 28 29 30 31 23 24 25 26 27 28 23 24 25 26 27 28 29
30 31
#!/usr/bin/env zsh
echo -n 'Last boot: '; uptime -s
@dardo82
dardo82 / mail.sh
Created May 10, 2025 15:03
mailcheck
#!/usr/bin/env zsh
mailcheck -s; echo
@dardo82
dardo82 / login
Created May 10, 2025 14:57
PAMD login
#%PAM-1.0
auth requisite pam_nologin.so
auth include system-local-login
account include system-local-login
password include system-local-login
session include system-local-login
session optional pam_lastlog2.so silent_if=gdm,gdm-password