$ go run ./main.go
- 0x0005: TLS_RSA_WITH_RC4_128_SHA (failure)
- 0x000a: TLS_RSA_WITH_3DES_EDE_CBC_SHA (failure)
- 0x002f: TLS_RSA_WITH_AES_128_CBC_SHA (success)
- 0x0035: TLS_RSA_WITH_AES_256_CBC_SHA (success)
- 0x003c: TLS_RSA_WITH_AES_128_CBC_SHA256 (success)
- 0x009c: TLS_RSA_WITH_AES_128_GCM_SHA256 (success)
This file contains 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
import time | |
import random | |
import requests | |
import sys | |
import getpass | |
import random | |
# signature generation | |
def signp(a, i, s, w, u, l, b, k, c, n, r, e, t): | |
d = '-'.join([str(mInt) for mInt in [a, i, s, w, u, l, b, k]]) |
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
This file contains 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
#!/usr/bin/env python3 | |
import concurrent.futures.thread | |
import sys | |
import time | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
def remove_file(path): | |
print('Removing file %s' % path) |