Skip to content

Instantly share code, notes, and snippets.

Likely coding something

Matias Saggiorato msaggiorato

Likely coding something
  • Argentina
Block or report user

Report or block msaggiorato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
## Move to home directory
cd $HOME
### Install Composer
EXPECTED_SIGNATURE="$(php -r "echo file_get_contents('');")"
php -r "copy('', '$EXPECTED_SIGNATURE.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', '$EXPECTED_SIGNATURE.php');")"
View gist:42ed2ffe9a57d6b03748
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
echo ':: Setting up SWAP'
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
You can’t perform that action at this time.