This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To completely remove **Lens** (Kubernetes IDE) from **Manjaro**, follow these steps: | |
1. **Uninstall Lens:** | |
If you installed Lens via a package manager like `yay` or `pamac`, you can remove it using the following commands: | |
- For `pamac`: | |
```bash | |
sudo pamac remove lens-bin | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
code() { | |
/usr/bin/code $1 --disable-accelerated-video-decode --disable-gpu | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ~/.cache/pypoetry -name '*.lock' -type f -delete | |
poetry env remove --all | |
poetry cache clear --all . | |
rm -rf $(poetry config cache-dir)/artifacts | |
poetry config keyring.enabled false | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod 400 /path_to_key/key.pem | |
ssh-keygen -y -f /path_to_key/key.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ufw default deny outgoing | |
sudo ufw allow out to any port 80 # http | |
sudo ufw allow out to any port 443 # https | |
sudo ufw allow out to any port 53 # dns | |
sudo ufw reload | |
sudo ufw status verbose | |
sudo ufw allow out to 20.201.28.151 port 22 proto tcp comment 'Allow SSH' # github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* */6 * * * rm -rf /var/log/clamav/freshclam.log && freshclam >/dev/null 2>&1 | |
* */6 * * * clamscan -r -i / | grep FOUND >> /home/danilogco/virus-scan-reports/virus-scan-report-`date +"%d-%m-%Y"`.txt >/dev/null 2>&1 | |
# create the folder virus-scan-reports in your home |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nordvpn set technology openvpn | |
nordvpn set protocol tcp | |
nordvpn set threatprotectionlite on | |
nordvpn set killswitch on | |
nordvpn set lan-discovery enable | |
nordvpn set dns off | |
nordvpn connect us10460 | |
nordvpn set autoconnect on us10460 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# /etc/profile.d/motd.sh | |
# Basic info | |
HOSTNAME=`uname -n` | |
ROOT=`df -Ph | grep xvda1 | awk '{print $4}' | tr -d '\n'` | |
OS=`cat /etc/manjaro-release` | |
OS_VERSION=`lsb_release -r` | |
KERNEL=`uname -r` | |
UPTIME=`uptime` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ufw allow from 192.168.0.201 to any port 22 | |
ufw allow from 192.168.0.201 to any port 22 proto tcp |