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 postgres_users | |
( | |
id INTEGER NOT NULL, | |
name VARCHAR(100) NOT NULL, | |
age INTEGER, | |
updated_at TIMESTAMP NOT NULL | |
); |
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 same TCP connection for all HTTP requests | |
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
--- | |
key_pair: ronak-nathani | |
instance_type: t2.medium | |
region: us-west-2 | |
security_group_id: sg-19127861 | |
num_instances: 3 | |
subnet_id: subnet-3a78835f | |
tag_key_vals: | |
Name: ronak-kafka-cluster | |
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
#!/bin/bash | |
ansible-playbook ./kafka.yml --extra-vars "zookeeper_tag=class2_zookeeper kafka_tag=class_kafka" --tags "install" | |
ansible-playbook ./kafka.yml --extra-vars "zookeeper_tag=class2_zookeeper kafka_tag=class_kafka" --tags "start" |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: azure-vote-back | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: azure-vote-back | |
template: |
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
{ | |
"name": "cni0", | |
"plugins": [ | |
{ | |
"type": "flannel", | |
"delegate": { | |
"ipMasq": false, | |
"hairpinMode": true, | |
"isDefaultGateway": true | |
} |
OlderNewer