Skip to content

Instantly share code, notes, and snippets.

@waslost0
waslost0 / uninstall_python3.MD
Created July 4, 2021 12:59 — forked from zhensongren/uninstall_python3.MD
How to uninstall python3 from Ubuntu

To list all python versions in default locations

ls /usr/bin/python*

To remove just python3 package

sudo apt-get remove python3.5

plus it's dependent packages

sudo apt-get remove --auto-remove python3.5

plus configuration and/or data files of python3

sudo apt-get purge python3.5

[TOC]

Enigma

Room 1

Check the left key on the keyboard for every character

@waslost0
waslost0 / terminal-cheat-sheet.txt
Created September 26, 2020 18:18 — forked from cferdinandi/terminal-cheat-sheet.txt
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@waslost0
waslost0 / decorators.md
Last active September 19, 2020 14:30
What are Python decorators?

The quick answer

It’s a very long article, so if you are in a rush, here is what decorators do, in a nutshell:

def makebold(fn):
    def wrapped():
        return "<b>" + fn() + "</b>"
    return wrapped