This file contains 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 ast | |
# Replace the old package name with the new package name | |
def replace_imports(node, old_name, new_name): | |
if isinstance(node, ast.ImportFrom): | |
if node.module == old_name: | |
node.module = new_name | |
for alias in node.names: | |
if alias.name == old_name: | |
alias.name = new_name |
This file contains 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
#!/usr/bin/env python | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
class Entidade: | |
@property | |
def id(self): | |
return id(self) |
This file contains 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
[Desktop Entry] | |
Type=Application | |
Exec=/usr/bin/conky -d -c ~/.conkyrc | |
X-GNOME-Autostart-enabled=true | |
NoDisplay=false | |
Hidden=false | |
Name[en_US]=conky | |
Comment[en_US]=Conky System Monitor Autostart | |
X-GNOME-Autostart-Phase=Application | |
X-GNOME-Autostart-Delay=0 |
This file contains 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
[flake8] | |
## VERBOSITY ## | |
verbose = 1 | |
quiet = 0 | |
## PARALLEL ## | |
jobs = auto | |
## FORMAT ## | |
show-source = True |
This file contains 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 | |
sudo apt-get update | |
# kernel | |
sudo apt-get install -y linux-lowlatency linux-tools-lowlatency grub-customizer | |
# extra packages management | |
sudo rm -rf /etc/apt/preferences.d/nosnap.pref | |
sudo apt-get install -y snapd snapcraft |
This file contains 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
function __fish_poetry_b6c543db761696cb_complete_no_subcommand | |
for i in (commandline -opc) | |
if contains -- $i about add build cache check config debug env export help init install lock new publish remove run search self shell show update version | |
return 1 | |
end | |
end | |
return 0 | |
end | |
# global options |
This file contains 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 | |
# gave permissions to user | |
sudo usermod -a -G audio "${USER}" | |
# add audio repositories | |
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_10.0.3_all.deb | |
# low latency kernel | |
sudo apt-get install -y linux-lowlatency |
This file contains 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
xhost +local:docker && docker run --rm -it -e DISPLAY=$DISPLAY -e XAUTHORITY=$XAUTHORITY -v /etc/machine-id:/etc/machine-id:ro -v $HOME/.Xauthority:/root/.Xauthority:ro -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $HOME/teamviewer/config/:/opt/teamviewer/config/ -v $HOME/teamviewer/profile/:/opt/teamviewer/profile/ albertalvarezbruned/teamviewer:12 |
This file contains 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
if set -q VIRTUAL_ENV | |
echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " " | |
end |
This file contains 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
# aliases | |
alias omfrc="$EDITOR $HOME/.local/share/omf/init.fish" | |
alias terminalrc="$EDITOR $HOME/.config/xfce4/terminal/terminalrc" | |
alias esudo="sudo -e $EDITOR" |
NewerOlder