Skip to content

Instantly share code, notes, and snippets.

View my-janala's full-sized avatar

Mezbaur Rahman my-janala

View GitHub Profile
@adionditsak
adionditsak / RELK.sh
Last active February 21, 2021 04:25
Install the ELK stack (with Redis) with one script for the central log server (CentOS 6.5).
#/bin/bash
##########################################################
### INTRODUCTION
##########################################################
: '
Install and configure R (Redis) + ELK server from scratch on CentOS 6.5.
* Logstash version 1.4.2
* Elasticsearch version 1.3.2
@mtbdeano
mtbdeano / split_horizonator.py
Created June 29, 2015 21:10
Simple python script to keep Amazon Route 53 public/private split horizon DNS domains in sync
import boto.route53
import boto.ec2
import pprint as pp
def match_domain(domain, region="us-east-1"):
''' iterate through the public EIPs and make sure that if there is a `domain.com` entry for that EIP, it's private IP is also mapped in the private `domain.com`
'''
r53 = boto.route53.connect_to_region(region)
ec2 = boto.ec2.connect_to_region(region)
$ vim ~/.ssh/config
###
Host *.sunrise-dev.local
user mezbaur
ProxyCommand ssh -q -A mezbaur@cd_bstn nc %h %p
IdentityFile ~/.ssh/mezbaur
LogLevel QUIET
StrictHostKeyChecking no