Skip to content

Instantly share code, notes, and snippets.

View softmantk's full-sized avatar
😃

Nikhil Chittuthara softmantk

😃
View GitHub Profile
var API_OUT = {
'key': 'BJEJ3NVRH71Y9D45', // expecting all attributes are lowercase and won't contain space.
'analysis': {
'I': {
'NFrames': 172,
'NF_PROP': 0.8037,
'NF_75Plus': 172,
'NF_60_75': 0,
'NF_50_60': 0
},
@softmantk
softmantk / signedKey.js
Last active June 24, 2019 07:36
Generate signed key
const jwt = require("jsonwebtoken");
async function getAcessToken(getAcessToken) {
return await jwt.sign({
customerId: getAcessToken._id,
}, secretKey, { expiresIn: 60 * 60 * 24 * 14 });
}
@softmantk
softmantk / pcat-install.sh
Created June 7, 2019 05:52 — forked from BretFisher/pcat-install.sh
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'
@softmantk
softmantk / README.md
Created April 5, 2018 10:02 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@softmantk
softmantk / gist:3b8913c4a98d175c36daf81a5dfaed78
Created March 19, 2018 06:39 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@softmantk
softmantk / LICENCE SUBLIME TEXT
Created February 23, 2018 06:45
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@softmantk
softmantk / roles_invesitgation.md
Created January 25, 2018 07:16 — forked from facultymatt/roles_invesitgation.md
Roles and permissions system for Nodejs
@softmantk
softmantk / OpenWithSublimeText3.bat
Created January 21, 2018 06:37 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
var express = require('express');
var multer = require('multer');
var bodyParser = require('body-parser')
var app = express();
var upload = multer({
dest: 'uploads/',
/*fileFilter: function (req, file, callback) {
if (['xls', 'xlsx'].indexOf(file.originalname.split('.')[file.originalname.split('.').length - 1]) === -1) {
return callback(new Error('Wrong extension type'));
}
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\SOFTMAN\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'express' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 87566aa8f5162aba
5 silly install loadCurrentTree
6 silly install readLocalPackageData