Skip to content

Instantly share code, notes, and snippets.

@sdebnath
sdebnath / Reference Material Template.md
Created October 2, 2025 14:40
Reference Material Template

Date Created: {{date}}, {{time}} Tags:

References

Note

@sdebnath
sdebnath / Atomic Note Template.md
Created October 2, 2025 14:40
Atomic Note Template

Date Created: {{date}}, {{time}} Tags:

Note

################################################################################
# OhMyZsh configuration
################################################################################
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
@sdebnath
sdebnath / UnixSolarized.json
Created October 2, 2025 04:55
Nostalgic unix themed solarized iterm2 profile.
{
"Ansi 7 Color (Light)" : {
"Red Component" : 0.7810397744178772,
"Color Space" : "sRGB",
"Blue Component" : 0.78104829788208008,
"Alpha Component" : 1,
"Green Component" : 0.78105825185775757
},
"Ansi 15 Color (Light)" : {
"Red Component" : 0.99999600648880005,
@sdebnath
sdebnath / tmux.conf
Last active October 2, 2025 04:56
tmux.conf
#────────────────────────────────────────────────────────────────
#──── [0] Terminal & Colors
#────────────────────────────────────────────────────────────────
# Advertise a 256-color terminal (uncomment if needed).
# Many modern setups prefer "tmux-256color" in terminfo.
# set -g default-terminal "screen-256color"
# set -g default-terminal "tmux-256color"
# Enable truecolor (24-bit) in xterm-like terminals.
# (Appends to existing overrides rather than replacing them.)
"
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker spell:
"
" Basics {
set nocompatible " always first...no Vi mode!
filetype off
" }
" Infect with Vundle (Plugin command) {
@sdebnath
sdebnath / netskope_ssl_cert_chain.md
Created July 24, 2024 20:13
Adding Netskope SSL cert chain from macos to linux VM
@sdebnath
sdebnath / keybindings.json
Last active December 4, 2023 19:57
VSCode Key Bindings
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+q",
"command": "editor.action.peekDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "alt+f12",
"command": "-editor.action.peekDefinition",
begin;
select mxact_create(:scale);
-- select mxact_create_and_select(:scale);
commit;
@sdebnath
sdebnath / mxact_create.sql
Last active January 20, 2022 05:41
Test workload for PostgreSQL MultiXact: create new mxacts
CREATE OR REPLACE FUNCTION mxact_create(SCALE integer) RETURNS void AS $body$
declare
default_rows_per_scale integer := 100000;
gap integer := 3000;
range integer := 100;
create_base_id integer;
segment_id integer;
begin
-- Generate a random number to use as a segment to offset concurrent connections from hitting the same exact range of ids
select (trunc(extract(millisecond from current_timestamp) * default_rows_per_scale, 0) % (100000 * scale)) into create_base_id;