[alias]
st = status
co = commit
logone = log --oneline
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
ck = checkout
copy = checkout -b
br = branch
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
module.exports = { | |
env: { | |
browser: true, | |
es6: true, | |
jest: true, | |
}, | |
extends: [ | |
'react-app', | |
'airbnb', | |
'plugin:@typescript-eslint/recommended', |
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 React, { Component } from "react"; | |
import "./template/dependencies"; | |
class App extends Component { | |
render() { | |
return ( | |
<body className="hold-transition login-page"> | |
<div className="login-box"> | |
<div className="login-logo"> | |
<a href="../../index2.html"> |
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 Reactotron from 'reactotron-react-js'; | |
import { reactotronRedux } from 'reactotron-redux'; | |
import sagaPlugin from 'reactotron-redux-saga'; | |
if (process.env.NODE_ENV === 'development') { | |
const tron = Reactotron.configure() | |
.use(reactotronRedux()) | |
.use(sagaPlugin()) | |
.connect(); |
Restore
docker exec -i <postgres_container_name> pg_restore --clean --no-acl --no-owner -U postgres -d <database_name> < <path where the database is>
Dump
docker exec -t <postgres_container_name> pg_dump -U postgres -F t <database_name> > dump_`date +%d-%m-%Y"_"%H_%M_%S`.dump
code --list-extensions | xargs -L 1 echo code --install-extension
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
version: '3.7' | |
services: | |
postgres: | |
image: postgres:10.10-alpine | |
container_name: postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- ./postgres-data:/var/lib/postgresql/data |
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
version: '3.7' | |
services: | |
postgres: | |
image: postgres:10.10-alpine | |
container_name: postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- ./postgres-data:/var/lib/postgresql/data |
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
module.exports = { | |
parser: '@typescript-eslint/parser', | |
env: { | |
es6: true, | |
node: true | |
}, | |
plugins: ['@typescript-eslint'], | |
extends: [ | |
'plugin:@typescript-eslint/recommended', | |
'prettier/@typescript-eslint', |
NewerOlder