Skip to content

Instantly share code, notes, and snippets.

View kaustavdm's full-sized avatar

Kaustav Das Modak kaustavdm

View GitHub Profile
@kaustavdm
kaustavdm / .vimrc
Last active December 22, 2015 18:28
Kaustav's .vimrc
" Kaustav's .vimrc
" Colorscheme
syntax enable
colorscheme monokai
let g:monokai_italic=1
let g:monokai_thick_border=1
" Tab related settings
set tabstop=4
@kaustavdm
kaustavdm / DEB-README.md
Last active May 18, 2016 11:44
Gauge package install instructions

Debian/Ubuntu packages for Gauge.

Setting up

Add Bintrays's GPG key

$ sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-keys 023EDB0B
@kaustavdm
kaustavdm / proposal-mozin-restructure_kaustav.txt
Last active July 30, 2016 03:55
Proposal for restructuring of Mozilla India community
Proposal for restructuring of Mozilla India community
=====================================================
Author : Kaustav Das Modak <[email protected]>
Date : Jul 24, 2016
Location : Bangalore
Status : Proposal
License : CC0 1.0 [1]
Version : 1.0.0
@kaustavdm
kaustavdm / e.sh
Last active October 3, 2016 20:12
Run emacsclient in detached GUI mode
#!/bin/bash
# Usage: e.sh <args>
# <args> are any valid arguments for emacsclient
nohup $(which emacsclient) -a "" -c "$@" &>/dev/null & disown %%
@kaustavdm
kaustavdm / hr.css
Last active October 3, 2019 18:44
Make your <hr> look like Medium's
hr:after {
display: block;
text-align: center;
content: "...";
color: #333333;
font-size: 2rem;
height: 2rem;
line-height: 2rem;
clear: both;
border: none;

Keybase proof

I hereby claim:

  • I am kaustavdm on github.
  • I am kaustavdm (https://keybase.io/kaustavdm) on keybase.
  • I have a public key ASBhvAA-2Ale4eGoGUs7illLZL_TDRmbbT9JTND8lzAqPgo

To claim this, I am signing this object:

@kaustavdm
kaustavdm / api-v0.1.yaml
Created September 8, 2019 23:58
Cat Management API for POST/CON 2019 workshop
openapi: 3.0.0
info:
title: Cat Management API
version: '0.1'
description: Hypothetical internal service API for managing database of cats in the household
servers:
- url: 'https://api.cat'
description: production
paths:
/cats:
@kaustavdm
kaustavdm / blue-green-ps1.sh
Created April 2, 2021 18:31
PS1 with blue-green
export PS1="\e[1;36m\u@\h\e[0m\e[1;34m:\W $ \e[0m"
@kaustavdm
kaustavdm / main.go
Last active January 21, 2026 13:20
Embed NATS in Go
package main
import (
"flag"
"log"
"github.com/nats-io/nats-server/v2/server"
nats "github.com/nats-io/nats.go"
)