Skip to content

Instantly share code, notes, and snippets.

View MarioRinaldi's full-sized avatar

Mario Felipe Rinaldi MarioRinaldi

View GitHub Profile
@MarioRinaldi
MarioRinaldi / gpg-ssh-setup.md
Created May 7, 2022 05:52 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at [email protected] or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals

@MarioRinaldi
MarioRinaldi / WSL.txt
Last active July 20, 2021 19:51
WSL: settings windows terminal
1) instalar WSL1 e alterar para WSL2 (https://docs.microsoft.com/pt-br/windows/wsl/)
2) instalar MS terminal (https://docs.microsoft.com/pt-br/windows/terminal/)
2.1) Seguir o seguinte powerUp do MS terminal+WSL (https://twasa.ml/post/wsl/)
2.1.1) instalar ZSH no WSL
2.1.2) instalar o "oh my ZSH" (https://ohmyz.sh/)
2.2) Ajustar o settings.json do MS terminal (https://gist.github.com/MarioRinaldi/bd871231936e92ae2670825f8dc9ee5c)
@MarioRinaldi
MarioRinaldi / js-terms.md
Created August 24, 2020 21:50 — forked from AllThingsSmitty/js-terms.md
10 terms to help you better understand JavaScript

10 JavaScript Terms You Should Know

From currying to closures there are quite a number of special words used in JavaScript. These will not only help you increase your vocabulary but also better understand JavaScript. Special terms are normally found in documentation and technical articles. But some of them like closures are pretty standard things to know about. Knowing what the word itself means can help you know the concept it's named for better.

  1. Arity
  2. Anonymous
  3. Closure
  4. Currying
  5. Hoisting
  6. Mutation
// package.json
{
"devDependencies": {
"eslint": "4.9.0",
"eslint-config-airbnb-base": "9.0.0",
"eslint-plugin-import": "2.0.1",
"git-validate": "2.2.4",
"lint-staged": "^8.1.7",
"prettier-eslint-cli": "^4.7.1"
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
@MarioRinaldi
MarioRinaldi / README-Template.md
Created February 7, 2019 21:29 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@MarioRinaldi
MarioRinaldi / SimpleStore.js
Created November 22, 2016 03:49 — forked from ksafranski/SimpleStore.js
Simple localStorage function with Cookie fallback for older browsers.
/**
* Simple localStorage with Cookie Fallback
* v.1.0.0
*
* USAGE:
* ----------------------------------------
* Set New / Modify:
* store('my_key', 'some_value');
*
* Retrieve:
GIT_VERSION=`git --version | awk '{print $3}'`
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash"
PROFILE="$HOME/.profile"
echo "Downloading git-completion for git version: $GIT_VERSION..."
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1
fi