General

一般的、あるいは未カテゴライズの技術カンペ等

Links

Crontab

  • ログファイルに日付をセットしたい
    • % 起動の前にエスケープする
  • 標準出力と標準エラーを別にしたい
#m h d m w
 * * * * * echo "test log" 1>> /tmp/app-`date '+\%F'`.log 2>> /tmp/app-`date '+\%F'`.log

Curl

curl で時間計測

Key Description
size_download The total amount of bytes that were downloaded.
time_connect The time, in seconds, it took from the start until the TCP connect to the remote host (or proxy) was completed.
time_namelookup The time, in seconds, it took from the start until the name resolving was completed.
time_pretransfer The time, in seconds, it took from the start until the file transfer was just about to begin. This includes all pre-transfer commands and negotiations that are specific to the particular protocol(s) involved.
time_starttransfer The time, in seconds, it took from the start until the first byte was just about to be transferred. This includes time_pretransfer and also the time the server needed to calculate the result.
time_total The total time, in seconds, that the full operation lasted. The time will be displayed with millisecond resolution.
curl -s -o /dev/null -w  "size_download:\t%{size_download}\ntime_connect:\t%{time_connect}\n _namelookup:\t%{time_namelookup}\n _pretransfer:\t%{time_pretransfer}\n _starttransfer:%{time_starttransfer}\n _total:\t%{time_total}\n" https://google.com/

Matterbridge

未検証

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)

GitHub - 42wim/matterbridge: bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)

GitHub - 42wim/matterbridge: bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, …


Typescript

Typescript関連のメモ

Python

Python 関連のメモ

Favicon 作成

Python 関連のメモ

GitHub Action で Docker マルチアーキテクチャ(x86_64 / arm64)ビルド

GitHub Action で Docker をマルチアーキテクチャ(x86_64 and arm64)でビルドし、それを Docker Hub へ公開するまでの一連のビルド設定

Stable Diffusion

Stable Diffusion 関連のメモ