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
INSERT INTO users (name, age) VALUES ('john', 26); | |
INSERT INTO users (name, age) VALUES ('jane', 24); | |
INSERT INTO users (name, age) VALUES ('julia', 25); | |
INSERT INTO users (name, age) VALUES ('jamie', 22); | |
INSERT INTO users (name, age) VALUES ('jenny', 27); |
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
CREATE TABLE users | |
( | |
id SERIAL NOT NULL, | |
name VARCHAR(100) NOT NULL, | |
age INTEGER, | |
updated_at TIMESTAMP NOT NULL DEFAULT NOW(), | |
PRIMARY KEY(id) | |
); |
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
--- | |
key_pair: ronak-nathani | |
instance_type: t2.medium | |
region: us-west-2 | |
security_group_id: sg-19127861 | |
num_instances: 2 | |
subnet_id: subnet-3a78835f | |
tag_key_vals: | |
Name: ronak-ec2-role | |
class: kafka |
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 python | |
# Using new TCP connection for each HTTP request | |
import os | |
import json | |
import time | |
import logging | |
import requests | |
from requests.auth import HTTPBasicAuth |
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 python | |
import requests | |
import logging | |
import time | |
import os | |
import json | |
from requests.auth import HTTPBasicAuth | |
logging.basicConfig(level=logging.DEBUG) | |
start_time = time.time() |
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 python | |
import requests | |
import logging | |
import time | |
import os | |
import json | |
from requests.auth import HTTPBasicAuth | |
logging.basicConfig(level=logging.DEBUG) | |
start_time = time.time() |
NewerOlder