Posts

Showing posts with the label devops

Reupload stuff to S3 with aws cli

Hi, my friend.     Today I have done some stuff using aws cli. It's quite a good tools beside python+boto. My task in this period is about devops+dev :p. So currently I created some image migrate script in python. It is for reprocess an images using Imagemagick. Then it need to be upload to S3. The accident is about I forget to assign ACL for all images before upload to S3. User cannot see ours images. I try some stuff from google then I realize that I never try linux:touch command before. And It works. I use command >> aws s3 sync . s3://mybucket --dryrun to check if tools can reupload for me. :) Luck is on my side now!!!. So I just >> find . -name 'xxx.yyy' | xargs touch  and >> aws s3 sync . s3://mybucket --acl public-read Finally. Yeah, Shit Done!!!! Next Post I will describe about my python script + imagemagick

New Knowledge from Joe The Infra

>>> aptitude search for search app we can download >>> aptitude install postfix for installing MTA >>> aptitude install mailutils don't know what for, but come with postfix >>> vi /etc/postfix/main.cf edit mydestination value for domain. >>> /etc/init.d/postfix restart to restart postfix service >>> tail -f /var/log/mail.log to monitor mail log