Categories
composer php plugin

CSRF token package

Working on older projects (as i tend to do), I often get various requirements for security enhancements. A few days ago, somebody apparently ordered a security test of a site I was working on, so yesterday i got the report:3 HIGH security errors, one being that we had no CSRF tokens on the forms. gah… […]

Continue reading

Categories
Azure

Handle replication errors on Azure Database for MySQL flexible server

At work we have just recently started moving our data to Azure Cloud. We still have the old on-premise setup running, with databases and web servers.

To make the move to Azure Cloud, I have used a lot of time prepping the terraform scripts to handle our servers, but I have only recently been able to make a copy of the current database (with a whopping 1.7TB of data) and copy it to the cloud.

It took a few days to insert the data into Azure MySQL, so after getting a replication error today, I was not ready to drop the replica database, to insert a fresh dump.

Continue reading

Categories
Ruby On Rails

Old rails project with gem install errors :/

One does not simply “gem install thin -v 1.5.1” on new Macs, when the project depends on ruby 2.5.7..

Continue reading

Categories
php

Laravel AWS SDK credentials using .env and configs

Every now and then, I need to integrate with an Amazon web service (aws). I like the whole IAM user way of doing this, so that is usually my preferred choice. However, every time i need to setup a connection in a project (using mostly Laravel these days), I forget how I did it last […]

Continue reading

Categories
php-time-ago

Hacktoberfest 2020

This year at hacktoberfest 2020 my small project php-time-ago got a bit of attention. This was very nice and i hope that people had a fun time.

Continue reading

Categories
php-time-ago

Lots of translations on php-time-ago module

The composer module php-time-ago is now in version 0.4.10 and has included translations for the following languages…

Continue reading