Free Website Uptime Monitoring with Uptime Robot

Uptime Robot is a must-have web service that helps keep your website up by monitoring the website uptime. It has a free plan that allows you to do 50 monitors checked every 5 minutes, moreover you can have also a custom web page to show your teammates or visitors the website uptime stats, here is […]

Disable Affiliate Links (VGLNK) on Disqus

Disqus is the internet’s favorite comment plug-in that helps publishers increase engagement and build loyal audiences. It is free and is used by million of websites. However, recently we noticed an issue with their “Affiliate Links” option that was causing any text similar to a domain name (i.e abcdef.com) to be hyperlinked with this HTML […]

Content-Security-Policy-Report-Only

This is a quick post about Content-Security-Policy-Report-Only: Content-Security-Policy-Report-Only: default-src https: data: blob: ‘unsafe-inline’ ‘unsafe-eval’; report-uri /_cspContent-Security-Policy-Report-Only: default-src https: data: blob: ‘unsafe-inline’ ‘unsafe-eval’; report-uri /_csp Taken from HTTP headers of https://vimeo.com To implement it with Nginx use add_header like this: add_header Content-Security-Policy-Report-Only "default-src https: data: blob: ‘unsafe-inline’ ‘unsafe-eval’; report-uri /_csp";add_header Content-Security-Policy-Report-Only "default-src https: data: blob: ‘unsafe-inline’ […]

Change DNS Servers via Commandline on Windows

Change IPv4 and IPv6 DNS servers via Windows Command Prompt on Windows: For Windows Vista and higher (requires Admin rights) Set IPv6 Primary DNS: netsh int ipv6 set dns name="Local Area Network" static 2001:4860:4860::8888 primary validate=nonetsh int ipv6 set dns name="Local Area Network" static 2001:4860:4860::8888 primary validate=no Set IPv6 Secondary DNS: netsh int ipv6 add […]

Run PHP script every 10 minutes with Crontab

Do you need to run a PHP script every 10 minutes with crontab? Here is an example line you can add to /etc/crontab: # Run this PHP script every 10 minutes */10 * * * * user cd /var/sites/website.com/htdocs; php -f script.php >/dev/null 2>&1 &# Run this PHP script every 10 minutes */10 * * […]

Move MySQL Database with /etc/mysql/debian.cnf

When you move MySQL databases from datadir /var/lib/mysql/ to another server, remember to also copy the file /etc/mysql/debian.cnf to the new server, it contains the password used to connect to MySQL server via command-line. Very important if you use automated backups. Just a quick tutorial to move a MySQL database: 1) Stop MySQL server: /etc/init.d/mysql […]

Delphi Scrollbox with Black Background on Windows XP

Problem: Delphi Scrollbox is completely black on Windows XP. Some Win XP users may experience strange behaviors with Scrollbar\Scrollbox. In particular they may see the background in black, example: To fix this issue just set ParentBackground to True on the Scroll component. If that still doesn’t work, try to put the Scrollbox inside a TPanel. […]

Simulate Multiple Monitors in VMWare guest

You can have one large host window with multiple monitors in the guest: 1) Power off the VM then go to VM > Settings > Hardware > Display 2) Select “Specify monitor settings”, and set “Number of monitors” to 2 or more. 3) Uncheck Autofit Guest by going to Edit > Preferences > Display. * […]

Delphi poScreenCenter and Dual Monitors

To correctly show your main form on dual monitors use poScreenCenter: So the main form is displayed on the center of the main monitor. Else the main form is displayed in the middle between the two monitors. More information on this link: Vcl.Forms.TPosition – RAD Studio API Documentation

CVE-2017-5754 Patch Meltdown Vulnerability on Debian Linux

How can I patch Meltdown vulnerability CVE-2017-5754 on Debian Linux server? First, follow the status of the Debian vulnerablities on this link: Information on Debian source package linux The Meltdown bugs are CVE-2017-5753, CVE-2017-5754, CVE-2017-5715: The fixes for all the Meltdown CVEs vulnerabilities are not yet available (9 Jan 2018). But soon they will be […]