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
| #!/bin/bash | |
| # Install lsfg-vk on Linux systems with an alternative version of Lossless Scaling, without the need to purchase it. | |
| # Supports every Linux x86_64 machine | |
| DOWNLOAD_URL="https://github.com/PancakeTAS/lsfg-vk/releases/download/v1.0.0/lsfg-vk-1.0.0.x86_64.tar.zst" | |
| TEMP_FILE="/tmp/lsfg_install.tar.zst" | |
| INSTALL_DIR="/" | |
| # Install LSFG-VK Release |
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
| #!/bin/bash | |
| # This script optimizes Steam's background shader compilation by automatically configuring the steam_dev.cfg file | |
| # to use your total CPU threads minus four, a calculation designed to maximize processing speed while reserving | |
| # enough resources to prevent system freezes. It functions idempotently, meaning it first checks if the configuration | |
| # file exists (creating it if necessary) and then uses sed to either update the existing unShaderBackgroundProcessingThreads | |
| # line or append it if missing. | |
| CONFIG_FILE="$HOME/.local/share/Steam/steam_dev.cfg" | |
| TOTAL_THREADS=$(nproc) | |
| TARGET_THREADS=$((TOTAL_THREADS - 4)) |
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
| cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
| chmod +x ~/.dropbox-dist/dropboxd | |
| # Autostart Setup | |
| cat > ~/.config/autostart/dropbox-manual.desktop <<EOF | |
| [Desktop Entry] | |
| Type=Application | |
| Name=Dropbox Daemon | |
| Comment=Manual Autostart for ~/.dropbox-dist/dropboxd | |
| Exec=$HOME/.dropbox-dist/dropboxd |
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
| #!/bin/bash | |
| # estes pacotes são vitais pra interface funcionar | |
| sudo apt update -y | |
| sudo apt install -y libopengl0 wget libxkbcommon-x11-0 libxcb-shape0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 | |
| wget https://gpt4all.io/installers/gpt4all-installer-linux.run | |
| chmod +x ./gpt4all-installer-linux.run | |
| ./gpt4all-installer-linux.run |
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
| ``` | |
| ssh-keygen -t rsa | |
| type $env:USERPROFILE\.ssh\id_rsa.pub | ssh usuario@IPADDRESS "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" | |
| ``` | |
| Permissões dentro da VM | |
| ```bash | |
| chmod 700 ~/.ssh | |
| chmod 600 ~/.ssh/authorized_keys | |
| ``` |
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 apt-mark hold "grub-*" "grub2*" "linux-generic*" "linux-headers-generic*" "linux-image-generic*" "linux-signed-generic*" "linux-signed-image-generic*" linux-firmware intel-microcode amd64-microcode |
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 apt update -y && sudo apt remove --purge -y *thunderbird* libreoffice* celluloid sticky *calendar* cmatrix hypnotix rhythmbox *yaru* *papirus* && sudo apt autopurge -y |
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
| #!/bin/bash | |
| now=`date +"%Y-%m-%d"` | |
| directory=~/Documents//Overleaf/backup | |
| outputTmpDirectory=$directory/tmp.zip | |
| outputDirectory=$directory/$backup.zip | |
| # To get the cookie | |
| cookie=`python - << EOF | |
| import re | |
| # pip install mechanize |
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
| #!/bin/bash | |
| set -e | |
| current=$(uname -r) | |
| echo "Current kernel: $current" | |
| kernels=$(dpkg --list | grep linux-image-[0-9] | awk '{print $2}') | |
| to_remove=$(echo "$kernels" | grep -v "$current") | |
| if [ -z "$to_remove" ]; then |
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
| #!/bin/bash | |
| set -e | |
| # Install required packages | |
| sudo apt update | |
| sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager | |
| # Add current user to libvirt and kvm groups | |
| sudo adduser "$USER" libvirt | |
| sudo adduser "$USER" kvm |
NewerOlder