This file contains hidden or 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
" Leader key | |
let mapleader = "," | |
" Default key mapping | |
nnoremap <F3> :tabprevious <CR> | |
nnoremap <F4> :tabnext <CR> | |
" RTP | |
set rtp+=/Users/akhterali/config/nvim/plugged |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
```hcl | |
2018/04/30 23:21:32 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161 | |
2018/04/30 23:21:32 [INFO] Go runtime version: go1.10.1 | |
2018/04/30 23:21:32 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/0.6.0/versions/0.11.7/terraform", "plan"} | |
2018/04/30 23:21:32 [DEBUG] Attempting to open CLI config file: /Users/mo.ali/.terraformrc | |
2018/04/30 23:21:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2018/04/30 23:21:32 [INFO] CLI command args: []string{"plan"} | |
2018/04/30 23:21:32 [TRACE] Preserving existing state lineage "b277f5e0-3eb9-4aea-be17-c031f4220f01" | |
2018/04/30 23:21:32 [TRACE] Preserving existing state lineage "b277f5e0-3eb9-4aea-be17-c031f4220f01" | |
2018/04/30 23:21:32 [INFO] Building AWS region structure |
This file contains hidden or 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
``` | |
2018/03/22 12:37:47 [INFO] terraform: building graph: GraphTypeInput | |
ner-iam-role - *terraform.NodeAbstractResource | |
aws_iam_role.container_instance_ec2 - *terraform.NodeAbstractResource | |
aws_iam_role_policy_attachment.attach-coyote-messaging-policy - *terraform.NodeAbstractResource | |
aws_iam_role_policy_attachment.attach-secrets-policy - *terraform.NodeAbstractResource | |
aws_iam_role_policy_attachment.ec2_service_role - *terraform.NodeAbstractResource | |
aws_iam_role_policy_attachment.ecs_service_role - *terraform.NodeAbstractResource | |
aws_kms_key.coyote-secrets-encryption - *terraform.NodeAbstractResource | |
aws_launch_configuration.container_instance - *terraform.NodeAbstractResource |
This file contains hidden or 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
locals { | |
vpc_type = "${terraform.workspace == "prod" ? "prod" : "dev"}" | |
vpc_id = "${local.vpc_type == "prod" ? var.vpc_ids["prod"] : var.vpc_ids["dev"]}" | |
} |
This file contains hidden or 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 socket | |
grains = {} | |
REDIS_MASTER = 'redis_master.hostname.com' | |
def redis_master(): | |
try: | |
REDIS_M_INFO = socket.gethostbyaddr(REDIS_MASTER) |
This file contains hidden or 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 requests | |
import socket | |
def get_page_code(): | |
test = requests.get('http://www.google.com') | |
return test.status_code |
This file contains hidden or 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
this is a gist :) |
This file contains hidden or 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 random | |
import time | |
z = range(0, 99) | |
while True: | |
z1 = random.choice(z) | |
i = random.sample(range(0,99), 4) | |
q = i[0] | |
w = i[1] | |
e = i[2] | |
time.sleep(1) |
This file contains hidden or 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
``` | |
project_root\ | |
\packages | |
__init__.py | |
\tests | |
__init__.py | |
``` |
This file contains hidden or 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
``` | |
project_root\ | |
\packages | |
\tests | |
``` |
NewerOlder