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...
16 May, 2019
You can stop merge keeping all current changes in the working directory using stash. Witch stops the on going merge automatically.
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.
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.
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...
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 ....
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.
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...
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.