Source: StackOverflow
With a Linux Guest run this:
sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile
#!/bin/bash | |
# clean all temporaty files of a laravel application | |
# place this file at the root of the project and make it executable | |
php artisan cache:clear | |
php artisan view:clear | |
php artisan route:clear | |
php artisan clear-compiled | |
php artisan config:cache |
cat <<EOF >> /etc/apt/sources.list | |
deb [trusted=yes] http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ precise main restricted universe | |
deb [trusted=yes] http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe | |
deb [allow-insecure=yes] http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | |
EOF | |
apt-get update | |
apt-get purge \ | |
apache2 \ |
#!/bin/bash | |
# Log the time of the job | |
echo $(date -I'seconds') >>/home/ec2-user/certbot-renew.log 2>&1 | |
# Run renewal command | |
certbot renew --no-self-upgrade >>/home/ec2-user/certbot-renew.log 2>&1 | |
echo >>/home/ec2-user/certbot-renew.log 2>&1 | |
echo >>/home/ec2-user/certbot-renew.log 2>&1 |
Source: StackOverflow
With a Linux Guest run this:
sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile