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 / com.googlecode.iterm2.plist
Created November 21, 2022 20:26
iTerm2 Configurations (as of Nov 2022)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>ApplePressAndHoldEnabled</key>
<false/>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
@indrayam
indrayam / generatepkgXML.sh
Created February 26, 2022 01:48 — forked from msrivastav13/generatepkgXML.sh
Generates package.xml from the Unmanaged container/Managed Package or Changesets
#!/bin/bash
if [ $# -lt 1 ]
then
echo Usage: generatepkgXML.sh orgalias packageName
exit
fi
## Retrieve the PackageXML from Unmanaged Container
@indrayam
indrayam / git-commit-template.md
Created January 13, 2022 00:41 — forked from lisawolderiksen/git-commit-template.md
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

One of my colleagues shared an article on writing (good) Git commit messages today: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@indrayam
indrayam / intellij.txt
Created November 13, 2020 21:24
IntelliJ IDEA running Kotlin Code
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java -javaagent:/Users/anasharm/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/202.7319.50/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=49795:/Users/anasharm/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/202.7319.50/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/anasharm/local-workspace/kotlin-apps/head-first-kotlin/chapter-6/target/classes:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.4.10/kotlin-stdlib-common-1.4.10.jar:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.10/kotlin-stdlib-jdk8-1.4.10.jar:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.4.10/kotlin-stdlib-1.4.10.jar:/Users/anasharm/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4.10/kotlin-stdlib-jdk7-1.4.10.jar Chapter6Kt
/Library/Java/JavaVirtualMachines
@indrayam
indrayam / vscode-projects.json
Last active January 6, 2021 00:23
VS Code Projects
[
{
"name": "nerd-notes",
"rootPath": "/Users/anasharm/Dropbox/workspace/documentation/nerd-notes",
"paths": [],
"group": "",
"enabled": true
},
{
"name": "personal-notes",
@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",
@indrayam
indrayam / keybindings.json
Last active August 7, 2020 20:18
VS Code Keyboard mappings (Aug 2020)
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+cmd+p",
"command": "projectManager.listProjects"
},
{
"key": "alt+cmd+p",
"command": "-projectManager.listProjects"
},

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 / 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 {