The UK Government have implemented a strict nationwide lockdown, and advised all workers to work at home where possible.
To keep in contact with your colleagues and friends, here are a few online tools to try:
With pagination it is sometimes necessary to add query parameters to the pagination links. The following PHP code for Laravel will automatically produce the links for you.
When you restart nginx, you may see this error:
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
Here's how to setup a new Mac with PHP, MySQL, NGINX and Dnsmasq.
I've recently had an issue with Digital Ocean servers not being able to ping external websites.
This article has more details: DigitalOcean: Unable to ping external websites.
The following command will concatenate the intermediate certificate bundle with the root certificate.
Afterwards you may need to manually fix the start and end of the certificates.
The following command will crop a video from landscape to portrait.
ffmpeg -i "input.mp4" -vf crop=400:720:442:0 "output-cropped.mp4"
The following code will create an imaged named "my_image" from a Dockerfile (indicated with the "." character)
docker build -t my_image .
docker run -ti my_image /bin/bash