Skip to content

Instantly share code, notes, and snippets.

@hytdsh
hytdsh / check-k6-cognito-not-done.md
Created September 6, 2024 05:32
check-k6-cognito-not-done
$ docker run --rm -it ubuntu:latest bash
root@78320631a485:/# cd ~

root@05e07354a801:~# apt-get update && apt-get install golang ca-certificates
root@05e07354a801:~# go install go.k6.io/xk6/cmd/xk6@latest
root@05e07354a801:~# /root/go/bin/xk6 build latest --with github.com/tmieulet/xk6-cognito
root@05e07354a801:~# ls -la
total 48744
drwx------ 1 root root 4096 Sep 6 05:28 .
@hytdsh
hytdsh / node-getting-started.md
Created September 6, 2024 05:03
Node Getting Started

こんだけ

$ docker run --rm -it node:lts bash

node@3f80fb74707d:~$ mkdir fuga
node@3f80fb74707d:~$ cd fuga
node@3f80fb74707d:~/fuga$ npm init -y
Wrote to /home/node/fuga/package.json:
@hytdsh
hytdsh / fgo-screenshot.md
Created August 4, 2024 15:22
FGO スクリーンショット

Screenshot_20240805-000208

@hytdsh
hytdsh / role-assigned-to-lambda.md
Created July 9, 2024 05:32
AWS Lambdaに割り当てるロールはロールを作る時にユースケースにLambdaを選べ

AWS Lambdaに割り当てるロールはロールを作る時にユースケースにLambdaを選べ

@hytdsh
hytdsh / show-log-with-journald.md
Created June 14, 2024 09:22
show-log-with-journald

hoge.service は docker compose などを実行するやつ。

sudo -u rootless journalctl --user -u hoge.service
@hytdsh
hytdsh / vscode-go-lang.md
Created January 14, 2024 13:44
VSCode Go lang
The "gopls" command is not available. Run "go install -v golang.org/x/tools/gopls@latest" to install.
Tools environment: GOPATH=/go
Installing 7 tools at /go/bin
  gopls
  gotests
 gomodifytags
@hytdsh
hytdsh / how-to-use-aws-ses.md
Last active December 6, 2023 07:02
AWS SESの使い方

SESでメールを送信する

1st step

「設定を始める」はいまいち使いづらいのでスキップする。

2nd step

「検証済みID」から始める。

@hytdsh
hytdsh / dind-rootless.md
Created October 9, 2023 09:01
dind and dind-rootless on Rootless Docker
rootless@rootless:~$ ls -l /var/run/user/1001/docker.sock
srw-rw---T 1 rootless 166532 0 Oct  9 17:55 /var/run/user/1001/docker.sock
rootless@rootless:~$ cat dind/compose.yml
version: "3"

services:
 dind:
@hytdsh
hytdsh / dind-rootfull.md
Last active October 9, 2023 08:04
dind and dind-rootless on Rootfull Docker
root@rootfull:~# pwd
/root
root@rootfull:~# ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 Oct  5 20:15 /var/run/docker.sock
root@rootfull:~# cat tmp/dind/compose.yml
version: "3"
@hytdsh
hytdsh / openint-docker-entrypoint.md
Created October 1, 2023 03:40
Open Interpreter を Docker の ENTRYPOINT に書く
$ cat Dockerfile
FROM debian:stable-slim

#
# as root
#
USER root
WORKDIR /root