I would like to run ab test on my website on MacOS Upgrade OpenSSL in MacOS
How to remove outdated installed versions of Homebrew packages in MacOS?
The cleanup (brew cleanup) command will remove outdated installed package versions. To affect a particular package/formula, you may supply a formula name like so: brew cleanup $FORMULA. brew cleanup only cleans outdated package versions if you have the newest version installed, so first brew upgrade then brew cleanup It saved me 5GB at /usr/local/
Understanding fastcgi_cache_path, levels, keys_zone, max_size, inactive, use_temp_path
A note for myself to exaplain fastcgi_cache_path, levels, keys_zone, max_size, inactive, use_temp_path As documentation said, nginx will keep all active keys and information about data are stored in a shared memory zone, whose name and size are configured by the keys_zone parameter. As a matter of completeness, lets break down per part /var/cache/nginx is the place where the actual cache stored. Inside the Continue reading “Understanding fastcgi_cache_path, levels, keys_zone, max_size, inactive, use_temp_path”
Create Database and User in MySQL or MariaDB in shell
I write this because just a note or cheatsheet for me to copy and paste from here to make my life easier. Every time when migrate website from one server to one server, I need to recreate the user and database before insert back to the new host.
How to empty and refresh Bitnami in MacOS in terminal shell?
17 Ways to Using ‘find’ to return filenames without extension in Linux
I found many ways to return the almost same results. I just note down here as my cheatsheet to use next time.
How to update php cli in DirectAdmin
Check the current version PHP CLI version in shell From the official DirectAdmin help page ,https://help.directadmin.com/item.php?id=2094 the way to install multiple version of PHP in the machine. Set the php1_release to the version The version to set as the php1_release will be the version in CLI You may modify the /usr/local/directadmin/custombuild/options.conf Re-compile all the PHP Continue reading “How to update php cli in DirectAdmin”
How to update docker datetime and timezone in Discourse
I found that the date inside docker is different with the host machine. You can check the date by using this way. Solution to update the date Now the date is correct
mount: wrong fs type, bad option, bad superblock on CentOS 7
When you are mounting your nfs in CentOS, and this error appeared Reason for error You do not have NFS util in your machine Solution
ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction)
I’m trying to insert new row by using the import function from discourse, create_categories. It throw me this error. What cause this error appear ? I’m using this way to restore the docker data for keep testing on importing Full error message from console Solution In many cases, it should be corrupted in PostgreSQL database, Continue reading “ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction)”
