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 / create-jwt-using-unix-commands-on-mac.md
Last active September 21, 2022 08:08
Create JWT Token Header Using Unix Command line tools ONLY!

Pseudocode:

Y = Base64URLEncode(Header) + ‘.’ + Base64URLEncode(Payload)
JWT = Y + ‘.’ + Base64URLEncode(HMACSHA256(Y))

The steps called out here should work on a Mac as well. The only thing that might be different is the sed command used below. Instead of using -E, you will have to use -r to run sed with extended regular expression support

Use data from this tutorial:

scotch.io

@indrayam
indrayam / tmux_build_from_source_ubuntu.sh
Created October 9, 2017 15:51
Install latest version of tmux in Ubuntu 16.04
# Steps to build and install tmux from source on Ubuntu.
# Takes < 25 seconds on EC2 env [even on a low-end config instance].
VERSION=2.5
sudo apt-get -y remove tmux
sudo apt-get -y install wget tar libevent-dev libncurses-dev
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}
./configure
@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 / 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 / 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 / my-vscode-extensions.sh
Last active August 7, 2020 20:21
VS Code Extensions (as of Aug 2020)
code --install-extension 4ops.terraform
code --install-extension akamud.vscode-theme-onelight
code --install-extension akarlsten.vscode-snazzy-akarlsten
code --install-extension alefragnani.project-manager
code --install-extension alexanderte.dainty-vscode
code --install-extension anotherglitchinthematrix.monochrome
code --install-extension azemoh.one-monokai
code --install-extension bierner.github-markdown-preview
code --install-extension bierner.markdown-checkbox
code --install-extension bierner.markdown-emoji
@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"
},
@indrayam
indrayam / settings.json
Last active August 7, 2020 20:17
My VSCode Settings (Aug 2020)
// Place your settings in this file to overwrite the default settings
{
// Workbench Settings
"workbench.activityBar.visible": true,
"workbench.tips.enabled": false,
"workbench.startupEditor": "none",
"workbench.settings.editor": "json",
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.enablePreview": false,
"workbench.colorCustomizations": {