yum install mysql-server mysql php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp php-pear-Net-SMTP php-mysql httpd -y
chkconfig mysqld on
chkconfig httpd on
service mysqld start
service httpd start
aws s3api list-objects --bucket %bucketname% --query 'sum(Contents[].Size)' --output json | awk 'BEGIN {total=0}{total+=$0}END{print total/1024/1024/1024" GB"}' |
<html> | |
<head> | |
</head> | |
<body> | |
<table> | |
<tr> | |
<td class="location" rowspan="2">City</td> | |
<td class="prayerName">Fajr | |
<div class='prayerNameAr'>فجر</div> |
# in ~/.ssh/config | |
# you can set this host by host: | |
Host mysshbastion | |
HostName mysshbastion.cloud.infrastructu.re | |
ServerAliveInterval 120 # in seconds | |
# or globally: | |
Host * |
# generates public key form private key where | |
# $1 is the source private key | |
# $2 is the ouput public key | |
# | |
# created as a reminder ... | |
ssh-keygen -y -f $1 > $2 |
As I am an avid photographer & travelling quite a lot, I wanted to sync my Adobe Lightroom library from Macbook to my Microsoft Windows desktop at home with very little/no human intervention. It is also a good thing that both Lightroom versions (mac & windows) share a common file system/structure, this helped alot in synchronizing data from one environment to another.
This HOWTO assumes you already have an AWS account created and running with an IAM user configured.
Put together, the solution would look as such (pardon my poor diagram skills):
_
macbook pro (` ). windows desktop
{ | |
"Id": "Policy1442860910448", | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1442860826662", | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Effect": "Allow", |
# recursively deletes all objects in a bucket where | |
# $1 is the bucket name | |
# | |
# created as a reminder ... | |
aws s3 rm --recursive s3://$1 |