memo.xight.org

日々のメモ

asdfからmiseに移行

Summary

各リポジトリの .tool-versions を .mise.toml に移行
venv 周りも自動的に activate してくれる。
各リポジトリ内でライブラリをインストールし直す必要あり。

Reference

mise-en-place - FAQs - How do I migrate from asdf?
https://mise.jdx.dev/faq.html#how-do-i-migrate-from-asdf

via

Developers IO - 2025-02-10 - 新たなMacをGetした際のおすすめ設定
https://dev.classmethod.jp/articles/mac-recommended-initial-settings/

Docker Desktopがマルウェア判定されて起動しない

Summary

Docker Desktopがマルウェア判定されて起動しない件の対策。

1. Docker Desktop 4.37.2をインストール (上書き)

2. Docker Systems Status Page のスクリプトを実行
#!/bin/bash

# Stop the docker services
echo "Stopping Docker..."
sudo pkill [dD]ocker

# Stop the vmnetd service
echo "Stopping com.docker.vmnetd service..."
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.vmnetd.plist

# Stop the socket service
echo "Stopping com.docker.socket service..."
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.socket.plist

# Remove vmnetd binary
echo "Removing com.docker.vmnetd binary..."
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd

# Remove socket binary
echo "Removing com.docker.socket binary..."
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket

# Install new binaries
echo "Install new binaries..."
sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/
sudo cp /Applications/Docker.app/Contents/MacOS/com.docker.socket /Library/PrivilegedHelperTools/


3. Docker Desktopを起動

Reference

Docker Systems Status Page
https://www.dockerstatus.com/

StylusからUser JS and CSSへ移行

Summary

StylusがChromeのManifest V3対応していないため、無効化される可能性がある。
類似の拡張機能 User JS and CSSに移行した。

Gmail Fixed Font Monospace

$font-family: "Osaka-Mono";
$font-size: 1em;
$line-height: 1.3;

textarea, .editable, pre, .a3s, .aiL {
	font-family: $font-family !important;
	font-size: $font-size !important;
	line-height: $line-height !important;
}

.a3s, .aiL {
	margin-top: 1px;
	margin-bottom: 1px;
}

font {
	font-family: $font-family !important;
}


Gmail Templates Menu Expander

.BA.J-N-Jz {
	text-overflow: unset !important;
	max-width: 100% !important;
}

.gh {
	max-width: 30% !important;
}


Reference

chromeウェブストア - User JavaScript and CSS
https://chromewebstore.google.com/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld

chromeウェブストア - Stylus
https://chromewebstore.google.com/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne

slylish - Gmail Fixed Font Monospace
https://userstyles.org/styles/165480/gmail-fixed-font-monospace-font-selectable

UserStyles.world - Gmail Templates Menu Expander
https://userstyles.world/style/2884/gmail-templates-menu-expander

Cato Networkが利用するIPアドレスの範囲

Summary

Cato Networksを利用している日本国内企業からのアクセスを許可するには、
以下、大阪と東京リージョンからのアクセス許可が必要。

# Osaka
140.82.207.0/24
150.195.210.0/24
150.195.211.0/24
150.195.212.0/24
202.75.243.0/24

# Tokyo
103.203.222.0/24
123.253.152.0/24
150.195.208.0/24
150.195.209.0/24
150.195.218.0/24
150.195.219.0/24

CSVファイル

https://support.catonetworks.com/hc/article_attachments/15675587976477

Reference

Cato Learning Center - Production PoP Guide
https://support.catonetworks.com/hc/en-us/articles/7784334332317-Production-PoP-Guide

ARIA Authoring Practices Guide (APG) - W3CによるWAI-ARIA を用いたUIのパターンと例

Summary

W3CによるWAI-ARIA を用いたUIのパターンと例
スクリーンリーダを考慮したアクセシブルなウェブコンテンツ制作のガイド

Reference

W3C - ARIA Authoring Practices Guide (APG) - Patterns
https://www.w3.org/WAI/ARIA/apg/patterns/

W3C - ARIA Authoring Practices Guide (APG) - Practices
https://www.w3.org/WAI/ARIA/apg/practices/

MSXplay - ブラウザのJavaScriptエンジンでPSG、SCC、OPLLをエミュレートする実験的なMSXサウンドプレイヤー

Summary

MSXplayは ブラウザのJavaScriptエンジンでPSG、SCC、OPLLをエミュレートする実験的なMSXサウンドプレイヤー。
Web Audio APIインタフェースを使用して、ブラウザ上で音楽を再生する。

Reference

MSXplay
https://msxplay.com/

GitHub - digital-sound-antiques/msxplay-js
https://github.com/digital-sound-antiques/msxplay-js

ビジネスメール詐欺の事例集

Summary

IPAが提供するビジネスメール詐欺の事例集。

同様被害の早期発見や、未然防止、啓発活動における事例紹介の一助として、セキュリティ上の取り組みの促進に繋げることに役立ててください。


Reference

IPA - 情報セキュリティ - ビジネスメール詐欺(BEC)対策 - ビジネスメール詐欺の事例集を見る
https://www.ipa.go.jp/security/bec/bec_cases.html

巡回連絡カード

Summary

「巡回連絡カード」の内容確認ということで、警察官2名がいらっしゃった。
巡回連絡カードの記載内容は、10年以上前のものだったので、更新することに。
新たな巡回連絡カードに内容を記載して、交番に持っていけば良いらしい。

Reference

弁護士ドットコム - 2023-04-16 - 警察の「巡回連絡カード」ってなに? 突然の訪問に「個人情報」の悪用うたがう声も
https://www.bengo4.com/c_18/n_15897/

Tera Termを使ってHTTP接続

Summary

Tera Termを使ってHTTP接続のデモを行いたい。

設定 - 端末 - 改行コード - 受信・送信とも CR+LF
設定 - 端末 - ローカルエコー にチェックを入れる
設定 - TCP/IP - 自動的にウィンドウを閉じる のチェックを外す。

ファイル - 新しい接続...
  ホスト名: example.com (接続先Webサーバ)
  TCPポート: 80
  サービス: Telnet

接続後

GET / HTTP/1.0
Host: example.com
<enter><enter>