Get The Metadata Header From A Markdown File Using PHP
In this short write-up I have put together PHP code that reads a markdown file, extracts its YAML-based meta header, allows you to modify it then updates the original markdown file with the changes. ...
GIT - Find The Number Of Files Changed
You can use the command below if you ever need to figure out how many files have changed before committing them. A good use case is when those changes are made using a script. ...
How To Start An HTTP Server In Python 2 & 3
Python provides a convenient way to start a simple HTTP server to serve up HTML files using the module in Python 2. In Python 3 this is done using the module. If you have both versions of Python install Python 3 might be available as `python3`` in which case us...
How To Refresh A Laravel 10 Tinker Session
You may have run into the annoying situation of needing to exit and restart your Tinker session each time you modify your code. In this walkthrough we will look at one way you can easily refresh your Tinker session by using the script below. ...
How To Allow Users To Be Logged In Forever | Laravel 10
Laravel by default logs out an inactive user after some minutes. For apps that are the main drivers of a person's business, you might want to avoid requiring the user to log in every few m...