For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 | |
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR | |
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH | |
Home/Core N 3KHY7-WNT83-DGQKR-F7HPR-844BM | |
Professional W269N-WFGWX-YVC9B-4J6C9-T83GX | |
Professional N MH37W-N47XK-V7XM9-C7227-GCQG9 | |
Professional Enterprise | |
Professional Workstation | |
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43 | |
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 |
I hereby claim:
To claim this, I am signing this object:
Sometimes a python script will simply hang forever with no indication of where things went wrong. Perhaps it's polling a service that will never return a value that allows the program to move forward. Here's a way to see where the program is currently stuck.
Install gdb.
# Redhat, CentOS, etc
from sseclient import SSEClient | |
import requests | |
from queue import Queue | |
import json | |
import threading | |
import socket | |
class ClosableSSEClient(SSEClient): |
BUCKET = 'your-bucket-here' # protocol prefix like s3://your-bucket-here is not required | |
import boto3 | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket(BUCKET) | |
bucket.object_versions.delete() | |
# if you want to delete the now-empty bucket as well, uncomment this line: | |
#bucket.delete() |
// ==UserScript== | |
// @name Make JSON Pretty | |
// @version 0.1 | |
// @description Make JSON look nice | |
// @include *.json | |
// @grant none | |
// ==/UserScript== | |
function prettySource(obj) { | |
var maxDepth = 250, |
vault mount pki | |
vault mount -path=pki1 pki | |
vault mount -path=pki2 pki | |
vault mount -path=pki3 pki | |
vault mount-tune -max-lease-ttl=87600h pki | |
vault mount-tune -max-lease-ttl=87600h pki1 | |
vault mount-tune -max-lease-ttl=87600h pki2 | |
vault mount-tune -max-lease-ttl=87600h pki3 | |
vault write pki/root/generate/internal common_name="Vault Testing Root Authority" ttl=87600h |
[ | |
{ "_id" : "01001", "city" : "AGAWAM", "loc" : [ -72.622739, 42.070206 ], "pop" : 15338, "state" : "MA" }, | |
{ "_id" : "01002", "city" : "CUSHMAN", "loc" : [ -72.51564999999999, 42.377017 ], "pop" : 36963, "state" : "MA" }, | |
{ "_id" : "01005", "city" : "BARRE", "loc" : [ -72.10835400000001, 42.409698 ], "pop" : 4546, "state" : "MA" }, | |
{ "_id" : "01007", "city" : "BELCHERTOWN", "loc" : [ -72.41095300000001, 42.275103 ], "pop" : 10579, "state" : "MA" }, | |
{ "_id" : "01008", "city" : "BLANDFORD", "loc" : [ -72.936114, 42.182949 ], "pop" : 1240, "state" : "MA" }, | |
{ "_id" : "01010", "city" : "BRIMFIELD", "loc" : [ -72.188455, 42.116543 ], "pop" : 3706, "state" : "MA" }, | |
{ "_id" : "01011", "city" : "CHESTER", "loc" : [ -72.988761, 42.279421 ], "pop" : 1688, "state" : "MA" }, | |
{ "_id" : "01012", "city" : "CHESTERFIELD", "loc" : [ -72.833309, 42.38167 ], "pop" : 177, "state" : "MA" }, | |
{ "_id" : "01013", "city" : "CHICOPEE", "loc" : [ -72.607962, 42.162046 ], "pop" : 23396, "state" : "MA" }, |