Skip to content

Instantly share code, notes, and snippets.

View danilogco's full-sized avatar

Danilo Carolino danilogco

  • QFlash
  • Rio Claro-SP, Brasil
  • 18:33 (UTC -03:00)
View GitHub Profile
@danilogco
danilogco / awscli-manjaro-install.md
Created November 14, 2024 14:22
Installing AWS CLI v2 - Manjaro

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
@danilogco
danilogco / poetry-upgrade.py
Last active September 24, 2024 20:14
Script to update and organize all poetry dependencies at once
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}")
@danilogco
danilogco / disable_msoverlay.bat
Created September 23, 2024 05:46
Properly uninstalling xbox gamebar and resolve ms-gaming-overlay-link popup on windows 11
# 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/
@danilogco
danilogco / reconnect.sh
Created September 18, 2024 21:54
Manjaro Lan Reconnect
# Profile 1 is the name of my connection
alias lan_reconnect="nmcli connection up id 'Profile 1'"
@danilogco
danilogco / gist:760503dbd6c3fd5c47fde16bcd88575d
Created September 12, 2024 01:44
Uninstall completely Lens K8s - Manjaro
To completely remove **Lens** (Kubernetes IDE) from **Manjaro**, follow these steps:
1. **Uninstall Lens:**
If you installed Lens via a package manager like `yay` or `pamac`, you can remove it using the following commands:
- For `pamac`:
```bash
sudo pamac remove lens-bin
```
@danilogco
danilogco / gist:eb2161c16a56c08c8cc38be8a1d5db88
Last active September 10, 2024 00:04
Linux vscode fix start via terminal
code() {
/usr/bin/code $1 --disable-accelerated-video-decode --disable-gpu
}
find ~/.cache/pypoetry -name '*.lock' -type f -delete
poetry env remove --all
poetry cache clear --all .
rm -rf $(poetry config cache-dir)/artifacts
poetry config keyring.enabled false
@danilogco
danilogco / gist:012baa66c06f5b3707fab723cbb869bc
Created August 27, 2024 23:46
add new pems to ec2 instance
chmod 400 /path_to_key/key.pem
ssh-keygen -y -f /path_to_key/key.pem
@danilogco
danilogco / test-doc-see-as-virus-by-clamav.txt
Created June 14, 2024 15:28 — forked from mikecastrodemaria/test-doc-see-as-virus-by-clamav.txt
A simple text file to be used as positive test for ClamAv virus scanner
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*