Skip to content

Instantly share code, notes, and snippets.

View williamkoller's full-sized avatar
💻

William Koller williamkoller

💻
View GitHub Profile
@williamkoller
williamkoller / .zshrc
Created May 29, 2024 14:13
Switch automatically to correct Node version
# Switch automatically to correct Node version
# place this after nvm initialization
autoload -U add-zsh-hook
load-nvmrc() {
[[ -a .nvmrc ]] || return
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
@williamkoller
williamkoller / README.md
Created March 21, 2024 17:21 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

export const formatDateToBR = (date: Date): string => {
return new Intl.DateTimeFormat('pt-BR').format(date)
}
export const formatDateToISO = (date: Date): string => {
return date.toDateString().split('T')[0]
}
export const formatDateToBRShort = (date: Date): string => {
return new Intl.DateTimeFormat('pr-BR', {
@williamkoller
williamkoller / Test in hab postman
Created November 17, 2022 14:15
Test in hab postman
var res = pm.response.json();
pm.environment.set('access_token', res.access_token);
@williamkoller
williamkoller / ssh.md
Created October 5, 2022 23:36 — forked from EdnilsonRobert/ssh.md
Múltiplas chaves SSH para GitHub e GitLab

Múltiplas chaves SSH para GitHub e GitLab

1. Gerar Chaves SSH

ssh-keygen -t rsa -C "user@email.com" -b 4096 -f ~/.ssh/id_rsa_github
ssh-keygen -t rsa -C "user@email.com" -b 4096 -f ~/.ssh/id_rsa_gitlab

2. Copiar chaves para GitHub e GitLab

@williamkoller
williamkoller / installing-postman.md
Created March 3, 2022 22:54 — forked from pmkay/installing-postman.md
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux

Although I highly recommend using a snap

sudo snap install postman

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz
@williamkoller
williamkoller / keybindings.json
Last active October 20, 2022 12:00
key bindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
@williamkoller
williamkoller / configuration-linux-dev.sh
Last active April 24, 2023 12:38
Configuration Linux Dev
# install curl
apt install curl -y
# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | zsh
# install nodejs
nvm install --lts
# add nodejs default
@williamkoller
williamkoller / .zshrc
Last active October 20, 2022 11:59
config zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@williamkoller
williamkoller / settings.json
Last active October 20, 2022 11:59
VS Code Configs current (Updated)
{
"breadcrumbs.enabled": true,
"codesnap.backgroundColor": "transparent",
"codesnap.transparentBackground": true,
"codesnap.boxShadow": "0 0 0",
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,