-
Preview Laravel’s migrations with the pretend flag
Here is the command to preview your Laravel migrations without running them: Laravel’s migrations give us the power to easily version control our database schema creations and updates. In a recent task at work, I needed to find out why a particular migration was failing. This is when I discovered the simple but super-useful flag…
-
Giving a flatpak program access to home directory on Linux
List out all of your installed Flatpaks and copy the “Application ID” for the Flatpak you want to give home directory access to. Let’s assume we want to give the program “Insomnia” access to our home directory when it is used. The second column is the Application ID. The application ID for Insomnia is rest.insomnia.Insomnia.…
🏷️ Linux
-
Setting up Elasticsearch and Kibana using Docker for local development
How to set up Kibana and Elasticsearch locally, within Docker containers.
-
Install MongoDB with Docker for local development
Pull the docker image for mongo down to your computer. docker pull mongo Run the mongo container in the background, isolated from the rest of your computer. # Command explained belowdocker run -d -p 27017:27017 –name mongodb mongo -v /data/db:/data/db What I love about this approach is that I don’t start muddying up my computer…
-
Bulk converting large PS4 screenshot png images into 1080p jpg’s
A niche example of how I bulk convert my screenshots to make them more website-friendly.
-
Updating PHP versions in Ubuntu 20.04
Installing an older PHP version and switching to it in Ubuntu.
-
How I would set up Laravel with Docker
This is a quick brain dump for myself to remember how I set up Laravel with Docker. Hopefully it can help others out also.
-
Setting up my own Nextcloud (Version 16)
Setting up your very own Nextcloud server from scratch. This has been tested with version 15 and 16 of the software. Any questions, please do contact me.
-
How to easily set a custom redirect in Laravel form requests
In Laravel you can create custom request classes where you can house the validation for any given route. If that validation then fails, Laravel’s default action is to redirect the visitor back to the previous page. This is commonly used for when a form is submitted incorrectly – The visitor will be redirected back to…
-
Laravel Blade push and stack
Laravel’s blade view compiler is second to none. I’ve used a couple of different templating engines and blade is by far my favourite. Including Partials The way in which we include partials of views within our main views is as follows:@include(‘partials.my-first-partial’)It will inject that partial’s content in the specified place. Defining Sections Within our views,…
-
Bypassing Laravel’s CSRF Middleware on selected routes (from 5.1)
A handy way to have some of your routes skip the middleware for CSRF protection. Handy in some situations.
-
My IndieWeb Setup
Please note: This is now out of date somewhat This post is an outline of my IndieWeb setup. I describe some of the key plugins I have installed as well as third party services I use. All of which play nicely together for the IndieWeb.Built with WordPressMy personal site is built using WordPress and is…
-
WordPress “Must Use” Plugins Directory
The Issue I wanted to build a site with some custom post types, taxonomies and the like. But what if somebody who has used my theme decided to try another theme later on? What guarantee do they have that those custom post types will be recognized by a future theme? None — that’s what. WordPress…
-
WYSIWYGs will kill us all
So okay, maybe they wont literally kill us all, but you’ve got to admit — they can be pretty damn annoying. At least with ones I have used. I’m not dissing wysiwygs — just what they get used for. Firstly let me just say that I use a wysiwyg editor on my own blog and…