This file contains 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
#!/bin/bash | |
# tested 5.11.0-16-generic #17-Ubuntu SMP Wed Apr 14 20:12:43 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux | |
# installing dkms and git | |
sudo apt update | |
sudo apt install -y dkms git | |
# cloning driver repository | |
mkdir ~/src | |
cd ~/src |
This file contains 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 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 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 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 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 |
This file contains 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
wget https://github.com/shiftkey/desktop/releases/download/release-2.7.2-linux1/GitHubDesktop-linux-2.7.2-linux1.deb | |
sudo gdebi GitHubDesktop-linux-2.7.2-linux1.deb | |
wget -qO - https://packagecloud.io/shiftkey/desktop/gpgkey | sudo tee /etc/apt/trusted.gpg.d/shiftkey-desktop.asc > /dev/null | |
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/shiftkey/desktop/any/ any main" > /etc/apt/sources.list.d/packagecloud-shiftky-desktop.list' | |
sudo apt update | |
sudo apt install github-desktop |
This file contains 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
# Vacuum journals | |
sudo journalctl --vacuum-size=500M && sudo journalctl --vacuum-time=7d | |
# Remove all uninstalled packages | |
sudo paccache -rvuk0 | |
# Remove old installed packages, leave 3 | |
sudo paccache -rvk3 | |
# Clean yay cache |
This file contains 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
npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm |
This file contains 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
# frozen_string_literal: true | |
# Move | |
puts "Is the move the same type as the Pokemon? (0 - yes, 1 - no) " | |
same_type = gets.chomp.to_i | |
puts "What's the move type? (0 - attack, 1 - special attack) " | |
f = gets.chomp.to_i # 0 - attack / 1 - special attack | |
puts "What's the move attack power? (0-200) " | |
c = gets.chomp.to_i # move attack power |
NewerOlder