tag:qiita.com,2005:/Sho2010@github/feed
Sho2010@githubの記事 - Qiita
QiitaでユーザーSho2010@githubによる最近の記事
2020-03-24T17:43:48+09:00
https://qiita.com/Sho2010@github
tag:qiita.com,2005:PublicArticle/1191618
2020-03-24T17:43:48+09:00
2020-03-24T17:43:48+09:00
https://qiita.com/Sho2010@github/items/85aed28307a7ef7d9dba
MarshalJSONで任意の変数をJSON keyに使いたい
struct tagだけでは多分無理なのでjson.Marshaler interfaceを自前で実装してやる。
package main
import (
"encoding/json"
"fmt…
Sho2010@github
tag:qiita.com,2005:PublicArticle/1178478
2020-03-04T17:49:34+09:00
2020-03-04T17:49:34+09:00
https://qiita.com/Sho2010@github/items/cafd1456d8d67f6dd3da
AWS Session Managerでinstance idをいちいち調べるのがだるい
aws ssm start-session は大変に便利なんだけど instance idをいちいち調べるのがだるい
サーバの名前からpecoで選んで繋げるようにする
#!/bin/bash
# 必…
Sho2010@github
tag:qiita.com,2005:PublicArticle/1007005
2019-08-28T16:10:02+09:00
2019-08-28T16:10:02+09:00
https://qiita.com/Sho2010@github/items/6d9dbadd2b17ffcb9b42
k8s環境変数 envとenvFromの上書き優先度
常にenvが優先
一年に一回くらい忘れて調べてるからいい加減メモっておく
https://kubernetes.io/docs/reference/generated/kubernetes-api/…
Sho2010@github
tag:qiita.com,2005:PublicArticle/844903
2019-03-29T16:57:47+09:00
2019-03-29T16:57:47+09:00
https://qiita.com/Sho2010@github/items/3edfa7c480055342e4fa
zshでctrl+pをcursor↑と同じ動作にする
arrow upは up-line-or-beginning-search というwidgetで動いてるのでbindkeyで上書きする
bindkey '^p' up-line-or-beginni…
Sho2010@github