Skip to content

Instantly share code, notes, and snippets.

View viniciusov's full-sized avatar

Vinícius Orsi Valente viniciusov

View GitHub Profile
@viniciusov
viniciusov / pyinstaller_export
Last active June 12, 2020 21:10
How to export a python script to a single .EXE file
# You should run this script on Windows to create a .exe file
# If not installed: pip install pyinstaller
pyinstaller -F python_file.py --distpath exe/ --workpath exe/build/ --specpath exe/spec/ && rmdir /s __pycache__
@viniciusov
viniciusov / .bashrc
Created September 30, 2018 01:45
Get a fancy Welcome Message when opening the Linux Terminal
#-- Append this code to ~/.bashrc --
welcome1='Welcome back '$USER'!'
welcome2='How can I help you now?'
for n in 1 2; do
var="welcome${n}"
text=${!var}
for (( i=0; i<${#text}; i++ )); do
echo -n "${text:$i:1}"