all files and folders from Downloads to Archived
cp -a ~/Downloads/. ~/Archived/
brace expansion - copies index.php to index.php.bak
cp /var/www/vhosts/domain.com/httpdocs/index.php{,.bak}
#!/bin/bash | |
# set exec defaults | |
VERBOSE=true | |
DEBUG=false | |
FREQUENCY="daily" | |
FILE_SUFFIX="awsdb" | |
MAX_LOCAL_BAKS=2 | |
MAX_S3_BACKUPS=4 | |
MIN_FREE_SPACE=90 # in perc |
# Create a subdomain on AWS EC2 (Apache2) | |
sudo mkdir -vp /var/www/vhosts/myapp.io/httpdocs | |
sudo chown -R ec2-user:apache /var/www/vhosts/myapp.io/httpdocs | |
mkdir -vp /var/www/vhosts/myapp.io/logs | |
sudo chown -R ec2-user:apache /var/www/vhosts/myapp.io/logs | |
sudo touch /etc/httpd/sites-enabled/myapp.io.conf | |
``` |
This guide enables desktop mode in Ubuntu 16.04 (Xenial Xerus) running off an AWS EC2.
# For more options and information see | |
# http://www.raspberrypi.org/documentation/configuration/config-txt.md | |
# Some settings may impact device functionality. See link above for details | |
# uncomment if you get no picture on HDMI for a default "safe" mode | |
#hdmi_safe=1 | |
# uncomment this if your display has a black border of unused pixels visible | |
# and your display can output without overscan | |
disable_overscan=0 |