Download the latest release:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"Unzip the file:
unzip awscliv2.zipInstall the cli with sudo:
| https://www.videolan.org/vlc/download-skins2-go.php?url=eDark%20Vlc.vlt |
| 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, |
| // ~/.config/discord/settings.json | |
| { | |
| "SKIP_HOST_UPDATE": true | |
| } |
| # 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" |
| Statement: | |
| - Effect: "Allow" | |
| Action: | |
| - "cloudformation:CreateChangeSet" | |
| - "cloudformation:DescribeStackEvents" | |
| - "cloudformation:DescribeStacks" | |
| - "cloudformation:DescribeChangeSet" | |
| - "cloudformation:ExecuteChangeSet" | |
| - "cloudformation:GetTemplate" | |
| - "cloudformation:GetTemplateSummary" |
| #!/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 |
| #!/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 |
| 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 |
Download the latest release:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"Unzip the file:
unzip awscliv2.zipInstall the cli with sudo:
| gem update --system --no-document | |
| gem uninstall -aIx | |
| gem install bundler |