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 | |
# Detecta gerenciador de pacotes | |
if command -v dnf &>/dev/null; then | |
PM="dnf" | |
elif command -v apt &>/dev/null; then | |
PM="apt" | |
else |
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
# Utils | |
alias upd='sudo apt update && sudo apt full-upgrade -y && flatpak upgrade -y' | |
alias cleanup='sudo apt autoremove -y && sudo apt autoclean -y && flatpak uninstall --unused -y' | |
alias please='sudo $(fc -ln -1)' | |
alias ip='ip -c a' | |
alias ports='sudo lsof -i -P -n | grep LISTEN' | |
# Zsh config helpers | |
alias zshconfig="nano ~/.zshrc" | |
alias zshaliases="nano ~/.zsh_aliases" |
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
# pip install pyinstaller | |
# pyinstaller --onefile update.py | |
# sudo mv dist/update /usr/local/bin/poetry-update | |
# chmod +x /usr/local/bin/poetry-update | |
import tomlkit | |
import requests | |
from pathlib import Path | |
import subprocess |
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 | |
sudo apt update | |
sudo apt install opensnitch | |
RULE_PATH="/etc/opensnitchd/rules" | |
sudo mkdir -p "$RULE_PATH" | |
sudo tee "$RULE_PATH/000-allow-system-cmds.json" > /dev/null <<'EOF' |
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
wget https://download.bluemail.me/BlueMail/deb/BlueMail.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gconf/gconf2-common_3.2.6-6ubuntu1_all.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gconf/libgconf-2-4_3.2.6-6ubuntu1_amd64.deb | |
sudo dpkg -i gconf2-common_3.2.6-6ubuntu1_all.deb | |
sudo dpkg -i libgconf-2-4_3.2.6-6ubuntu1_amd64.deb | |
sudo dpkg -i BlueMail.deb | |
# add --no-sandbox in the end of the launcher command |
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 nano /etc/NetworkManager/conf.d/10-ignore-docker.conf | |
# add it inside the file | |
# [keyfile] | |
# unmanaged-devices=interface-name:br-*;interface-name:veth*;interface-name:docker*;interface-name:lo | |
docker network prune |
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 cp /usr/share/X11/xkb/symbols/us /usr/share/X11/xkb/symbols/us_shiftaccents | |
sudo nano /usr/share/X11/xkb/symbols/us_shiftaccents | |
# No arquivo, adicione uma nova variante que herde do us(intl): | |
partial alphanumeric_keys | |
xkb_symbols "shift_accents" { | |
include "us(intl)" | |
// Acentos com Shift | |
key <AC01> { [ a, A, aacute, Aacute ] }; // A |
OlderNewer