pip install -U --upgrade-strategy eager <package>Use with caution
https://pip.pypa.io/en/stable/user_guide/#only-if-needed-recursive-upgrade
pip install -U --upgrade-strategy eager <package>Use with caution
https://pip.pypa.io/en/stable/user_guide/#only-if-needed-recursive-upgrade
| <!--TUI grid vue--> | |
| <script src="https://cdn.jsdelivr.net/npm/tui-grid@4.9.0/dist/tui-grid.min.js" integrity="sha256-dnG2gatS89cYrQQsKOZ7pAAX8iz82SfOLW82Cm7/Q3A=" crossorigin="anonymous"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@toast-ui/vue-grid@4.9.0/dist/toastui-vue-grid.min.js"></script> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tui-grid@4.9.0/dist/tui-grid.min.css"></script> |
| Windows Registry Editor Version 5.00 | |
| ; mitigates https://anothercybersecurityblog.wordpress.com/2020/01/22/a-microsoft-windows-patch-status-information-disclosure-with-a-lesson-for-software-and-system-designers-if-they-want-to-actually-build-secure-products/ | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\AutoUpdate] | |
| "UpdatesAvailableForInstallLogon"=dword:00000000 |
| // ==UserScript== | |
| // @name Twitter sensitive media blocker | |
| // @version 1 | |
| // @grant none | |
| // @match https://twitter.com/* | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| function blockTwitterSensitiveMedia() { | |
| var blockedMedia = document.getElementsByClassName("Tombstone-action"); |
| import "strings" | |
| // return index of second to last occurrence of char in string | |
| func SecondToLast(str string, char string) int { | |
| return strings.LastIndex(str[0:strings.LastIndex(str, char)], char) | |
| } |
| # https://github.com/readthedocs/readthedocs.org/issues/2940 | |
| [parsers] | |
| smart_quotes: false |
| # install / setup docker from mainline stable repo | |
| # https://www.hostinger.com/tutorials/how-to-install-docker-compose-centos-7/ | |
| DOCKER_COMPOSE_VER=1.25.0 | |
| sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
| sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
| sudo yum install docker-ce | |
| sudo usermod -a -G docker $USER | |
| sudo systemctl start docker |
| # reduces yara.Match object to dict | |
| # work around yara.Match pickling issue with multiprocessing | |
| # https://github.com/VirusTotal/yara-python/issues/84#issuecomment-562228512 | |
| # yara.Match also does not work with __dict__ or json, or else I would use that | |
| def yaraMatchesToDict(yara_matches): | |
| match_list = [] | |
| for item in yara_matches: | |
| # reproduce structure in https://yara.readthedocs.io/en/latest/yarapython.html#yara.Match | |
| # using accessible python dict data structure |
| " https://vi.stackexchange.com/questions/7975/how-can-i-change-the-indent-size | |
| set ts=4 sw=4 |