Skip to content

Instantly share code, notes, and snippets.

Matias Saggiorato msaggiorato

  • SAU/CAL
  • 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
View install-standards.sh
#!/bin/sh
## Move to home directory
cd $HOME
### Install Composer
EXPECTED_SIGNATURE="$(php -r "echo file_get_contents('https://composer.github.io/installer.sig');")"
php -r "copy('https://getcomposer.org/installer', '$EXPECTED_SIGNATURE.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', '$EXPECTED_SIGNATURE.php');")"
View gist:42ed2ffe9a57d6b03748
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo ':: Setting up SWAP'
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
You can’t perform that action at this time.