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
# Colors | |
ERROR="\e[31m" | |
OK="\e[32m" | |
WARN="\e[33m" | |
INFO="\e[34m" | |
ENDCOLOR="\e[0m" | |
# Pip | |
echo -e "${INFO}Installing Python pip...${ENDCOLOR}" | |
sudo pacman -S python-pip |
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
from os import listdir | |
from os.path import isfile, join | |
from json import loads | |
from pprint import pprint | |
import subprocess | |
filepath = '.' | |
files = [f for f in listdir(filepath) if isfile(join(filepath, f))] |
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
# https://stackoverflow.com/q/42828021 | |
# type file | |
find . -type f -name '*.txt' | xargs rm | |
# type directory | |
find . -type d -name '__pycache__' | xargs rm -r |
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
########################################################################################## | |
################################## User Settings ##################################### | |
########################################################################################## | |
# Alias for ProtonVPN | |
# alias pvpn=protonvpn | |
alias python=python3 | |
alias pip=pip3 | |
alias venv="virtualenv env" |