Skip to content

Instantly share code, notes, and snippets.

Buy me a coffee (

Harshad Ranganathan HarshadRanganathan

Buy me a coffee (
Block or report user

Report or block HarshadRanganathan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kafka_windows_commands
# Start Zookeeper Server
zookeeper-server-start.bat config/
# Start Kafka Server
kafka-server-start.bat config/
# Create Topic
kafka-topics.bat --zookeeper localhost:2181 --topic <topic_name> --create --partitions <partition_count> --replication-factor <replication_factor_size>
# Produce To Topic
HarshadRanganathan / .hyper.js
Created Nov 5, 2019
Hyper config file using git bash shell
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View effective_java_third_edition
Chapter: Creating and Destroying Objects
[1] Consider static factory methods instead of constructors
[2] Consider a builder when faced with many constructor parameters
[3] Enforce the singleton property with a private constructor or an enum type
[4] Enforce non-instantiability with a private constructor
View .gitconfig
# One letter alias for our most frequent commands.
# Guidelines: these aliases do not use options, because we want
# these aliases to be easy to compose and use in many ways.
a = add
HarshadRanganathan / emr_socks_proxy_switchy_omega.bak
Created Feb 13, 2019
AWS EMR Socks Proxy SwitchyOmega Options File
View emr_socks_proxy_switchy_omega.bak
{"+AWS EMR":{"bypassList":[],"color":"#99ccee","fallbackProxy":{"host":"localhost","port":8157,"scheme":"socks5"},"name":"AWS EMR","profileType":"FixedProfile","revision":"15f16ab0a96"},"+__ruleListOf_auto switch":{"color":"#99dd99","defaultProfileName":"direct","format":"Switchy","matchProfileName":"direct","name":"__ruleListOf_auto switch","profileType":"RuleListProfile","revision":"15f16ac2ad3","ruleList":""},"+auto switch":{"color":"#99dd99","defaultProfileName":"direct","name":"auto switch","profileType":"SwitchProfile","revision":"15f16b225ed","rules":[{"condition":{"conditionType":"HostWildcardCondition","pattern":""},"profileName":"direct"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*ec2**"},"profileName":"AWS EMR"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*ec2*.compute"},"profileName":"AWS EMR"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"http://10.*"},"profileName":"AWS EMR"},{"condition":{"condition
HarshadRanganathan / ecs_elasticsearch_task_definition.json
Last active Nov 5, 2019
AWS ECS ElasticSearch Task Definition Template
View ecs_elasticsearch_task_definition.json
"ipcMode": null,
"executionRoleArn": null,
"containerDefinitions": [
"dnsSearchDomains": null,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/aws/ecs",
View teams_message_card_jenkins_pipeline
post {
success {
script {
def payload = """
"@type": "MessageCard",
"@context": "",
"themeColor": "0076D7",
"summary": "Oozie co-ordinators have been scheduled",
"sections": [{
View teams_message_card
"@type": "MessageCard",
"@context": "",
"themeColor": "0076D7",
"summary": "Oozie co-ordinators have been scheduled",
"sections": [{
"activityTitle": "Oozie co-ordinators have been scheduled",
"activitySubtitle": "",
"activityImage": "",
"facts": [{
HarshadRanganathan / letsencrypt
Last active May 20, 2019
Let's Encrypt SSL for Nginx in Amazon Linux AMI instance
View letsencrypt
# Install wget
yum install wget -y
# Install certbot-auto
chmod a+x certbot-auto
# Obtain SSL certificate with Nginx plugin for the domain
sudo ./certbot-auto --nginx -d --debug
HarshadRanganathan / virtual.conf
Last active May 20, 2019
HTTPS Reverse Proxy Configuration in Nginx
View virtual.conf
upstream backend-server {
server {
root /home/ec2-user/app/public;
index index.html;
location /app-proxy/ {
You can’t perform that action at this time.