Skip to content

Instantly share code, notes, and snippets.

@sdebnath
sdebnath / genct.sh
Created July 11, 2015 23:50
generate cscope and tags for freebsd src
#!/bin/sh
# Copyright (c) 2015, Shawn Debnath. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
@sdebnath
sdebnath / gist:36c235e042cb35db7d1f
Last active September 21, 2024 19:19
Add field to Riak YZ Schema with CRDTs
This gist captures what needs to be done to add a new field to Riak's Yokozuna
search index.
Sources:
- https://github.com/basho/yokozuna/issues/130
- http://riak-users.197444.n3.nabble.com/How-to-update-existed-schema-td4032143.html
The code below is for illustration purposes only. Use at your own risk.
1. Create/Update new schema file
@sdebnath
sdebnath / keybase.md
Created March 18, 2015 16:58
keybase.md

Keybase proof

I hereby claim:

  • I am sdebnath on github.
  • I am sdebnath (https://keybase.io/sdebnath) on keybase.
  • I have a public key whose fingerprint is 7B6A 66DC 11D5 6398 C65B 3036 6851 6518 F3D6 BAF8

To claim this, I am signing this object:

@sdebnath
sdebnath / msort.erl
Created March 15, 2015 22:41
Mergesort in Erlang
%%==============================================================================
%% Mergesort implementation in Erlang
%%
%% Author: Shawn Debnath
%%==============================================================================
%%----------------------------------------------------------------------
%% msort/1
%%
%% Mergesort (recursive), implements split and merge.
@sdebnath
sdebnath / qsort.erl
Created March 15, 2015 22:38
Quicksort in Erlang
%%==============================================================================
%% Quicksort implementation in Erlang
%%
%% Author: Shawn Debnath
%%==============================================================================
%%----------------------------------------------------------------------
%% qsort_r/1
%%
%% Recursive quicksort