I hereby claim:
- I am sduff on github.
- I am sduff (https://keybase.io/sduff) on keybase.
- I have a public key whose fingerprint is AF46 80FD 273B CEE0 FDEE 56B9 D2A5 9C26 9D71 78FB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import time # need for sleep | |
from xml.dom import minidom | |
import requests | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) | |
base_url = 'https://localhost:8089' | |
username = 'admin' | |
password = 'changeme' |
data.rows.map(function (row) { | |
var _row = {}; | |
for (var f=0; f<data.fields.length; f++) { | |
fn = data.fields[f].name; | |
_row[fn] = row[f]; | |
} | |
return(_row); | |
}); |
Hydrogen | |
Helium | |
Lithium | |
Beryllium | |
Boron | |
Carbon | |
Nitrogen | |
Oxygen | |
Fluorine | |
Neon |
mith | |
jones | |
williams | |
brown | |
wilson | |
taylor | |
johnson | |
white | |
martin | |
anderson |
DROP table a; | |
DROP table b; | |
create table a ( | |
aid NUMBER(10), | |
adiz VARCHAR2(10) | |
); | |
create table b ( | |
bid NUMBER(10), |
# Use jq to read the terraform state file | |
# all id's | |
jq '.resources[].instances[].attributes.id?' terraform.tfstate | |
# all display names | |
jq '.resources[].instances[].attributes.display_name?' terraform.tfstate | |
# all environment id's | |
jq '.resources[].instances[].attributes.environment[]?.id' |
#!/usr/local/bin/python3 | |
rules = [ | |
[ | |
# A required field and default value | |
'not "replication_factor" in configuration', | |
'configuration["replication_factor"] = 1' | |
], | |
[ | |
# production environments require at least 6 partitions |
import time # need for sleep | |
from xml.dom import minidom | |
import json, pprint | |
import requests | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) | |
def r(new_value, old_values): | |
if len(old_values) > 10: | |
old_values.pop(0) | |
old_values.append(new_value) | |
average = sum(old_values) / len(old_values) | |
return average, old_values | |
history = [] | |
for i in range(100): |