Skip to content

Instantly share code, notes, and snippets.

View msaggiorato's full-sized avatar
🤖
Likely coding something

Matias Saggiorato msaggiorato

🤖
Likely coding something
  • SAU/CAL
  • Argentina
View GitHub Profile
@msaggiorato
msaggiorato / install-standards.sh
Last active September 17, 2019 14:31 — forked from nunomorgadinho/gist:b2d8e5b8f5fec5b0ed946b24fa288a91
PHPCS + WordPress Coding Standards
#!/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');")"
@msaggiorato
msaggiorato / gist:42ed2ffe9a57d6b03748
Last active October 9, 2015 05:54
Install WebServer
#!/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