Skip to content

Instantly share code, notes, and snippets.

View indrayam's full-sized avatar
💭
Onwards and upwards

Anand Sharma indrayam

💭
Onwards and upwards
View GitHub Profile
@indrayam
indrayam / sublime-plugins.txt
Last active February 15, 2020 19:30
All Sublime Text 3 Plugins (Feb 2020)
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"AdvancedNewFile",
"Alignment",
@indrayam
indrayam / sublime-settings.txt
Last active February 2, 2020 22:30
Sublime Text 3 Configuration (as of Feb 2020)
{
"auto_complete": false,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 0,
"auto_complete_with_fields": false,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "solid",

I've been working with Kafka for over 7 years. I inevitably find myself doing the same set of activities while I'm developing or working with someone else's system. Here's a set of Kafka productivity hacks for doing a few things way faster than you're probably doing them now. 🔥

Get the tools

@indrayam
indrayam / FileIOTest1.java
Last active June 19, 2019 23:15
Simplest FileIO in Java (Part 1)
package dev.anandsharma.corejava.ch3;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.Scanner;
public class FileIOTest1 {
public static final String RW_FILE_PATH = "/Users/anasharm/Downloads/test1.txt";
@indrayam
indrayam / FileIOTest.java
Created June 19, 2019 23:15
Simplest FileIO in Java (Part 2)
package dev.anandsharma.corejava.ch3;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.Scanner;
public class FileIOTest2 {
@indrayam
indrayam / .vimrc
Last active March 3, 2019 20:14
My .vimrc (as of March 2019)
" .vimrc
" Maintained by: Anand Sharma
" anand.sharma@gmail.com
" Heavily borrowed from https://github.com/zanshin/dotfiles
" Need more studying: https://bitbucket.org/sjl/dotfiles/src/4e6f3d36c2417fd778f30192b90c51795bdcd368/vim/vimrc?at=default
"
" -------------------------------------------------------------------
" Forget compatibility with vi
" -------------------------------------------------------------------
set nocompatible
@indrayam
indrayam / cloudy-apps.md
Last active February 26, 2019 14:47
Building Cloudy Apps in 2019!

Building Cloudy Apps in 2019!

Before we start building LOTS and LOTS of Spring Boot based Cloudy Apps in 2019, let's go back to the books and (re)learn how to build them today. Remember, the last time we got into building Microservices it was 2015!

Bottomline, we need to build Spring Boot Seed App(s), AGAIN!

Java

Basics to stick with

@indrayam
indrayam / pragmatic-practices.md
Last active February 25, 2019 21:31
Pragmatic Practices to Build Modern Containerized Apps Running on Kubernetes
@indrayam
indrayam / export-vscode-extensions.md
Created December 8, 2018 16:04
Export VS Code Extensions List

Manual - By script

In machine A,

code --list-extensions | xargs -L 1 echo code --install-extension copy and paste the echo output to machine B

sample output

@indrayam
indrayam / ..git-pr.md
Created October 5, 2018 12:49 — forked from gnarf/..git-pr.md
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out