mercari.go #4 https://mercari.connpass.com/event/105640/
- catatsuyというIDで各種SNS活動しています
- かたついって呼ばれています
- メルカリのSREチームで主にGoを書いています
- 前職はピクシブでpixivのHTTPS化・PHP7.1化・HTTP/2化や、広告サーバーの新機能追加など色々やっていました
mercari.go #4 https://mercari.connpass.com/event/105640/
9:00にオフィス(Sticky Fingers)
食料品は事前に用意しておく。食べ過ぎない。胃に負担をかけないようにする。
運営の櫛井さんからのメールに従って、サポートチャットと予選ポータルサイトにログインする。
2021-07-29T03:11:56.234169Z 0 [Note] [MY-010098] [Server] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled | |
2021-07-29T03:11:56.234218Z 0 [Note] [MY-010949] [Server] Basedir set to /usr/local/mysql/. | |
2021-07-29T03:11:56.234230Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.25) starting as process 1 | |
2021-07-29T03:11:56.436463Z 0 [Note] [MY-012366] [InnoDB] Using Linux native AIO | |
2021-07-29T03:11:56.436607Z 0 [Note] [MY-010747] [Server] Plugin 'FEDERATED' is disabled. | |
2021-07-29T03:11:56.438916Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. | |
2021-07-29T03:11:56.439002Z 1 [Note] [MY-013546] [InnoDB] Atomic write enabled | |
2021-07-29T03:11:56.439053Z 1 [Note] [MY-012932] [InnoDB] PUNCH HOLE support available | |
2021-07-29T03:11:56.439084Z 1 [Note] [MY-012944] [InnoDB] Uses event mutexes | |
2021-07-29T03:11:56.439112Z 1 [Note] [MY-012945] [InnoDB] GCC builtin __atomic_thread_fence() is used for memory barrier |
function _delegate() { | |
local cur subs | |
cur="${COMP_WORDS[COMP_CWORD]}" # partial word, if any | |
subs=$(envchain -l) | |
# echo "cword: $COMP_CWORD" | |
# echo "cw: ${COMP_WORDS[COMP_CWORD]}" | |
# echo "cl: ${COMP_LINE}, ccw: ${COMP_CWORD}, cp: ${COMP_POINT}, cw3: ${COMP_WORDS[2]}" | |
if [[ $COMP_CWORD == 1 ]]; then | |
# complete with the list of subcommands |
To use this script, set environment variables below:
AWS_ROLE_ARN=arn:aws:iam::XXX:role/XXX
AWS_ROLE_SESSION_NAME=a_role_accessed_from_cli
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
$ envchain -s minio AWS_ACCESS_KEY_ID | |
minio.AWS_ACCESS_KEY_ID: XXX | |
$ envchain -s minio AWS_SECRET_ACCESS_KEY | |
minio.AWS_SECRET_ACCESS_KEY: XXX | |
$ envchain minio docker run --rm -it -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY amazon/aws-cli --endpoint-url https://[MinIO Endpoint] s3 ls |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: wordpress | |
name: blog | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: |
# not used, copied function body into _delegate | |
function _executables { | |
local exclude=$(compgen -abkA function | sort) | |
local executables=$( | |
comm -23 <(compgen -c) <(echo $exclude) | |
type -tP $( comm -12 <(compgen -c) <(echo $exclude) ) | |
) | |
COMPREPLY=( $(compgen -W "$executables" -- ${COMP_WORDS[COMP_CWORD]}) ) | |
} |