yum remove -y docker docker-common docker-selinux docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce-17.12.0.ce
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
kubectl create serviceaccount --namespace kube-system tiller | |
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' |
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
stale_while_revalidate_seconds = settings.FRONTEND_CACHE_TIMEOUT / 2 | |
three_days_in_seconds = 60 * 60 * 24 * 3 | |
extra_cache_control_headers = { | |
'stale-while-revalidate=%s' % stale_while_revalidate_seconds, | |
'stale-if-error=%s' % three_days_in_seconds, | |
} | |
patch_cache_control(response, **extra_cache_control_headers) |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
hypercwd: { | |
initialWorkingDirectory: '~/code' | |
}, |
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
{"lastUpload":"2020-01-21T08:02:59.871Z","extensionVersion":"v3.4.3"} |
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
# =============================== | |
# = DATA SOURCE | |
# =============================== | |
# Set here configurations for the database connection | |
spring.datasource.url=jdbc:postgresql://localhost:5432/springbootdb | |
spring.datasource.username=postgres | |
spring.datasource.password=postgres@123 | |
spring.datasource.driver-class-name=org.postgresql.Driver | |
# Keep the connection alive if idle for a long time (needed in production) | |
spring.datasource.testWhileIdle=true |
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
gistup |
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
" Setup vim-plug -----------------------------------------------------------{{{ | |
" Declare Plugin system Config | |
call plug#begin('~/.local/share/nvim/plugged') | |
" UI enhance | |
Plug 'Yggdroot/indentLine' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'itchyny/lightline.vim' |
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
git branch | grep feature/ | while read feature | |
do | |
git branch -D $feature | |
done |
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
[wagtaildemo wagtaildemo]$ python manage.py ref_applications_1 | |
<AuthConfig: auth> | |
<class 'django.contrib.auth.models.Permission'> | |
<class 'django.contrib.auth.models.Group'> | |
<class 'django.contrib.auth.models.User'> | |
<ContentTypesConfig: contenttypes> | |
<class 'django.contrib.contenttypes.models.ContentType'> | |
<SessionsConfig: sessions> | |
<class 'django.contrib.sessions.models.Session'> | |
<MessagesConfig: messages> |