1. Syncing Files from Local => S3 Bucket
For example I want to sync my local directory /root/mydir/ to S3 bucket directory s3://tecadmin/mydir/ where tecadmin is bucket name. I have created some new files in /root/mydir/ and sync to s3 bucket using following command.
Note: Do not forgot to add trailing slash (/) in local directory path when specifying s3 bucket with full directory path.
To keep preserve file attributes like date/time etc use -p or –preserve parameter like below
Inactive or idle SSH connections are normally disconnected by the server after a certain period of time. This depends on how the SSH server is configured, and upon disconnection the SSH client will be prompted with a message similar to the following;
This could be avoided by changing the SSH server's configuration, or tricking the server from the client's end.
This is probably the easiest method as it doesn't require root or administrator access to the server and it cou...
Install FFmpeg & Mencoder on CentOS 6 would be easy job.
It cost me 2 days to install them and make script running on a client server which is CentOS 5.10 64-bit.
If you have to install FFmpeg & Mencoder on a CentOS 5 like me, i hope this article can save you some time.
You can follow those two links to prepare system, install codecs and ffmpeg:
makefile带来的好处就是–“自动化编译”,一旦写好，只需要一个make命令，整个工程完全自动编译，极大的提高了软件开发的效率。make是 一个命令工具，是一个解释makefile中指令的命令工具，一般来说，大多数的IDE都有这个命令，比如：Delphi的make,Visual C++的nmake,Linux下GNU的make.可见，makefile都成为了一种在工程方面的编译方法。
This article can help you to track down outgoing spam using PHP.
From php version 5.3.0 we can use the directive mail.log to log who’s calling the function mail(). When someone calls the function mail() from a php script we can get some info about the sender in log.
PHP mail.log entries include the full path of the script, line number, To address and headers.
1. Check email log
2. Edit php.ini
3. To enable mail.log, add following line in php.ini
4. Create lo...
Download and Install Eclipse IDE
Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT).
Following steps in link to install ADT Plugin into Eclipse
** If you can not find Android SDK Manager in Window --> Android SDK Manager,
go to Window --> Customize Perspective --> Tool Bar Visibility.
Enable options in Android SDK and AVD Manager.
Install NodeJS on Fedora
NodeJS is currently not part of the standard repo's, you can not install dire...
wkhtmltopdf is an excellent opensource tool for converting html to PDF or an Image like JPEG, PNG etc.. It is available under GNU/GPL and written in C++ programming language. It can convert any HTML web page to PDF with Options to add Header and Footer. Also with Table of Content writing Option. It is available for both 32 and 64 bit Linux systems.
For dowloading 32bit tool use the below command.
For downloading 64bit tool use the below command.
Extract the Files:
Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!