Getting rid of Putty – ssh history
for ((i=1; i<=5; i++)); do history -d $(history 1 | awk '{print $1}'); done
to get rid of the last 5 lines / commands
for ((i=1; i<=5; i++)); do history -d $(history 1 | awk '{print $1}'); done
to get rid of the last 5 lines / commands
We were promoting our codes with capital letters as a style choice But while the code “burhi” worked the code BURHİ did not because Turkish, “i” and “İ” are considered as different characters, and the lowercase of “İ” is “i”, not “ı”. T. The code should work for other international accented diacritic characters like umlauts
We added a loop grid and a taxonomy filter for our products but when clicked on any filter – product tag in our case – there was no results. Query monitor gave the error : Unknown column ‘t.term_order’ in ‘order clause’ But the default wp _terms table did not have a term_order column anyway. So…
As usual add this code to your functions.php Filtering only featured products comes in handy in several scenarios especially reordering them
We wanted to display product variations as selectable boxes rather than dropdown / select. So we needed to use a modified variable.php to modify the variations form accordingly under: /public_html/wp-content/themes/child-theme/woocommerce/single-product/add-to-cart/variable.php We thought a WC template file under child theme would work for sure in terms of hierarchy it should override wc default and the parent…
Why debug.log Files Matter Performance impact: Large log files can eat up disk space and slow down file operations. Backup bloat: If your backups include debug.log, they can become unnecessarily large. Security risk: Debug logs may contain sensitive paths, plugin names, or even database queries. If exposed publicly, attackers could use this information. Maintenance signal:…
You might need to calculate average amount of memory used by each Apache process for several reasons. One being deciding on MaxRequestWorkers . You can do it by running: ps -ylC httpd –sort:rss | awk ‘{x += $8;y += 1} END {print “Apache Memory Usage (MB): “x/1024; print “Average Process Size (MB): “x/((y-1)*1024)}’ Apache Memory…