Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| 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 | |
| }, |
| const jwt = require("jsonwebtoken"); | |
| async function getAcessToken(getAcessToken) { | |
| return await jwt.sign({ | |
| customerId: getAcessToken._id, | |
| }, secretKey, { expiresIn: 60 * 60 * 24 * 14 }); | |
| } | |
| # 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' |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| ## 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 |
https://github.com/djvirgen/virgen-acl Simple and elegant, create your own checks. No middleware?
https://github.com/OptimalBits/node_acl Use as middleware, create your own roles and access. Great choice.
https://github.com/tschaub/authorized Similar to connect roles... but a bit more robust? you can create roles and action, and associate many roles with that action
| @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 |