This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set OPENSSL_CONF=C:\path\to\openssl.cnf | |
| set PATH=C:\path\to\openssl\;%PATH% | |
| :: new key and CSR | |
| openssl req -newkey rsa:4096 -sha256 -keyout PRIVATEKEY.key -out CSR.csr | |
| openssl req -newkey rsa:4096 -sha256 -keyout PRIVATEKEY.key -out CSR.csr -subj "/C=CZ/L=City/O=Company/OU=My Department/CN=%NAME%" | |
| :: new CSR from existing key | |
| openssl req -new -sha256 -key key.key -out csr.csr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *************** OpenSC PKCS#11 spy ***************** | |
| Loaded: "C:\Windows\System32\p11rss.dll" | |
| 0: C_GetInterface | |
| P:13588; T:13672 2023-08-09 17:09:28.806 | |
| [compat] | |
| [in] pInterfaceName 00007ff7e75e60d8 / 7 | |
| 00000000 50 4B 43 53 20 31 31 PKCS 11 | |
| [in] pVersion = NULL | |
| [in] flags = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *************** OpenSC PKCS#11 spy ***************** | |
| Loaded: "C:\Windows\System32\p11rss.dll" | |
| 0: C_GetInterface | |
| 2023-08-02 17:14:07.533 | |
| [compat] | |
| [in] pInterfaceName 00007ff6a11960e0 / 7 | |
| 00000000 50 4B 43 53 20 31 31 PKCS 11 | |
| [in] pVersion = NULL | |
| [in] flags = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *************** OpenSC PKCS#11 spy ***************** | |
| Loaded: "C:\Windows\System32\p11rss.dll" | |
| 0: C_GetInterface | |
| 2023-07-07 15:22:47.066 | |
| [compat] | |
| [in] pInterfaceName 00007ff6601560e0 / 7 | |
| 00000000 50 4B 43 53 20 31 31 PKCS 11 | |
| [in] pVersion = NULL | |
| [in] flags = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # extract sub-repository from a git repository | |
| pip3 install git-filter-repo | |
| git clone https://github.com/ACCOUNT/OLD_REPO.git | |
| mv MY_GIT_DIR\ACCOUNT\OLD_REPO MY_GIT_DIR\ACCOUNT\NEW_REPO | |
| cd MY_GIT_DIR\ACCOUNT\NEW_REPO | |
| git filter-repo --force --path PATH_TO_KEEP --path "ANOTHER PATH TO KEEP" --path PATH/TO/BE/KEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ rwlock.py | |
| A class to implement read-write locks on top of the standard threading | |
| library. | |
| This is implemented with two mutexes (threading.Lock instances) as per this | |
| wikipedia pseudocode: | |
| https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_two_mutexes |