ssh-keygen -t rsa -C "[email protected]" -b 4096 -f ~/.ssh/id_rsa_github
ssh-keygen -t rsa -C "[email protected]" -b 4096 -f ~/.ssh/id_rsa_gitlab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:$HOME/.local/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var res = pm.response.json(); | |
pm.environment.set('access_token', res.access_token); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application.shellEnvironmentResolutionTimeout": 100, | |
"breadcrumbs.enabled": true, | |
"codesnap.backgroundColor": "transparent", | |
"codesnap.transparentBackground": true, | |
"codesnap.boxShadow": "0 0 0", | |
"editor.selectionClipboard": true, // Only for Linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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", |
Em workloads variáveis, escalar o Amazon Aurora Serverless v2 nos horários certos pode reduzir custos e melhorar a performance.
Combinando AWS Lambda + Amazon EventBridge, é possível automatizar o ajuste de capacidade da Aurora de forma programada, com baixo custo de manutenção.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"strings" | |
"time" | |
) | |
// ============================================================================ | |
// 1. SINGLE RESPONSIBILITY PRINCIPLE (SRP) |