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 "vpc" { | |
source = "terraform-aws-modules/vpc/aws" | |
version = "~> 4.0" | |
name = "${var.project} EKS VPC" | |
cidr = var.vpc_cidr | |
azs = var.azs | |
private_subnets = [for k, v in var.azs : cidrsubnet(var.vpc_cidr, 4, k)] | |
public_subnets = [for k, v in var.azs : cidrsubnet(var.vpc_cidr, 8, k + 48)] |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: my-app | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: my-app | |
template: |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-demo | |
namespace: demo-gateway | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: nginx-demo |
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
source ~/.zplug/init.zsh | |
export ZSH=/Users/Phathdt/.oh-my-zsh | |
export HOMEBREW_NO_AUTO_UPDATE=1 | |
source $ZSH/oh-my-zsh.sh | |
zplug "zplug/zplug", hook-build:'zplug --self-manage' | |
zplug "mdumitru/git-aliases" | |
zplug "zsh-users/zsh-autosuggestions" | |
zplug "zsh-users/zsh-syntax-highlighting" |
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
z.;A$\^C}5Dq!4jR |
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
defmodule OpolloBackgroundJob.Shopee.V2.PullingInRangeSKURatingTask do | |
require Logger | |
@delay_next_shop 15 | |
# "2021-11-05T00:00:00Z", "2021-11-0T00:00:00Z" | |
def perform(start_time, end_time) do | |
Logger.warn( | |
"---------- STARTING Shopee PullingInRangeSKURatingTask start_time = #{start_time} end_time = #{end_time} ----------" | |
) |
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
ErrClearCache = sdkcm.CustomError("ErrClearCache", "error when clear cache") | |
//org | |
ErrFindOrganization = sdkcm.CustomError("ErrFindOrganization", "error when find organization") | |
//app | |
ErrUpdateApp = sdkcm.CustomError("ErrUpdateApp", "error when update app") | |
ErrFindApp = sdkcm.CustomError("ErrFindApp", "error when find app") | |
//channel |
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
{ | |
"billing_address": { | |
"address_line_1": "27B Nguyễn Đình Chiểu", | |
"address_line_2": null, | |
"city": null, | |
"district": "Quận 1", | |
"email": "phat@onpoint.vn", | |
"first_name": "phat", | |
"last_name": "hoang", | |
"note": "gần cty", |
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: | |
zoo: | |
image: confluentinc/cp-zookeeper:7.0.1 | |
ports: | |
- "2181:2181" | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_SERVER_ID: 1 | |
ZOOKEEPER_SERVERS: zoo:2888:3888 |
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
package main | |
import ( | |
"crypto/sha256" | |
"encoding/hex" | |
"fmt" | |
"strings" | |
) | |
func main() { |
NewerOlder