Skip to content

Instantly share code, notes, and snippets.

View bodypheo's full-sized avatar
🎯
Focusing

Juan M. Jiménez bodypheo

🎯
Focusing
View GitHub Profile
@bodypheo
bodypheo / fail2ban-allstatus.sh
Created May 20, 2020 07:30 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
@bodypheo
bodypheo / gist:74b51f8d89d7c4ac44201be4ecae8445
Created April 2, 2020 12:06
Generate a list of manually installed packages in Debian derivates
comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
  • sudo vim /home/vinnyfs89/.local/share/applications/telegramdesktop.desktop

You will see something like this:

[Desktop Entry]                                                                                                                                                         
 Version=1.0                                                                                                                                                             
 Name=Telegram Desktop                                                                                                                                                   
 Comment=Official desktop application for the Telegram messaging service                                                                                                 
 TryExec=/opt/telegram/telegram