2025-01-01から1年間の記事一覧

php-fpm 複数プール nginx

geo $fpm_socket { default unix:/var/run/php-fpm/www.sock; 192.168.10.0/24 unix:/var/run/php-fpm/www2.sock; } server { ... location ~ \.php$ { fastcgi_pass $fpm_socket; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$f…

Synology firewall

DSM 7.1.1 /usr/syno/etc/firewall.dhttps://www.reddit.com/r/synology/comments/z5gwph/reset_firewall_settings/https://www.reddit.com/r/synology/comments/13f8j0w/task_scheduler_to_control_firewall/ $ sudo /usr/syno/bin/synofirewall --help Usa…

lenovo Windows11 24H2 キーボード不具合 高速スタートアップ

「ほしがた様」からの情報 ネットで調べたところ、Redditで以下の投稿を見つけました。 ※Windows11の高速スタートアップ機能を無効化することで本現象が回避できるとのことでした。 https://www.reddit.com/r/thinkpad/comments/1h6j62j/windows_11_24h2_key…

Android 16 アップデート APN設定

Pixel 6a Android 16 のアップデートでAPN設定が変更されてモバイル通信ができなくなった ネットワークとインターネット > SIM > アクセスポイント名 で修正

gunicorn uvicorn FastAPI

access_log format FastAPI gunicorn uvicorn access_log format customization - Stack Overflowhttps://github.com/fastapi/fastapi/issues/1508#issuecomment-638365277 logrotate /etc/logrotate.d/uvicorn-test { daily dateext rotate 30 missingok no…

centos 7 php 5.4 php 7.1 アップデート

CentOS7にPHPをインストールする(5.6/7.4/8.0/他) ~バージョンアップも対応 | トリオス yum list installed | grep php php.x86_64 5.4.16-48.el7 @base ... yum list installed | grep php | awk '{print $1}' | sed 's/\.x86_64//' | tr '\n' ' ' | xargs…

FreeBSD PHP 7.4 to PHP 8.4

upgrading PHP 7.4 to PHP 8 on FreeBSD – Michael W Lucas 2022 pkg info -x php | sed s/74/84/g | sed s/-7.4.32//g | sed s/_1//g > php84.pkg vi php84.pkg php84-json 削除 php84-openssl 削除 php84-pecl-imagick 修正 service php-fpm stop pkg remo…

opcache file cache

ファイルキャッシュのリセット → ファイル削除 opcache_reset() does not affect a file-based opcache at all and only restarts the shared-memory-based opcache.PHP :: Bug #77478 :: opcache_reset() does not reset an opcache.file_cache-based cache…

libstemmer library

http://snowball.tartarus.orghttp://snowball.tartarus.org/download.htmlhttp://snowball.tartarus.org/dist/libstemmer_c.tgz FreeBSD groonga で libstemmer を使う so作成用のMakefileを作成 fetch http://snowball.tartarus.org/dist/libstemmer_c.tgz…

svnadmin dump

$ svnadmin dump /var/svn/PROJECT_A | gzip > /tmp/svn_repository_PROJECT_A.dump.gz※ gzip圧縮しても元のサイズより大きくなった(1.2倍ぐらい)Subversionのリポジトリを別のサーバーに移行する手順 |

R410 E1000 Failsafe voltage error

PCIe fatal error on Bus 0 Device ...https://www.dell.com/community/en/conversations/poweredge-hardware-general/poweredge-r610-e171f-pcie-fatal-error-on-bus-0-device-1-function-0/647f8383f4ccf8a8de2537c2E1000 Failsafe voltage errorhttps://w…

mysql marked as crashed and should be repaired

mysqldump: Couldn't execute 'show create table `slow_log`': Table 'slow_log' is marked as crashed and should be repaired (1194)【MySQL】「Table ‘テーブル名’ is marked as crashed and should be repaired」というエラーに対処する – ラボラジアン…

tar file changed as we read it

tar czvf test.tar test.log --warning=no-file-changedtar の “file changed as we read it” エラーの回避方法 | キュア子の開発ブログ 2015 If the tar util see the file/folder changed it exits with error code "1", see http://www.gnu.org/software/…

bash set -eu

#!/bin/bash -eu set -e エラーがあったらシェルスクリプトをそこで打ち止めにしてくれる(exit 0以外が返るものがあったら止まるようになる)。 ... set -u 未定義の変数を使おうとしたときに打ち止めにしてくれる。 ... シェルスクリプトを書くときはset -…

DELL R630

SSD 相性問題 バックプレーン CSSD-S6L2TMGAX OK R630 8ベイモデル NG R630 10ベイモデル

smtpfeed

http://member.wide.ad.jp/wg/smtp/smtpfeed.html1.23: Feb.17,2015

php セッションファイルの gc

PHPのセッションファイルをcronでガベージコレクション | 自由とテクノロジーを愛す者のサイト 2017 0 0 * * * www find /tmp -type f -name 'sess_*' -mtime +1 -exec rm '{}' +

シェルスクリプト slack にメッセージ送信

https://gist.github.com/kurita0/f9c7e5006a7888ad9a5cf26c42d0ced6 export SLACK_CHANNEL="#sandbox" export SLACK_USERNAME="user" export SLACK_ICON_EMOJI=":smile:" send_slack.sh 'test message' 参考 https://gist.github.com/gdoumergue/b8bb2a3faa…

smtp-relay.gmail.com HELO (EHLO)

プリンタ、スキャナ、アプリからのメール送信 - Google Workspace 管理者 ヘルプhttps://www.rtpro.yamaha.co.jp/RT/docs/lua/rt_api.html#rt_mailEHLO (smtp_address) になってる?smtp-relay.gmail.com $ telnet smtp-relay.gmail.com 587 Trying 108.177.…

Microsoft Bluetooth Mobile Mouse 3600 後継 マウス

Microsoft Bluetooth Mobile Mouse 3600の後継機を!!|Double-K 2024M550Amazon.co.jp: 【Amazon.co.jp限定】 Logicool ロジクール Signature M550MBKs ワイヤレスマウス 静音 Bluetooth レギュラー ブラック 無線 Logi Bolt Unifying非対応 windows mac i…

osx emacs

https://github.com/railwaycat/homebrew-emacsmacport に更新 GNU Emacs 30.1 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.65 Version 12.7.6 (Build 21H1320)) ↓ GNU Emacs 29.4 (build 1, aarch64-apple-darwin23.6.0, Carbon Version 170 App…

Mac 1passwordアプリ 遅い

1passwordアプリが遅いので調査 A little off-the-wall question. Have you recently bought a new Mac and or used Time Machine or Migration Assistant for a transfer or restore? I've seen folks describe this slowdown in such situations, and repl…

DELL 13G メモリ

R630(R430)RDIMM R330 UDIMM R630とR330でメモリ互換性がない R630にUDIMMを装着するとConfiguring Memoryで止まった 起動時の BIOS/UEFI 画面で "Configuring Memory ...." で止る サポートされていないメモリを使用している可能性があります。 T630 は R…

python linter formatter

sudo pkg install pylint-py311 pylint test.py sudo pkg install py311-black black test.py 1. pylint: 強力な静的解析ツール 2. black: 意見の余地なしの自動フォーマッタ Pythonのコード品質向上: pylint, black, isortを使った自動コード整形と静的解析…

bind9 too many records CVE-2024-1737

https://kb.isc.org/docs/cve-2024-1737 error adding 'foo.example.com/A' in './IN' (cache): too many records (must not exceed 100)foo.example.com のAレコードが100以上登録されている場合にエラーhttps://kb.isc.org/docs/rrset-limits-in-zones max…

bind Name huawei.com (SOA) not subdomain of zone cloud.huawei.com -- invalid response

Issue: Name huawei.com (SOA) not subdomain of zone cloud.huawei.com -- invalid response 2023

pkg-config

https://www.freedesktop.org/wiki/Software/pkg-config/https://distfiles.dereferenced.org/pkgconf/https://ja.wikipedia.org/wiki/Pkg-configpkg-config はすごい - あかり描像のブログ 2023 setenv PKG_CONFIG_PATH "/usr/local/gcc11/lib/pkgconfig" /…

FreeBSD 11.0 bind 9.18 ソースコンパイル

bind-9.18.37 bind-9.20.9https://www.isc.org/download/ 必須要件 ❌ Unsupported platforms These are platforms on which BIND is known not to build or run: Platforms without at least OpenSSL 1.0.2 Windows Server (any version) Platforms that don…

ngaios マクロ

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/macros.htmlhttps://nagios.fm4dd.com/docs/jp/customobjectvars.htmlカスタム変数で _WEBHOOKURL を定義 define contact { ... service_notification_commands notify-service-by-dis…

mysql 監視

munin The minimum required privileges of the munin database user is: GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'munin'@'localhost';https://gallery.munin-monitoring.org/plugins/munin/mysql_/ PROCESS プロセス表示する権限 REPLICATION CLIENT…