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
#!/usr/bin/env bash | |
K8S_VERSION=1.33 | |
echo "*** CHECK EKS ADDON SUPPORT VERSIONS ***" | |
echo Next Version: ${K8S_VERSION} | |
echo --- | |
echo CoreDNS | |
echo Current |
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
# https://cloud.google.com/functions/docs/first-python | |
from slack_bolt import App | |
from slack_bolt.adapter.google_cloud_functions import SlackRequestHandler | |
import functions_framework | |
import logging | |
import requests | |
import urllib.parse | |
logging.basicConfig(level=logging.DEBUG) |
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
name: matrix example | |
on: | |
push | |
jobs: | |
get_dirs: | |
runs-on: ubuntu-latest | |
outputs: | |
dirs: ${{ steps.changed-dirs.outputs.all_changed_files }} |
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
package audit | |
import ( | |
"fmt" | |
"os" | |
"reflect" | |
"time" | |
) | |
// Global Channel |
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
package main | |
// 書籍「Go言語による並行処理」teeチャネル | |
// linux tee commandのようにストリームを2つに分けて同じ値を飛ばす | |
func Tee(done <-chan struct{}, in <-chan interface{}) (<-chan interface{}, <-chan interface{}) { | |
out1 := make(chan interface{}) | |
out2 := make(chan interface{}) | |
go func() { | |
defer close(out1) |
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
# See: https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params | |
WEBHOOK_URL="YOUR_DISCORD_WEBHOOK" | |
curl \ | |
--request POST \ | |
--header "Content-Type: application/json" \ | |
--header "Accept: application/json" \ | |
--data "{ \"content\": \"test\" }" \ | |
${WEBHOOK_URL} |
- https://astherier.com/blog/2020/08/run-gui-apps-on-wsl2/
- https://shikiyura.com/2020/06/execute_systemctl_on_wsl2/
- microsoft/vscode-docker#1959
- docker loginの問題
- vim .docker/config.json から認証設定消す
- docker loginの問題
- https://seesaawiki.jp/w/kou1okada/d/20200622%3A%20WSL2%20-%20sshfs
- sshfs
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
# Ctrl-n Ctrl-p でスクロールをループさせる | |
export FZF_DEFAULT_OPTS='--cycle' |
NewerOlder