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:
%%============================================================================== | |
%% Quicksort implementation in Erlang | |
%% | |
%% Author: Shawn Debnath | |
%%============================================================================== | |
%%---------------------------------------------------------------------- | |
%% qsort_r/1 | |
%% | |
%% Recursive quicksort |
%%============================================================================== | |
%% Mergesort implementation in Erlang | |
%% | |
%% Author: Shawn Debnath | |
%%============================================================================== | |
%%---------------------------------------------------------------------- | |
%% msort/1 | |
%% | |
%% Mergesort (recursive), implements split and merge. |
I hereby claim:
To claim this, I am signing this object:
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 |
#!/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. | |
# |
#include <stdio.h> | |
#include <string.h> | |
int is_unique(char* str) { | |
/* | |
* Bit check array for 256 values | |
* Rationale: 256 / 32 = 8. 32 for 32 bits in an integer | |
*/ | |
int check[8] = {0}; | |
int i, val, idx1, idx2; |
This is an outdated draft that was used to review the content with FreeBSD contributors. For the latest revision, vist http://shawndebnath.com/articles/2016/03/27/freebsd-jails-with-vlan-howto.html.
This article discusses how to set up jails on a FreeBSD 11-CURRENT system utilizing VIMAGE (aka VNET) to provide a virtualized independent network stack for each jail with support for VLAN tagging.
#!/usr/bin/env python | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
Help > More troubleshooting information > Profile Folder
#TabsToolbar { visibility: collapse !important; }
CREATE OR REPLACE FUNCTION mxact_create_and_select(SCALE integer) RETURNS void AS $body$ | |
declare | |
default_rows_per_scale integer := 100000; | |
gap integer := 3000; | |
range integer := 100; | |
create_base_id integer; | |
read_base_id integer; | |
segment_id integer; | |
insert_timsetamp timestamp; | |
read_timestamp timestamp; |