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
tvvignesh / ops.md
Last active May 18, 2019
Quick Commands
View ops.md

SEMODULE DISABLE IN CentOS

sudo cat /var/log/audit/audit.log | grep nginx | grep denied | audit2allow -M mynginx

sudo semodule -i mynginx.pp

ALLOW HTTP & HTTPS TRAFFIC IN FIREWALL

sudo systemctl stop firewalld

@tvvignesh
tvvignesh / gpg.md
Last active Jul 19, 2018
Encrypt and Decrypt files using GPG Algorithm - https://www.gnupg.org/
View gpg.md

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

@tvvignesh
tvvignesh / program.js
Created Mar 19, 2018
Grep implementation in Node.js
View program.js
/*
Instructions to run:
node program.js grep "search term" file1.xyz file2.xyz /path/to/file/file3.xyz
*/
var fileList = [];
var countObj = {};
console.log(process.argv);
@tvvignesh
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 - http://jsbin.com/dofuneb/edit?js,output
*/
var flatten = function(intArray, flatArray) {
You can’t perform that action at this time.