Skip to content

Instantly share code, notes, and snippets.

View vikasnkumar's full-sized avatar

Vikas N Kumar vikasnkumar

View GitHub Profile
@vikasnkumar
vikasnkumar / PegexVariableRule.txt
Created May 12, 2014 04:00
Pegex variable rule request
# let us assume we are parsing a financial binary feed. Each message fits into the following C-like structure
struct Msg {
string Ticker;
string Exchange;
byte Type; #### Type can be says something like Stock/Forex/Future/Option
int Count; #### No of KeyValuePairs
struct KeyValue {
string Key;
union Value {
int i;
@vikasnkumar
vikasnkumar / gist:1273842
Created October 9, 2011 16:05
Hotpatch - a shared library injection strategy on Linux
Introduction to Hotpatch
=========================
Hotpatch is a library that can be used to dynamically load a shared library
(.so) file on Linux from one process into another already running process,
without affecting the execution of the target process. The API is a C API, but
also supported in C++.
The current version is 0.2.
The limitations, directions on how to use, and possible uses of hotpatch will be