Skip to content

Instantly share code, notes, and snippets.

View acampagnaro's full-sized avatar

Alexandre Campagnaro acampagnaro

View GitHub Profile
@argentinaluiz
argentinaluiz / Guia rápido de instalação do WSL2 + Docker.md
Last active May 30, 2023 23:47
Guia rápido de instalação do WSL2 + Docker
@tomsihap
tomsihap / gist:e703b9b063ecc101f5a4fc0b01a514c9
Created December 23, 2018 14:46
Install NVM in Ubuntu 18.04 with ZSH
# Find the latest version on https://github.com/creationix/nvm#install-script
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# Add in your ~/.zshrc the following:
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
$ source ~/.zshrc
@tilap
tilap / localtunnel.js
Last active December 20, 2023 11:03
Localtunnel auto reconnect
/**
* Stupid nodejs script to use localtunnel and auto reconnect
* usage: node localtunnel.js port=3000 subdomain=toto
*
*/
/* global console, require, process, setTimeout */
const assert = require('assert');
const localtunnel = require('localtunnel');
var argv = process.argv.reduce(function(accumulator, str) {
@chris-rock
chris-rock / crypto-gcm.js
Last active February 21, 2023 10:31
Use GCM for authenticated encryption in nodejs
// Nodejs encryption with GCM
// Does not work with nodejs v0.10.31
// Part of https://github.com/chris-rock/node-crypto-examples
var crypto = require('crypto'),
algorithm = 'aes-256-gcm',
password = '3zTvzr3p67VC61jmV54rIYu1545x4TlY',
// do not use a global iv for production,
// generate a new one for each encryption
iv = '60iP0h6vJoEa'
@leocomelli
leocomelli / git.md
Last active May 14, 2025 02:32
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda