This file contains 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
provider "aws" { | |
region = "us-east-1" | |
} | |
# ------------------------------------------------------------------------------------ | |
# VARIABLES | |
# ------------------------------------------------------------------------------------ | |
locals { | |
tags = { |
This file contains 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
This file contains 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
openssl req -x509 -out localhost.crt -keyout localhost.key \ | |
-days 365 \ | |
-newkey rsa:2048 -nodes -sha256 \ | |
-subj '/CN=localhost' -extensions EXT -config <( \ | |
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") |
This file contains 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
#!/bin/sh | |
# open repository in browser | |
gh alias set --shell web \ | |
'gh repo view --web' | |
# get the current branch/PR infos | |
gh alias set --shell prinfo \ | |
'gh pr view --json title,number --template "\"$(printf "#%v"){{.number}}\" \"{{.title}}\""' |
This file contains 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
name: auto-merge | |
on: | |
pull_request_target: | |
branches: | |
- master | |
jobs: | |
auto-merge: | |
runs-on: ubuntu-latest |
This file contains 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
import { ReactElement } from 'react'; | |
import { ThemeProvider } from 'styled-components'; | |
import { render, RenderOptions } from '@testing-library/react'; | |
import theme from 'styles/theme'; | |
type CustomRenderProps = Omit<RenderOptions, 'queries'>; | |
const customRender = (ui: ReactElement, options: CustomRenderProps = {}) => | |
render(<ThemeProvider theme={theme}>{ui}</ThemeProvider>, options); |
This file contains 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:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/mauriciomutte/.oh-my-zsh" | |
ZSH_THEME="spaceship" | |
plugins=(git) |
This file contains 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
{ | |
"editor.suggestSelection": "first", | |
"editor.renderLineHighlight": "gutter", | |
"editor.tabSize": 2, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"[javascript]": { |