Get to know your nearest AWS Location

Very useful to get the lowest network delay:

http://turnkeylinux.github.io/aws-datacenters/

Posted in Cloud, Uncategorized | Tagged , , , | 1 Comment

The Fastest Way to Download a Website Offline

One Word & One Command:

HTTrack, that’s the word

To install it on Ubuntu:

sudo apt install httrack

Then, to run it:

httrack http://www.xyz.com --max-rate=1000000000 --sockets=50 --disable-security-limits --display

–max-rate is the download rate where 1000 = 1 KB/sec, so I am using a 1 GB/sec limit!

–sockets is the number of simultaneous connections

–disable-security-limits to bypass the security limits of httrack which limits the download rate to 25 KB/s and 4 active connections, use with caution, might cause you trouble for bandwidth abuse, use it at your own risk!

UPDATE: This still takes a long time depending on the available bandwidth and website size, so you’d better keep it running inside a “screen”, as follows:

screen -S $website_name -d -m httrack $website_name --max-rate=1000000000 --sockets=50 --disable-security-limits --display

where $website_name is – obviously – your website’s address 😉

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment

How to check which ps is keeping nfs mount busy

sudo fuser -c /mount_point

It will give an output like:

/mount_point: 25422c

then ps for the number before c

That’s it!

Enjoy!

Posted in Uncategorized | Leave a comment

How to restart OpenVPN Service on CentOS 7

systemctl restart openvpn@server.service

Posted in Uncategorized | Leave a comment

Bypass Code Integrity Checking in ownCloud 9

This is an added security feature in ownCloud 9 to sign all the changes to avoid malicious code or files in ownCloud releases.

However, due to a bug in ownCloud 9.0.0, this message appears by mistake when installing some official apps like the Antivirus app, this has been fixed in ownCloud 9.0.1, which hasn’t been released till the moment.

As a temporary workaround to stop seeing this message, just go to the version.php file, and change the release string from “stable” to anything else, e.g. “myownrelease”

Rescan, then the error message will be gone.

Source: https://doc.owncloud.org/server/9.0/developer_manual/app/code_signing.html

Posted in Cloud, owncloud, Uncategorized | Tagged , , , , , | Leave a comment