Skip to content

Instantly share code, notes, and snippets.

View rogerramosme's full-sized avatar

Roger Ramos rogerramosme

View GitHub Profile
@rogerramosme
rogerramosme / formatCurrencyBRL.js
Created October 9, 2018 18:55
Format currency BR using toLocalString
const formatCurrencyBRL = (price, showLeadingCurrency = true) => {
price = Math.round(price * 100) / 100;
const options = {
style: showLeadingCurrency ? "currency" : "decimal",
currency: "BRL",
minimumFractionDigits: 2
};
return price.toLocaleString(
@rogerramosme
rogerramosme / ubuntu_agnoster_install.md
Last active November 29, 2018 15:58 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

How to configure ssh key for Github

First generate a new key by running:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Enter a file in which to save the key or press Enter to save using defaults

Then add yout ssh key to your ssh-agent