pgbouncer pool_mode

pool_mode=session (default) pool_mode=transaction For new applications, consider designing with transaction mode in mind from the start.https://novemberde.github.io/post/2024/10/21/postgres-connection-mode-session-mode/ https://www.pgbounc…

pwd_mkdb

まとめ 旧マシンから、同じOS の新マシンにアカウント情報を移行する手順は、旧マシンの /etc/master.passwd から必要な行をコピーする。 新マシンの /etc/master.passwd にコピーする。 pwd_mkdb -p /etc/master.passwd を発行する。FreeBSD 10.2: 環境移行…

nginx deny return

location ~ /\.ht { deny all; }nginx-error.log に記録される 2026/02/27 15:01:35 [error] 36622#101142: *89470002 access forbidden by rule, client: 127.0.0.1, server: www.example.com, request: "GET /.htaccess HTTP/2.0", host: "www.example.com…

nginx map

If the source value matches more than one of the specified variants, e.g. both a mask and a regular expression match, the first matching variant will be chosen, in the following order of priority: string value without a mask longest string…

EGIHosting

EGIHosting172.120.0.0/15 172.252.0.0/16ASN6939 - HURRICANE - Hurricane Electric LLC 18779 - EGIHOSTING - EGIHosting

rsyncd.conf

設定例 ファイルのリストから共有する /etc/rsyncd.conf ... # Needed when crossing filesystem boundaries. #use chroot = no read only = yes ... [sync] path = / # List of files to copy. include from = /backup.list # Exclude the rest. exclude = …

sendmail confMAX_MESSAGE_SIZE

