Skip to content

Instantly share code, notes, and snippets.

View teledirigido's full-sized avatar

Miguel Garrido teledirigido

View GitHub Profile
@teledirigido
teledirigido / newsite.sh
Created August 2, 2014 12:25
Add new website via Bash script. Working with Ubuntu server.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user" 2>&1
exit 1
fi
echo "<VirtualHost *:80>
ServerAdmin admin@example.co.nz
ServerName $1
@teledirigido
teledirigido / wpinstall.sh
Last active March 26, 2024 10:23
Download and Install Wordpress via WP-CLI
#!/bin/bash
# This bash script works JUST with WP-CLI
# You can get it from here:
# http://wp-cli.org/
#
# If you don't know what to do with this file:
#
# 1) Install wp-cli on your workspace
# 2) Create a file call wpinstall.sh