Download the latest release:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
Unzip the file:
unzip awscliv2.zip
Install the cli with sudo:
# 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.zip
Install the cli with sudo:
gem update --system --no-document | |
gem uninstall -aIx | |
gem install bundler |
import requests | |
import tomlkit | |
def get_latest_version(package_name): | |
response = requests.get(f"https://pypi.org/pypi/{package_name}/json") | |
if response.status_code == 200: | |
data = response.json() | |
return data['info']['version'] | |
else: | |
print(f"Failed to fetch latest version for {package_name}") |
# To uninstall it open a powershell as administrator and uninstall it with the following command: | |
Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage | |
reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR /f /t REG_DWORD /v "AppCaptureEnabled" /d 0 | |
reg add HKEY_CURRENT_USER\System\GameConfigStore /f /t REG_DWORD /v "GameDVR_Enabled" /d 0 | |
# This disables the game recorder software which seems to still think that the gaming overlay is still present. | |
# Source: https://www.reddit.com/r/WindowsHelp/comments/108ngxr/properly_uninstalling_xbox_gamebar_and_resolve/ |
# Profile 1 is the name of my connection | |
alias lan_reconnect="nmcli connection up id 'Profile 1'" |