Cerca qui le cose strambe

2026-11-19

Terrible GUI at M$

You can really say that at microsoft they are really good in bad GUI decision
For example today I wasted 15 minutes to create 2 mappings (for "volume up"/"volume down")
that are theoretically explained in the website page 



and this because they though that it was a good idea to ask you to click on an area instead of a button to start recording the key combinations ("chords")

i.e.:
  in the image below you have to click on the rectangle (but not on the button)
to have it activated with the azure contour that signal that you can to start recording the "chord"





2026-03-26

If you really need to use windows... install gsudo

 Seriously guys... nowadays you have no reason to use windows... but if you are forced... then install gsudo on first login and thank me later

2025-04-24

grep di stdin tenendo l'header

 

A volte puo` essere utile un grep di stdin tenendo l'header

Si definisce in bash (nel .bashrc o simile) una funzione cortissima tipo cosi` =>


hgrep () { read line; echo "$line"; grep $* ; }


ci sono rari casi in cui puo` essere  leggermente pericolosa, ma nel complesso pare accettabile


esempio d'uso:



# lsof   | hgrep  tripwire
COMMAND       PID     TID TASKCMD              USER   FD      TYPE             DEVICE    SIZE/OFF       NODE NAME
tripwire  2285668                              root  cwd       DIR              253,0       36864     524292 /root
tripwire  2285668                              root  rtd       DIR              253,0        4096          2 /
tripwire  2285668                              root  txt       REG              253,0     3140528        594 /usr/sbin/tripwire
tripwire  2285668                              root    4u      REG              253,3    51822592         36 /tmp/twtempUYqaRJ (deleted)
#
# ps aux | hgrep /usr/sbin/tripwire
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     2285668 96.1  1.4 484084 467676 ?       R    14:45  16:33 /usr/sbin/tripwire
#