define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') define(`confMAX_MESSAGE_SIZE',`31457280')dnl MAILER(local) MAILER(smtp) note. [message maximum size](http://hiredavidbank.com/prac-send.html) is set to 30MB, change accordingly e.g.…

mailutils

/usr/bin/mail Mail version 8.1 6/6/93. Type ? for help. ...mailutils をインストールした場合、シェルスクリプトで mail コマンドでメール送信するときはフルパス指定する(と使うバイナリを間違わない) pkg install mailutils /usr/local/bin/mail --v…

fml4 perl 5.42

perl-5.32上でfml4を動作させる。ついでにWebUIを設定する。(再投稿) | くさのまの部屋ブログ 2025https://perldoc.jp/docs/perl/5.30.0/perl5300delta.pod$* と $# は致命的エラーになりました→ コメントアウト env RECOMMEND=yes perl makefml install h…

CSP default-src

default-srcがすべてのフェッチディレクティブのフォールバック先です。 コンテンツセキュリティポリシー(CSP)ディレクティブまとめ #Security - Qiita 2021 例えばナビゲーションディレクティブ frame-ancestors のフォールバック先にはならない。default-s…

sendmail MTA MSP

MTA (Mail Transfer Agent) sendmail.cf sendmail_enable="YES" service sendmail status sendmail is running as pid 42754. sendmail_msp_queue is running as pid 42767.mqueue sudo mailq /var/spool/mqueue (1 request) MSP (Mail Submission Program) …

CSP レポート Reporting-Endpoints ヘッダ

ブラウザで何が起こっているのかを知る Reporting API と ReportingObserver | blog.jxck.io 2020Report-To header は Deprecated Warning: This header has been replaced by the Reporting-Endpoints HTTP response header. It is a deprecated part of an…

NetApp SAS 520byte sector

NetApp の HDD(SAS/520byteセクタ) をフォーマットして使えるようにしたい! - Eriane ver 0.8.3 2020 # sg_scan -i # sg_format --format --size=512 -v /dev/sg3シリアルは取得できないhttps://www.reddit.com/r/homelab/comments/1i2vnoe/formatting_guide…

backtick

$() is POSIX and supported by all modern Bourne shells, e.g. ksh, bash, ash, dash, zsh, busybox, you name it. (A not so modern one is Solaris /bin/sh, but on Solaris you would make sure to use the modern /usr/xpg4/bin/sh instead). – Jens C…

smartctl smart データベースの更新

smart データベースの更新 smartデータベースを更新するには、update-smart-drivedb コマンドを実行します。 # update-smart-drivedb /usr/share/smartmontools/drivedb.h updated from branches/RELEASE_7_2_DRIVEDBSSDの寿命を確認する 2025 Device is: No…

vm-bhyve 複数データストア

データストアを追加する vm datastore addコマンドで、vm_dirとは別のVMストレージ置き場を追加する事ができる。 ... 追加したデータストアを使う時は、vm createの-dオプションで指定するhttps://nofu.jp/wiki/freebsd/bhyve/freebsd_11.1r_use_vm-bhyve#%E…

FreeBSD local_unbound

https://forums.freebsd.org/threads/unbound-adding-forward-zones.58533/local_unbound 起動時に /etc/unbound/ の内容で /var/unbound/ が上書きされる

Synology HDD制限 回避 DSM 7.2

https://www.reddit.com/r/synology/comments/1lswalp/hack_to_bypass_hdd_compatibility_for_fresh_install/ Setting up a new 2025 or later plus model with only unverified HDDs in DSM 7.2.2Credit to Alex_of_Chaos on redditDSM won't install on a …

nginx csp パスでcspを変更する

http context: map $request_uri $csp_header { default "default-src 'self' ; script-src 'self' ; style-src 'self' 'unsafe-inline' ; img-src * 'self' data: ; font-src 'self' ; media-src * 'self' ; form-action 'self'"; "~^/special" "default-sr…

AIクローラのUA

Geminiのボットは?と気になる方がいるかもしれませんが、Geminiの場合、Robots.txtのブロックでは「Google-Extended」に対しての指示に従いますが、実際にGoogle-Extendedを含むUser-Agent文字列でサイトにアクセスが発生する訳ではないようで、LLM用のクロ…

sudo認証 pam_ssh_agent_auth ssh-agent

Many systems are configured with NOPASSWD in sudo. This is poor security, all an attacker needs is the context of the user. You'd do well to remove all NOPASSWD: strings from your sudo configuration (use sudo visudo and don't forget sudoer…

PgBouncer ソースコンパイル

https://www.pgbouncer.orghttps://www.pgbouncer.org/install.html Hint: I have no idea if the installation step for Pandoc is needed or not. If you get errors with Pandoc, don’t pull pgbouncer from Git, but download a release from https://gi…

recvspace RWIN

デフォルト (FreeBSD 12.1, 14.3)kern.ipc.maxsockbuf: 2097152 net.inet.tcp.rfc1323: 1 net.inet.tcp.sendspace: 32768 net.inet.tcp.recvspace: 6553665536 64Kx8kern.ipc.maxsockbuf=16777216 net.inet.tcp.sendspace=262144 net.inet.tcp.recvspace=524…

Synology DSM 7.3 サードパーティ HDD

https://kb.synology.com/ja-jp/DSM/tutorial/Drive_compatibility_policies UPDATE 7 Oct 2025DSM 7.3 has removed the many of the restrictions that were in DSM 7.2.2 for 2025 Plus models.See https://kb.synology.com/en-global/DSM/tutorial/Drive_…

smartctl megaraid

PD 物理ディスクとの対応 man smartctl ... megaraid,N - [Linux only] the device consists of one or more SCSI/SAS disks connected to a MegaRAID controller. The non-negative integer N (in the range of 0 to 127 inclusive) denotes which disk on …

bhyve Debian 13 Trixie

https://forums.freebsd.org/threads/debian-13-0-0-guest-via-bhyve-unable-to-get-grub-working.98915/grubで起動しない → uefi /zroot/vm/debian13-test/debian13-test.conf loader="uefi"vm iso https://cdimage.debian.org/debian-cd/current/amd64/iso…

mdrv= パラメータ

.htaccess RewriteEngine On RewriteCond %{QUERY_STRING} ^mdrv= RewriteRule ^ - [F,L]https://stackoverflow.com/questions/71386719/block-visits-that-uses-a-strange-parameter-mdrv This request illustrates a client accessing the specified IP ad…

Googleフォト Amazon Photos

GoogleフォトからAmazon Photosへ – 写真移行とデータ削除の全手順 - ビューローみかみ 2025Amazon Photos 上で写真を削除しても端末の写真が削除されない

Googleスプレッドシート セルへの日本語入力 確定とともに勝手に改行

そうなってくると、現状では Safariとスプレットシート間の問題になってきますね。 たしかに Safari では日本語を確定すると、セル内で改行されますね。 でも実際には改行されない状況になります。こちらを改善するためには、次の操作をしてください。 ただ…

lsyncd exclude

rsyncの除外パターンをモデルとしてるが簡易版 Exclusion rules are modeled after rsync’s exclusion patterns but are a bit simpler. Lsyncd supports these features: Generally if any segment of the pathname (see below Layer 3) of an event matche…