Docker Tips for Beginners

This is my first time to write a post for docker, and I hope it wouldn’t be the last. The reason why I write this docker tutorial is because of a small project. Yes, a small project which need to be deployed by docker. It takes me 6 hours to learn docker and use it to deploy Python project and Java project. Besides that, the project need to read a configuration file from a fixed location in the file system (inside Docker envoriment). Basing on the deploy envorinment, the configuration file is different. For example, configuration file for development and production is totally different. For security reason and easy management, all configuration files are hosted on a remote server. So when running the docker, we shall download the corresponding configuration file from the remote server by passing the arguments in the docker command line. Here I will not repeat what’s the Docker and what benefits we can get from Docker, as you can get all the information from Docker homepage. In this post, I will describe how to make a docker image which can expect outside arguments. And this time, I will host all the source code on my public git. Hope it will help you to solve your problem within 6 minutes.
Read more

iptables make server safe

Use IPTables/Netfilter to Make Server Safer

Yesterday, I found two of my cloud servers had been hacked. The servers’ CPU was always 100% and I found a suspicious process. After terminating the suspicious process, the system got back normal and CPU was no longer 100%. However, the suspicious process came back and CPU was 100% again. So I cleaned the whole system by checking my ssh public-key authentication file, cron job, deleting all malicious files and stopping all unnecessary services. I was watching the system whole day and the virus didn’t come back.
Read more

domian renew and website restore

Recover Deleted Websites Step by Step

Have you forgotten to renew your domain name or hosting ever? If the answer is no, then congratulations, and please keep in mind to renew them on time. However, not everyone is that lucky to renew their domain name and hosting service once they are expiring. Usually, the domain vendor or hosting vendor will give one month buffer period for us to pay the bill before they completely release the domain name or delete whole files on the hosting. Most of the case, lots of people forget to renew the plan, but they will find the website unavailable to access. Eventually people will renew the plan in time. However, there are always worst cases, and this time, it happened on one of my friend.
Read more

A Guide to Make Your Website Social Share Enabled

If you aren’t already sharing your website content on social media—and enabling that content to be shared on social media by others—then you are not taking advantage of one of the most useful and essential marketing tools on the internet today. Social media is a constant presence in our modern day lives and it is essential for businesses, regardless of industry or size, to both market themselves on social media and make their website social media share friendly to increase the likelihood of social media users sharing website content elsewhere on the web. Let’s take a closer look at the major social media players and how you can use them.
Read more