rsync with public key file

rsync -rave “ssh -i PEMKEYFILE.pem” /path/to/local/files/* ec2-user@EC2_INSTANCE_HOSTNAME:/path/to/remote/files

create remote git from local project

So, firstly setup the remote repository:

mkdir my_project.git
cd my_project.git
git init --bare
git update-server-info # If planning to serve via HTTP

On local machine:

cd my_project
git init
git add *
git commit -m "My initial commit message"
git remote add origin
git push -u origin master


enable write cache on mptsas

change root password on mysql

sudo service mysql stop
sudo mysqld_safe --skip-grant-tables --skip-syslog --skip-networking

then run mysql in a new terminal

mysql -u root

and run the following query, after changing the password

UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';

quit the mysql safe mode and start mysql service by

mysqladmin shutdown
sudo service mysql start