Skip to content

Instantly share code, notes, and snippets.

View rodrigoagostin's full-sized avatar

Rodrigo Agostinho rodrigoagostin

View GitHub Profile
@rodrigoagostin
rodrigoagostin / techlist.md
Created September 13, 2019 15:17 — forked from PabloAlexandre/techlist.md
Recomendações gerais de artigos sobre tecnologia
@zfael
zfael / .bash_profile - NVM for windows
Last active October 23, 2018 12:59 — forked from allenhwkim/.bash_profile
usage of .nvmrc
# To use this, add .nvmrc with contents of 'N.N.N' to your project. e.g. 0.12.7
# Add the following to the end of .bash_profile or .bashrc
#
# if directory is changed
# if `.nvmrc` is found execute `nvm use`
# if `package.json` is round execute `nvm use default`
enter_directory() {
if [ "$PWD" != "$PREV_PWD" ]; then
PREV_PWD="$PWD";
if [ -e ".nvmrc" ]; then
@zfael
zfael / nodejs.checksum.js
Created June 20, 2017 13:57
NODE.JS - How to generate file's Checksum (CRYPTO)
var fs = require('fs');
var crypto = require('crypto');
fs.readFile('file.pdf', function(err, data) {
var checksum = generateChecksum(data);
console.log(checksum);
});
function generateChecksum(str, algorithm, encoding) {
return crypto