I’m a long time Linux user, and a big fan of Docker, Kubernetes, VMs, and containers.
While I love developing on Linux - I do sometimes find it frustrating that I don’t have the same level of access to the Microsoft suite on Linux.
A while ago I had to use a Windows laptop for a few days and tried out using WSL - so most of the time I’m in Linux - I didn’t entirely hate it so when it was time for an upgrade I decided to try the Windows route this time.
I’ve had my new machine for a little over a week now.
Read more ...Kubernetes provides a wide variety of methods for formatting output
The custom columns output lets you print multiple values defined using jsonpath expressions in a tabular output
While outputting scalar values is reasonably intuitive, I couldn’t see in the docs where is says what the format for defining custom-columns is.
Read more ...If you have multiple account with Gitlab or Github you will find that you can’t use teh same ssh key for both accounts.
The nicest way I have found of configuring this is by putting the different projects in a subfolder - and then using a gitconfig conditional include
Read more ...InertiaJs does a great job of helping me build React apps on Laravel. The form help does a great job - especially with displaying validation messages.
But I couldn’t figure out how to change data and save the form in one action.
Read more ...The Laravel database validation rules are more powerful and flexible than I realised at first.
Looking at the Available Validation Rules we can see that Exists and Unique both have the suffix (Database)
This is because the both implement the DatabaseRule trait which offers more power than might be expected.
Read more ...I’ve had a few problems with docker and firewalls and seem to get a “good enough” solution only to run into trouble again later having forgotten what I’ve done so far.
This is an attempt to make some notes and at least capture where I am up to.
TLDR
- Disable dockers Iptables
- Add some firewalld rules
- Watch out if the Docker interface changes
https://dev.to/soerenmetje/how-to-secure-a-docker-host-using-firewalld-2joo
Read more ...This is one of those things I wont need again for a while and will forget.
When using nvm to get a new version of nodejs you can find you no longer have packages - including yarn
Read more ...My Laravel site was working just fine yesterday but after a code-only update today I was seeing 502 errors on some pages
upstream sent too big header while reading response header from upstream, client:
While the solution was hard to find it was easy to implement.
Read more ...Yesterday I thought I’d fixed my https links on Laravel running in Kubernetes - but I had a nagging feeling that I’d just followed some random blog posts and missed something …
Unfortunately what I had looked for was force laravel to use https
When what I really needed was Configuring Trusted Proxies
Read more ...
Read Laravel HTTPS Behind a Proxy instead
The post below is wrong
This doesn’t seem to be well documented - I cant find anything about it in the official docs.
Thanks to Md Obydullah at shouts.dev
My Laravel site runs in kubernetes where TLS encryption happens in a proxy layer and I need Laravel to server content with https links.
Read more ...