MacOS

Homebrew Failed to install Homebrew Portable Ruby (and your system version is too old)! 1 2 brew update-reset brew upgrade Clean 1 2 brew autoremove brew cleanup

Git

Issues use http 1 git config --global http.version HTTP/1.1 PR workflow Usage upstream 1 2 3 4 5 git remote add upstream XXX.git git fetch upstream git checkout master git merge upstream/master delete branch 1 2 git branch -D NAME git push origin -d NAME diff & patch 1 2 git diff > ../xxx.patch patch -p1 < ../xxx.patch

Pali

Pali Chanting 课诵本.pdf Week 1 Monday Dhammacakkappavattanasuttaṁ with Good Wishes+早晨省思文.mp3 Tuesday Anattalakkh

Nginx

Increase file size upload 1 2 3 server { client_max_body_size 256M; } Logging to nginx 1 2 access_log syslog:server=unix:/dev/log,tag=WWW_CHANGE_ME_ORG,nohostname,severity=info combined; error_log syslog:server=unix:/dev/log,tag=WWW_CHANGE_ME_ORG,nohostname,severity=error; Setup certbot instructions 1 2 3 sudo nginx -t sudo snap install --classic certbot sudo sudo certbot --nginx

Php

Increase file size upload(/etc/php/8.2/fpm/php.ini) 1 2 upload_max_filesize = 128M post_max_size = 128M Testing 1 2 3 4 5 6 7 sudo apt-get install libfcgi0ldbl SCRIPT_NAME=/custom.php \ SCRIPT_FILENAME=/custom.php \ QUERY_STRING=VAR1 \ DOCUMENT_ROOT=/var/www/example.com/htdocs/ \ REQUEST_METHOD=GET \ cgi-fcgi -bind -connect 127.0.0.1:9000 Issues FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream 1 2 3 4 5 location ~ \.php$ { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; }