I hereby claim:
- I am smallzhong on github.
- I am smallzhong (https://keybase.io/smallzhong) on keybase.
- I have a public key ASAOkBjK71ls20wsJc_qyGn8i20jy7ZPJqppPwKmXv1CgAo
To claim this, I am signing this object:
| from requests.adapters import HTTPAdapter, Retry | |
| from requests import Session | |
| retries = Retry( | |
| total=5, backoff_factor=1, status_forcelist=[502, 503, 504] | |
| ) | |
| session = Session() # reuse tcp connection | |
| session.mount("http://", HTTPAdapter(max_retries=retries)) | |
| session.mount("https://", HTTPAdapter(max_retries=retries)) |
| //this requires being able to run at kernel mode and assumes you're using MSVC | |
| //this also uses an unnamed structure for cr0_t, which is a nonstandard extension of the C language | |
| //data structure for cr0 | |
| typedef union _cr0_t | |
| { | |
| struct | |
| { | |
| uint64_t protection_enable : 1; |
I hereby claim:
To claim this, I am signing this object: