April 2020

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/

How to remove outdated installed versions of Homebrew packages in MacOS? Read More »

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

Understanding fastcgi_cache_path, levels, keys_zone, max_size, inactive, use_temp_path Read More »

How to empty and refresh Bitnami in MacOS in terminal shell?

I found a safe way to start Bitnami like a clean copy, without remove your old copy. Make sure you close and exit your Bitnami App in MacOS. First change to the directory of Bitnami. Justins-MacBook-Pro:~ juzhax$ cd ~/.bitnami/ Justins-MacBook-Pro:.bitnami juzhax$ ls -la total 32 drwxr-xr-x 6 juzhax staff 192 Mar 21 20:09 . drwxr-xr-x@ 123 juzhax staff 3936 Apr 16 19:57 .. -rw-r–r–@ 1 juzhax staff 6148 Apr 27 11:49 .DS_Store -rw-r–r–@ 1 juzhax staff 1489 Mar 20 21:10 metadata-bit.json -rw-r-[…]

How to empty and refresh Bitnami in MacOS in terminal shell? Read More »

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,

ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction) Read More »