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 / mk-km-ft-uk.sh
Created June 19, 2025 04:23
fixterms keymap
!#/bin/bash
# MaKe KeyMap FixTerms United Kingdom
m4 /usr/share/kbd/keymaps/i386/qwerty/hypermap.m4 | awk -v FS='[_ ]' 'BEGIN{for(n=0;n<128;n++)a[sprintf("%c",n)]=n}{if($0~/^shift\t.+ Control_.$/){print $1" "$2" = F"a[$5]} else{print $0}}' > keymap
{echo "\n# Shift-Control Function-Keys String-Definitions."; for c in {a..z}; do printf 'string F%d = "\\033[%d;6u"\n' "'$c" "'$c"; done} >> keymap
{echo "\n# UK layout definitions."; zgrep = /usr/share/kbd/keymaps/i386/qwerty/uk.map.gz} >> keymap
awk -v FS='[ "^]+' 'BEGIN{for(n=0;n<128;n++)a[sprintf("%c",n)]=n}{if($0~/"\^[A-Z]"/){print $1"\t\"^[["a[$2]+2**5";6u\"\t"$3}else{print $0}}' .bashrc > bashrc
@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
#!/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
@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
@dardo82
dardo82 / issue
Last active April 28, 2025 14:04
ISSUE
\S{NAME} (\d) [\t] {\l}

__,,,,,,,_
_╓╗╣╫╠╠╠╠╠╠╠╠╠╠╠╠╠╕╗╗┐_
β•₯β•’β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β•₯,
β•—β• β• β• β• β• β• β• β•β•œβ•œβ•œβ•œβ•β•’β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β”
β•£β• β• β• β• β• β• β• β• β•’β•£β•’β•—β•• , `"β•˜β• β• β• β• β• β• β• β• β• β• β• β• β• β• β•”β•₯_
β•’β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β••β•™β•₯β•₯β•œ `"β•œβ• β•¬β• β• β• β• β• β• β• β• β• β• β• β•₯,
β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β• β•—β•₯β•₯β•₯β•₯╗╗╬╠╠╠╠╠╠╠╝╙╠╠╣╠╠╠╠╒┐
@dardo82
dardo82 / northernsky.vim
Last active May 9, 2025 18:40
VIM colorscheme
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name="northernsky"
hi Normal ctermfg=7 ctermbg=0
hi Search ctermfg=3 ctermbg=4 cterm=NONE
@dardo82
dardo82 / links.cfg
Created March 23, 2025 22:52
LINKS conf
@dardo82
dardo82 / config
Created March 23, 2025 06:01
W3M conf
tabstop 8
indent_incr 4
pixel_per_char 12
pixel_per_line 24
frame 0
target_self 0
open_tab_blank 0
open_tab_dl_list 0
display_link 0
display_link_number 0