Skip to content

Instantly share code, notes, and snippets.

Hacking my way through this world..

T.V.VIGNESH tvvignesh

Hacking my way through this world..
Block or report user

Report or block tvvignesh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tvvignesh / flattenArray.js
Created Oct 15, 2016
Flatten an array of nested arrays of integers
View flattenArray.js
* Flatten an Array of Arbitrarily nested Arrays of Integers
* into a Flat Array of Integers.
* @param {Array} intArray - Array of Numbers
* @param {Array} flatArray - Flatten array (recursive)
* @return {Array} - Array of Numbers
* Link to JSBin -,output
var flatten = function(intArray, flatArray) {
tvvignesh / program.js
Created Mar 19, 2018
Grep implementation in Node.js
View program.js
Instructions to run:
node program.js grep "search term" /path/to/file/
var fileList = [];
var countObj = {};
tvvignesh /
Last active Jul 19, 2018
Encrypt and Decrypt files using GPG Algorithm -

Remove existing GPG Secret Keys

gpg --delete-secret-keys "Vignesh T.V."

Remove existing GPG Public Keys

gpg --delete-keys "Vignesh T.V."

Generate GPG Keys

gpg --gen-key

Export GPG Public Key


Convert PPTX to PDF using libreoffice

libreoffice --headless --invisible --convert-to pdf *.pptx

Combine multiple PDFs to form a single PDF with layout options

pdfjam *.pdf --nup 3x4 --landscape --outfile output.pdf

tvvignesh /
Last active Nov 23, 2018
Notes/References for Masters

These are the materials I used for some of the courses I studied at MTech. Links are given against specific topics.

Information Retrieval

  1. Term Document Matrix -
  2. Positional Index -
  3. Order of processing -
  4. Boolean Retrieval Model -
  5. Permuterm Index -
  6. Naive Bayes Classifier -
  7. Information Retrieval courses -
tvvignesh /
Created Dec 6, 2018
Redis installation and commands


tar xzf redis-5.0.2.tar.gz

cd redis-5.0.2

cd deps

make hiredis jemalloc linenoise lua geohash-int

tvvignesh /
Created Dec 8, 2018
Checklist to consider before buying anything
  1. Why am I buying it?
  2. Do I really need it? If not, do I really love it?
  3. What is the Return of Investment (ROI)?
  4. How many hours of work is it worth? How will I manage the finances?
  5. Can I take it for rent if it is a temporary need?
  6. Are there alternatives for the same?
  7. Can I recycle or sell it after usage?
  8. Is it socially and environmentally friendly?
You can’t perform that action at this time.