snippet - Cast any video from command line
30 May, 2019
How to cast any video from command line to chromecast. Cast your audio/video to your Google Cast or Sonos Devices, the program to cast audio and video from your macOS, or Linux desktop to your Google...
snippet - Cancel git merge keeping your changes
16 May, 2019
You can stop merge keeping all current changes in the working directory using stash. Witch stops the on going merge automatically.
written tutorial - Set Up Laravel, PHP 7.3, Nginx, and MySQL with Docker
11 May, 2019
Another way to setup Laravel expecting that you have git and composer installed on your machine. Presented in configuration file examples for fastest reading/setup.
snippet - Subtract time in Python
3 Apr, 2019
Examples of time subtraction in Python. Using the best date-time library called Pendulum. You can use add or subtract to alter time.
snippet - Show all errors for development in PHP
26 Mar, 2019

Usually in default errors are disabled for production. Sometimes you have error 500 for an example and you need to see the error message. For an example in Drupal 7 you can put this in settings.php...
snippet - Apache: Compress Web Output Using mod_deflate
24 Mar, 2019
List of mimetypes to compress. You should not compress mime types that compress badly. Compressing images would not result in a lot of gain, but will use a lot of cpu. You can copy this snippet to ....
snippet - Create and Post HTML Form using Javascript
20 Mar, 2019
This snippet creates html form and submits it, the same way as browser submits form "with redirect". If you need the redirect not an ajax solution, for example credit card payment.
snippet - HMAC SHA1 in Python 2
11 Mar, 2019
HMAC (a keyed-hash message authentication code) is used to verify API request. HMAC is constructed by concatenating form parameter key and value pairs into a string ordered by alphabetic order of the...
written tutorial - Send email with mail() using smtp in PHP
2 Mar, 2019
When you set up Apache in vpn you also might want to send emails with PHP. You can use msmtp to send emails from the system using smtp. Eliminating the need to use some php library for smtp.
snippet - Enable HTTP/2 in Apache Web Server
28 Feb, 2019
HTTP/2 enables a more efficient use of network resources and a reduced perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connection...