Skip to content

Instantly share code, notes, and snippets.

View dinesh-chander's full-sized avatar
🎯
Focusing

Dinesh Chander dinesh-chander

🎯
Focusing
  • Zocdoc
  • Pune, India
View GitHub Profile
editor.zero.latency.typing=true
idea.max.intellisense.filesize=3500
idea.cycle.buffer.size=4096
-Xms256m
-Xmx1600m
-Dfile.encoding=UTF-8
-XX:+UseG1GC
-XX:ParallelGCThreads=4
-XX:ConcGCThreads=4
-XX:+ExplicitGCInvokesConcurrent
-XX:+UseAdaptiveGCBoundary
-XX:CompileThreshold=2000
-XX:+AlwaysPreTouch
@dinesh-chander
dinesh-chander / docker-compose.yml
Last active December 8, 2022 12:52
redis and kafka docker-compose with ssl
version: '3.10'
services:
redis:
image: 'bitnami/redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
- REDIS_TLS_ENABLED=yes
- REDIS_TLS_PORT_NUMBER=6379
@dinesh-chander
dinesh-chander / setup_certs.sh
Created December 8, 2022 12:49
create ssl certs, pem and keystore for kafka and redis
#!/bin/bash
# Source: https://github.com/redis/redis/blob/unstable/utils/gen-test-certs.sh
cwd=`pwd`
create_pem() {
local name=$1
local password=${server_name}12345
local server_name=$1
@dinesh-chander
dinesh-chander / cloudSettings1
Created August 4, 2017 06:05
VsCode Settings
{}
@dinesh-chander
dinesh-chander / cloudSettings
Last active August 4, 2017 05:40
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-08-04T05:32:30.614Z","extensionVersion":"v2.8.2"}
package main
import (
"fmt"
"math/rand"
"strconv"
"time"
"github.com/Shopify/sarama"
)