PHP Melody nginx config done right

When you buy PHP Melody there’s a .htaccess file and a .htaccess-nginx file. However you’re missing everything else of it. So here’s how you properly configure nginx to run PHP Melody.

Angular multipart/formdata

You would like to upload or post something not as an application/json but as a multipart/formdata. It’s pretty simple, simpler than you would’ve thought 🙂 1. create the FormData instance

then you can use .set or .append methods to add values to the post body of the FormData.

and finally we upload it […]

Angular, EventSource, Go and wasted lifetime

If you have ever used EventSource and Angular and have read all the other blog posts and github issues and Stackoverflow posts and nothing worked, then you’ve probably come here and will happily leave knowing you solved your problem. First of all I use cobra, I know, get to the point. As part of cobra […]

libvirt manual migration

Following scenario: You have 2 servers. No shared storage. You would like to move VMs from Server A to Server B. If you want a clean filesystem there will be downtime. Downtime will take as long as it needs to copy the image from one server to the other. Step 1: Shutdown the instance running […]