Skip to content

Instantly share code, notes, and snippets.

@hytdsh
hytdsh / 10-japan.conf
Created January 7, 2026 06:38
10-japan.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans CJK JP</string>
</edit>
volumes:
open-webui:
services:
webui:
image: ghcr.io/open-webui/open-webui:main
environment:
OPENAI_API_KEY: "sk-proj-..."
ports:
- 3000:8080
@hytdsh
hytdsh / minimal-open-webui.md
Last active April 14, 2025 02:25
minimal-open-webui
volumes:
  open-webui:

services:
  webui:
    image: ghcr.io/open-webui/open-webui:main
    environment:
      OPENAI_API_KEY: "sk-12345"
 ports:
@hytdsh
hytdsh / github-pat.md
Last active November 26, 2024 08:34
github PAT

Githubでclassicなパーソナルアクセストークンを作成したところ、「project(read: project)」への権限付与だけではcloneできず、「repo(とrepo以下すべて)」にも権限を付与したところcloneができた。

https://github.com/settings/tokens

@hytdsh
hytdsh / vscode-markdown-pdf-footer.md
Created November 25, 2024 07:28
VSCode Markdown-PDF Footer
@hytdsh
hytdsh / google-clasp.md
Created October 23, 2024 04:37
google-clasp
$ ls
compose.yml  node-home

$ cat compose.yml
services:
  node:
    image: node:lts
    command: ["tail", "-f", "/dev/null"]
 user: node
@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