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
import os | |
import requests | |
import tarfile | |
import shutil | |
def download_and_extract_discord(): | |
# URL of the Discord tar.gz file | |
discord_url = "https://discord.com/api/download?platform=linux&format=tar.gz" | |
# Set paths |
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 | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o /tmp/awscliv2.zip | |
unzip /tmp/awscliv2.zip -d /tmp/awscli | |
sudo /tmp/awscli/aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli | |
# to update: | |
# sudo /tmp/awscli/aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update | |
rm -rf /tmp/awscliv2.zip /tmp/awscli |
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 | |
APP_FOLDER=/opt | |
TMP_FOLDER=/tmp | |
rm -rf $APP_FOLDER/dbeaver* | |
wget "https://dbeaver.io/files/dbeaver-ce-latest-linux.gtk.x86_64-nojdk.tar.gz" -P $TMP_FOLDER/ | |
tar -xvzf $TMP_FOLDER/dbeaver-ce-latest-linux.gtk.x86_64-nojdk.tar.gz -C $APP_FOLDER/ | |
rm -rf $TMP_FOLDER/dbeaver-ce-latest-linux.gtk.x86_64-nojdk.tar.gz |
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
Statement: | |
- Effect: "Allow" | |
Action: | |
- "cloudformation:CreateChangeSet" | |
- "cloudformation:DescribeStackEvents" | |
- "cloudformation:DescribeStacks" | |
- "cloudformation:DescribeChangeSet" | |
- "cloudformation:ExecuteChangeSet" | |
- "cloudformation:GetTemplate" | |
- "cloudformation:GetTemplateSummary" |
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
# crontab -e | |
# 0 3 * * * /home/steam/backup.sh | |
# 30 3 * * * /home/steam/clean.sh | |
# 0 4 * * * /sbin/shutdown -r now | |
#!/bin/bash | |
# Caminho para o diretório de saves do Palworld | |
SAVE_DIR="/home/steam/.steam/steam/steamapps/common/PalServer/Pal/Saved" |
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
// ~/.config/discord/settings.json | |
{ | |
"SKIP_HOST_UPDATE": true | |
} |
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
import boto3 | |
aws_access_key_id = "XXXXXXXXXXX" | |
aws_secret_access_key = "XXXXXXXXXXX" | |
aws_session_token = None | |
region_name = "us-east-1" | |
s3_client = boto3.client( | |
"s3", | |
aws_access_key_id=aws_access_key_id, |
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
https://www.videolan.org/vlc/download-skins2-go.php?url=eDark%20Vlc.vlt |
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
# install zsh | |
cd $HOME | |
sudo apt install zsh | |
touch .zshrc | |
chsh -s $(which zsh) | |
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" | |
# install plugins | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
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 | |
NANORC="$HOME/.nanorc" | |
# Reseta o arquivo | |
> "$NANORC" | |
# Inclui a pasta principal (assumindo que sempre existe) | |
echo 'include "/usr/share/nano/*.nanorc"' >> "$NANORC" |