A global gitignore file can be handy to automatically hide common files from projects that you work on. I typically use this for files that are specific to me and my local setup. First create the file that you want to use for your global .gitignore file. I just use a file called .gitignore in…
I have decided to get back into tinkering with my Raspberry Pi. I will be blogging my journey as I stumble through my initial playing, through to building out my first proper homelab. This first Raspberry Pi (model 2b) will be initially used as both a wireguard VPN server and a local DNS server.
What is the github cli The Github CLI tool is the official Github terminal tool for interacting with your github account, as well as any open source projects hosted on Github. I’ve only just begun looking into it but am already trying to make it part of my personal development flow. Installation You can see…
The entry point for my Neovim Configuration is the init.lua file. Init.lua My entrypoint file simply requires three other files: The user.plugins file is where I’m using Packer to require plugins for my configuration. I will be writing other posts around some of the plugins I use soon. The user.options file is where I set…
Started working on a side project I’m calling “Pitch”. It’s an end to end encrypted website starter inspired by SiteJS by the Small Technology Foundation. Got a basic vue app set up with the vue-cli but now can’t work out why my private key generator sometimes returns what I expect — a Uint8Array — and…
How to set up Kibana and Elasticsearch locally, within Docker containers.
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…
I’m going to begin setting up my own “labs” area to play around with various web technologies. For the longest time now I have been holding myself back quite a bit by only really learning technologies around current roles at the time and for my own personal site. This has mainly revolved around Laravel and…
A niche example of how I bulk convert my screenshots to make them more website-friendly.
Installing an older PHP version and switching to it in Ubuntu.
Despite not yet managing to get what I have learnt implemented, I have nonetheless took on board some good concepts around docker and docker swarm
This is a quick brain dump for myself to remember how I set up Laravel with Docker. Hopefully it can help others out also.
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…
One of the annoying things about web development, is having to learn completely new paradigms every now and again. I’m all for improving my skills and being more efficient in my work, but when i have to halt to have to learn a whole new separate thing, it grinds my gears a bit. The idea…
Im back on the Vim train. Trying, once again, to learn to use it. I know it will be worth it if I stick to it.
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,…
@letsencrypt hi. I signed up for beta access the other day for my site davidpeach.me I was just wondering if you had a timescale? Cheers.
Starting a new personal project tonight. Finally a medium-sized project idea that I want to build. And one to really dig into Laravel.
The amount of old repositories I’m deleting from my Github account is making me think how often I start new projects and never complete them. I really need to change that.
https://alistapart.com/article/from-pages-to-patterns-an-exercise-for-everyone/
Secure shell into file server. Install samba if not already present: Create samba password with : sudo smbpasswd -a YOUR_USERNAME Configuring the share: Restart samba:
A handy way to have some of your routes skip the middleware for CSRF protection. Handy in some situations.