Monthly archives: June, 2019

Find /list all files bigger than 5MB and delete them in command line for linux/mac

find . -type f -size +3000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ ./Uploads/Page-Photos/About-Us/9653a21167/DSCN1703.JPG: 3.3M ./Uploads/103eca7540/tori.jpg: 4.4M ./Uploads/845d819c4d/FCU-157_master.jpg: 4.1M ./Uploads/PDF-Forms/Annual-Reports/fe6ddf67be/First-Credit-Union-Annual-Report-2015.pdf: 19M ./Uploads/PDF-Forms/Annual-Reports/802f311485/First-Credit-Union-Annual-Report-2018.pdf: 3.0M   $ find . -type f -size +3000k -exec ls -lh {} \; -rw-r–r– 1 xx staff 6.3M 4 Jun 09:21 ./Images/Promotions/eace8a9a35/Staff-1.jpg -rw-r–r– 1 xx …

Run/install compser update/install in a shared hosting space/server

First run these commands to download and install composer: cd ~ mkdir bin mkdir bin/composer curl -sS https://getcomposer.org/installer | php mv composer.phar bin/composer Determine the location of your php-cli (needed later on): which php-cli (If the above fails, use¬†which php) It should return the path, such as /usr/bin/php-cli, /usr/php/54/usr/bin/php-cli, etc. edit ~/.bashrc and make sure …