Remove /tmp/ cronjob
5 0 * * * /bin/find /tmp/ -type f -print0 | xargs -0 rm
OpenCart is one of the simplest e-commerce platforms to build an online store. OpenCart offers you an ‘easy-to-work-with’ code-base with which you can get an e-Commerce site online, quickly. If you are looking for a safe way to move OpenCart website from one domain to another, follow the process below. Here are the steps to…
Dump Dumping from a remote database Restore or in one line mysql -u username -p db_name < /path/to/table_name.sql Dump and restore a single table from a compressed (.sql.gz) format Dump Restore
Often time, you may need to know which file contains large file size, and delete it to save space. Here’s a code pattern to show you how to find large file size on Linux : 1. File size >= 100MB Find all files that have a size >= 100MB, from root folder and its sub-directories….
Listing sizes in AWS S3 Buckets Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ –recursive –human-readable –summarize | tail -n2 Tail is used because otherwise all files will be printed on screen (but you may want that for some reason). Getting the size of a specific directory/file You just need to add the path…
Method-1: First Check the Timezone in Settings > Store. Make sure you set to UTC. If you need to change it back you can in the SQL table “oc_setting” column “key” value “config_timezone” in the “value” column change it back to “UTC” UPDATE oc_setting SET value=’UTC’ WHERE key = ‘config_timezone’; If still issue, follow below method. Method-2: You…
In this guide, we will integrate the Google reCAPTCHA in the PHP contact form. Utilizing this Google reCAPTCHA code, we can validate the human users and protect the form of submission from bots. Integrating Google reCAPTCHA is recommended because It is an effective and efficient way of validating the user against bots. As we know…