Good news for those looking for VPS hosting solution. Digitalocean has upgraded their droplet offering by increasing the diskpace and RAM at the same price point.
Here are the new Droplets package from Digitalocean:
The most interesting plan is Flexible droplets where you can resize the droplets at any time choosing between with RAM or vCPU at the same price point.
Benefit for existing customer:
Existing customer can enjoy the new price point by clicking “Resize” option to get the new offering from Digitalocean
Benefit for new customers:
New customer will enjoy USD10 giveaway when signing up with Digitalocean. Remember that Digitalocean charges by hour, so you can test drive their VPS in a few days and can decide whether you want to continue or not with their service without any penalty
Here’s how to run a script with another user privilege. You can run this user with root.
su -c "/usr/bin/executable" -s /bin/sh username
Where the “username” is the username whom privilege you want to execute
The message sometimes appear when transferring files using scp.
In order to solve this, you need to edit “/etc/sshd_config” file and change or add this line:
Then restart OpenSSH server. This will solve the kex protocol error problem,
Short on diskspace? You can use ‘du’ to find largest files in your linux server using ‘du’ tool.
du --total -sh /path/*
Additionally you can also include a ‘threshold’ parameter to list only file larger than the unit which you’ve specified, by using “-t” parameter.
Example, list files larger than 100MB
du --total -sh -t100M /path/*
You can use “M” for megabytes, “G” for gigabytes and “P” for Petabytes. Positive number denotes files must be at least the specified size. Negative number means the files must be at most the specified size.
‘fdupes’ is a handy tool to find and list duplicates file in GNU/Linux or Unix-like operating system.
In Ubuntu you can install fdupes using apt command-line tool
apt -y install fdupes
Usage of fdupes is simple enough, just write:
fdupes -r /path/to/files/
The command will list duplicate files in the “/path/to/files”directory, which is a prime candidate for deletion.
Cronjob or CRON is an important tool to perform automated / schedule task for web application.
Some shared hosting company may limit (or completely disable) the cron service functionality leading to some web application unable to perform periodic / automated task.
Luckily there’s website such as Cron-Job.org which offers free cron-job to those who aren’t able to obtain one.
The best thing about Cron-Job.org service, is they allow minute-by-minute cronjob execution for free!
Bonus: The folks at Cron-Job also releases the source code behind the service at GitHub!