docker network create -d bridge mybridge
docker run --rm --network=mybridge -p=6379:6379 --name=redis redis:3-alpine
docker run --rm --network=mybridge -it -p=443:443 --name=version-frontend version-frontend
syntax on | |
"set background=dark | |
let g:solarized_termcolors=256 | |
let g:solarized_contrast="high" | |
colorscheme solarized8 | |
set termguicolors | |
set ruler " show the line number on the bar | |
set more " use more prompt | |
set autoread " watch for file changes |
ssh-keygen -l -E md5 -f ~/.ssh/id_rsa |
[push] | |
default = simple | |
[alias] | |
co = checkout | |
st = status | |
br = branch | |
c = commit | |
hist = log --oneline --graph --decorate --all | |
unstage = reset HEAD -- | |
[pull] |
Sat Aug 8 10:20:59 UTC 2020 |
aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com |
execute pathogen#infect() | |
syntax on | |
set background=dark | |
let g:solarized_termcolors=256 | |
let g:solarized_contrast="high" | |
colorscheme solarized | |
call togglebg#map("<F5>") | |
set ruler " show the line number on the bar | |
set more " use more prompt |
-- List roles | |
SELECT rolname FROM pg_roles; | |
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; |
// How to clear the state of the current component | |
// (set all state properties to undefined) | |
let clearerObject = Object.keys(this.state).reduce((prev, k) => { | |
prev[k] = undefined; | |
return prev | |
}, {}); | |
this.setState({ | |
...clearerObject |
docker rmi $(docker images | grep \<none | awk '{print $3}') |