SATA Direct Local Disk Access on Xenserver

ACTION=="add", KERNEL=="sdb", SYMLINK+="xapi/block/%k", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
ACTION=="remove", KERNEL=="sdb", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"

http://techblog.conglomer.net/sata-direct-local-disk-access-on-xenserver/

How to delete all email From: a domain or one email address

To delete all email in the queue from a domain run this command as root:

postqueue -p | tail -n +2 | awk ‘BEGIN { RS = “” } /@example\.com/ { print $1 }’ | tr -d ‘*!’ | postsuper -d –

To delete all email in the queue From: a specific email address run this command as root:

postqueue -p | tail -n +2 | awk ‘BEGIN { RS = “” } /username@example\.com/ { print $1 }’ | tr -d ‘*!’ | postsuper -d –

 

http://www.emailquestions.com/threads/how-to-delete-all-email-from-a-domain-or-one-email-address.9369/

rsync with public key file

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

 

http://www.anthonychambers.co.uk/blog/rsync-to-aws-ec2-using-.pem-key/9

create remote git from local project

So, firstly setup the remote repository:


ssh git@example.com
mkdir my_project.git
cd my_project.git
git init --bare
git update-server-info # If planning to serve via HTTP
exit

On local machine:


cd my_project
git init
git add *
git commit -m "My initial commit message"
git remote add origin git@example.com:my_project.git
git push -u origin master

Done!

 

http://thelucid.com/2008/12/02/git-setting-up-a-remote-repository-and-doing-an-initial-push/