Some tips and tricks for your .htaccess file (Apache)
Install Docker and play with PHP
Docker can be installed free of charge for personal or small-scale use: https://www.docker.com/products/personal/.
You can install it on Linux, Mac or Windows.
The easiest way, under Windows, is to use Docker Dekstop.
Move WSL to another location
https://dev.to/mefaba/installing-wsl-on-another-drive-in-windows-5c4a
By default, the Linux distribution is installed on your C: drive. If, like me, you have a D: drive with almost nothing on it, it can be really interesting to move Linux on that second drive.
Site creation
Updated 2023-11-03, search engine, prism and sitemap added. Updated 2023-11-05, adding giscus.
Here are the steps I followed to create this blog.
Markdown folding not working
In case code folding is not working in markdown mode like illustrated below, make sure the @builtin Markdown Language Features
addon is enabled.
Open your Linux folder in Windows Explorer
Did you know it is possible to use the Windows Explorer program and navigate on your Linux filesystem?
An easy way to open your current folder in Windows Explorer is to call the explorer.exe
binary.
So, f.i., in your Linux console, open any existing folder like cd ~/repositories/blog
and then, just run explorer.exe .
.
Opening a RDP connection to the Linux local instance
https://www.nextofwindows.com/how-to-enable-wsl2-ubuntu-gui-and-use-rdp-to-remote https://medium.com/@riley.kao/wsl2-ubuntu20-04-gui-remote-desktop-connection-rdp-2bbd21d2fa71
When WSLg is enabled, it's possible to access to the graphical user interface of your Linux distribution (in my case, it's Ubuntu).
If you don't have xrdp
yet, you can install it by running:
sudo apt update && sudo apt -y upgrade
sudo apt-get install -y xrdp
The easiest way to run a PHP script / website
The situation: you wish to run a piece of standard PHP code (no dependency) like the one below:
<?php
echo "<h2>Incorrect, silent bug</h2>";
print_r(json_decode(utf8_decode("Ipso lorem"), true));
echo "<h2>Incorrect, we got an exception</h2>";
print_r(json_decode(utf8_decode("Ipso lorem"), true, 512, JSON_THROW_ON_ERROR));
KeePass - Overriding the URL field
The url
field can also be used to start a program and, thus, not only to contains a valid URL.
The official documentation is located here: https://keepass.info/help/base/autourl.html.
Welcome
I have been wanting to try Docusaurus for a long time, but today I am stuck at home because of storm Ciaran, which is blowing across Belgium this Thursday, November 2, 2023.
Here is my chance to stay behind the computer and play with a green dinosaur!