Skip to content

Instantly share code, notes, and snippets.

@nikhilgorantla
nikhilgorantla / api-gateway-marathon-setup.sh
Created April 9, 2018 04:31 — forked from ddragosd/api-gateway-marathon-setup.sh
API Gateway setup in Mesos and Marathon
# PREREQUISITES:
# Setup a Mesos cluster and install Marathon framework
MARATHON_HOST="http://<marathon_host>/marathon"
# this could be an internal ELB that the Gateway nodes can use to auto-discover services
INTERNAL_MARATHON_HOST="http://<internal_marathon_host>/marathon"
# a wildcard domain configured with *.api.anydomain
API_DOMAIN="api.<my-domain>"
# -------------------------
@nikhilgorantla
nikhilgorantla / ansible-summary.md
Created April 10, 2018 04:16 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
/*
Please make sure to add the following environment variables:
HEROKU_PREVIEW=<your heroku preview app>
HEROKU_PREPRODUCTION=<your heroku pre-production app>
HEROKU_PRODUCTION=<your heroku production app>
@nikhilgorantla
nikhilgorantla / glossary.md
Created May 14, 2018 03:14 — forked from g0t4/glossary.md
Consul and related terms
  • Node - a physical or virtual machine that hosts services
    • Nodes also referred to as members.
    • Examples
      • Your computer
      • An AWS EC2 instance
      • A bare metal machine in your private data center
  • Service - executing software that provides utility via an interface
    • Typically long-lived process listening on a port(s)
    • Examples
  • A web server (nginx, apache, iis)
@nikhilgorantla
nikhilgorantla / AWS Security Resources
Created October 2, 2018 21:30 — forked from chanj/AWS Security Resources
AWS Security Resources
INTRO
I get asked regularly for good resources on AWS security. This gist collects some of these resources (docs, blogs, talks, open source tools, etc.). Feel free to suggest and contribute.
Short Link: http://tiny.cc/awssecurity
Official AWS Security Resources
* Security Blog - http://blogs.aws.amazon.com/security/
* Security Advisories - http://aws.amazon.com/security/security-bulletins/
* Security Whitepaper (AWS Security Processes/Practices) - http://media.amazonwebservices.com/pdf/AWS_Security_Whitepaper.pdf
* Security Best Practices Whitepaper - http://media.amazonwebservices.com/AWS_Security_Best_Practices.pdf
@nikhilgorantla
nikhilgorantla / 4k Wallpapers
Created February 24, 2019 15:21
Collection of 4k wallpapers links
https://photos.google.com/share/AF1QipN7xLKIoUoPA7lOLBdtmYhVD1X8K1w-KBUhvoOY1bo7VxLsElM6G36907mVFe-jzw?key=Q0FFb0FRUk51dm54NlR0V0dXQWx1REktNmpSWXp3
https://photos.google.com/share/AF1QipNjH5u8LC8JfzbFrlR2uVlDeOIQamHLXiwA6-_QxjK_JPdJhyZzbIfVua0RNHTbIA?key=azVNa2xuR2NvNzNiWHc3dlJNbV90TGVEZlNtSUVn
https://photos.google.com/share/AF1QipNClN5jE5yv0dDghz8S5ArOwWQvb_uQWemX4T3tYhX2zWNYfFbp0hUsGTORyI5VmA?key=ZXVvbVRKc2t4TU4zODRvSVI4UFZqbGJWU01YQ1hB
https://photos.google.com/share/AF1QipNBb1R1oJ1FzM9y4TBGcRld6zY9cjKk00cL2qP9y3dsgnhncFvzcBVXTXBtlkxeEw?key=aFNZZHpOUGdBRTlPN1pRWmlFVnFWMkc5SUZTQ0tn
https://photos.google.com/share/AF1QipMp56Yhx1jJuA9NJt1vgnFeAHGDYMPsbqoZc5o9lYithGBBNWG6wy9WQfleoyhRow?key=SGRCblNrYTNOc1o2czR2Y1J6ZXZfYlRPTC1LbmNR
@nikhilgorantla
nikhilgorantla / docker-compose.yml
Created February 28, 2019 16:29 — forked from johnrengelman/docker-compose.yml
Consul-Rancher stack
consul-registrator:
log_driver: ''
labels:
io.rancher.sidekicks: consul,consul-data
io.rancher.scheduler.global: 'true'
io.rancher.container.pull_image: always
io.rancher.container.hostname_override: container_name
tty: true
restart: always
command:
@nikhilgorantla
nikhilgorantla / elasticsearch-cheatsheet.txt
Created April 6, 2020 03:02 — forked from stephen-puiszis/elasticsearch-cheatsheet.txt
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
@nikhilgorantla
nikhilgorantla / cheatsheet-elasticsearch.md
Created April 6, 2020 03:16 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@nikhilgorantla
nikhilgorantla / multiple_ssh_setting.md
Created July 12, 2020 21:00 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"