Skip to content

Instantly share code, notes, and snippets.

View Pierre-Sassoulas's full-sized avatar

Pierre Sassoulas Pierre-Sassoulas

  • 04:40 (UTC +02:00)
View GitHub Profile
@Pierre-Sassoulas
Pierre-Sassoulas / install.sh
Last active June 29, 2023 14:26
Git alias and template message
sudo apt-get update;sudo apt-get dist-upgrade -y;sudo apt-get -y autoremove;sudo apt-get -y autoclean
sudo apt-get install -y git zsh python3-venv gcc make perl
git config --global core.editor "nano"
git config --global advice.skippedCherryPicks false
git config --global --add --bool push.autoSetupRemote true
git config --global help.autocorrect 1
git config --global pull.rebase true
git config --global fetch.prune true
git config --global diff.algorithm histogram
git config --global alias.sw switch
find . | sort | sed 's@[^/]*/@ @g'
@Pierre-Sassoulas
Pierre-Sassoulas / args_kwargs_example.py
Last active November 7, 2021 13:31
Python args/kwargs example
def example(*args, **kwargs):
print("Args:", args, "Kwargs:", kwargs)
args = [1, 2]
kwargs = {"pos_x": 1, "pos_y": 2}
print("Standard call")
example(1, 2)
print("Keyword call")
example(pos_x=1, pos_y=2)
print("Args call")
@Pierre-Sassoulas
Pierre-Sassoulas / get_current_pylint_list_of_messages.sh
Last active February 4, 2021 13:38
Get existing pylint messages to disable them all.sh
pylint .|grep -o "([a-z\-]*)$"|cut -d "(" -f2|sort|uniq|sed s/\)/,/
sudo apt-get update;sudo apt-get dist-upgrade -y;sudo apt-get -y autoremove;sudo apt-get -y autoclean