arutonee1
arutonee1
My first instinct is a `(sudo|doas)?\s+rm\s+((-[frR]+|--force|--recursive|--no-preserve-root)\s+)+(/[a-zA-Z\.]*|~|/var/log)(\s|$)` with the `i` flag. You can of course replace any instance of `/` with `[/...]` where `...` are variants of `/`, and similarly for...
I genuinely think just filtering out `/`, common `/...` dirs, and `~` only is reasonable, and letting everything fall back to manual modding. Any more than that will have too...
Not sure if this is mentioned in one of those links, but you can use `python3 -m cProfile main.py` to profile a given file, or use the `@profile` decorator from...
Also, here's a really simple (untested) decorator that logs the runtime of a function after it's run. With a few project-specific modifications it may be useful ```py import time def...
I think in general, more structure is better.* I personally find it easier to find things in a project when I don't have to guess as to where it is,...