-
Create feat/fix branches for each fix/enhancment/feature from
develop
branchgit checkout develop git pull origin develop git checkout -b feat/add-teachers
-
Commit message
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
cat <<EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: ssl | |
type: Opaque | |
data: | |
tls.crt: BASE64 ENDCODED CERTIFICATE CONTENT | |
tls.key: BASE64 ENCODED KEY CONTENT | |
ca.crt: BASE64 ENCODED ROOT CERTIFICATE CONTENT |
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
cat <<EOF | kubectl apply -f - | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
kubernetes.io/tls-acme: "false" | |
nginx.ingress.kubernetes.io/configuration-snippet: | | |
add_header 'access-control-expose-headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Search-Id' always; | |
nginx.ingress.kubernetes.io/cors-allow-credentials: "false" |
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
cat <<EOF | kubectl apply -f - | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "1" | |
generation: 1 | |
name: arc | |
spec: | |
selector: |
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
cat <<EOF | kubectl apply -f - | |
apiVersion: elasticsearch.k8s.elastic.co/v1beta1 | |
kind: Elasticsearch | |
metadata: | |
name: elasticsearch | |
spec: | |
version: 7.4.2 | |
nodeSets: | |
- name: masters | |
count: 1 |
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
// test input | |
let strArr = ["hello", "world"]; | |
strArr.reduce("+") | |
// babel tranform | |
export default function(babel) { | |
const { types: t } = babel; | |
return { | |
name: "string-reducer", |
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
## Install NGINX | |
## when installing on Amazon Linux AMI, use: | |
$ sudo yum install nginx -y | |
## when installing on Amazon Linux 2 AMI, use | |
$ sudo amazon-linux-extras install nginx1.12 -y | |
## Install PHP and PHP-FPM | |
# for PHP version 7.1 use php71 and php71-fpm instead | |
$ sudo yum install php -y | |
$ sudo yum install php-fpm -y |
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
const API = 'http://localhost:5000'; | |
//////////////////////// | |
// FilePreview.tsx | |
import React, { useState } from 'react'; | |
import { Icon, Modal, notification } from 'antd'; | |
interface IProps { | |
isLoading: boolean; |
docker run -d --name es7 -p 9700:9200 -p 9730:9300 -e "discovery.type=single-node" -e "http.host=0.0.0.0" -e "http.cors.enabled=true" -e "http.cors.allow-origin=*" -e "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization" -e "http.cors.allow-credentials=true" -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" elasticsearch:7.6.0
docker run -d --name es6 -p 9600:9200 -p 9630:9300 -e "discovery.type=single-node" -e "http.host=0.0.0.0" -e "http.cors.enabled=true" -e "http.cors.allow-origin=*" -e "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization" -e "http.cors.allow-credentials=true" -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" elasticsearch:6.7.0
- `docker run -d --name es5 -p 9500:9200 -p 9530:9300 -e "discovery.type=single-node" -e "http.host=0.0.0.0" -e "http.cors.enabled=true" -e "http.cors.allow-origin=*" -e "http.cors.allow-headers=X-Requested-With,X-Auth-Tok