Install Brew on MacOS:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install htop:
brew install htop
Install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
Install Brew on MacOS:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install htop:
brew install htop
Install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
| git branch --merged | grep -v "^\*\\|main" | xargs -n 1 git branch -d |
| provider "aws" { | |
| region = "us-east-1" | |
| } | |
| # ------------------------------------------------------------------------------------ | |
| # VARIABLES | |
| # ------------------------------------------------------------------------------------ | |
| locals { | |
| tags = { |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) |
| 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") |
| #!/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}}\""' |
| name: auto-merge | |
| on: | |
| pull_request_target: | |
| branches: | |
| - master | |
| jobs: | |
| auto-merge: | |
| runs-on: ubuntu-latest |
| 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); |
| # 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" | |
| ### ------------------- | |
| ### Android SDK | |
| # export ANDROID_HOME=$HOME/Library/Android/sdk | |
| # export PATH=$PATH:$ANDROID_HOME/emulator |
| { | |
| "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]": { |