This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update the box | |
sudo yum update -y | |
sudo yum clean all | |
# fill the empty spaces with zeroes | |
sudo dd if=/dev/zero of=/boot/EMPTY bs=1M | |
sudo rm -f /boot/EMPTY | |
sudo dd if=/dev/zero of=/EMPTY bs=1M | |
sudo rm -f /EMPTY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Matt Korostoff <[email protected]> | |
* | |
* @copyright Licensed under the GNU General Public License as published by the Free | |
* Software Foundation, either version 3 of the License, or (at your option) | |
* any later version. http://www.gnu.org/licenses/ | |
* | |
* @usage php path/to/this/file.php 'http://example.com' | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Create an executable phar | |
# Name of our archive. | |
$phar = new Phar("myscript.phar"); | |
# Have to do buffering to make things executable. | |
# See http://stackoverflow.com/questions/11082337/how-to-make-an-executable-phar | |
$phar->startBuffering(); |