Quickly install WordPress in just three commands
Do you think it's possible to run a new WordPress site in just three commands? Impossible, isn't it. Well, in fact, yes, it's possible.
Let's take a look...
Do you think it's possible to run a new WordPress site in just three commands? Impossible, isn't it. Well, in fact, yes, it's possible.
Let's take a look...
You've a dockerized application and one of its container is a MariaDB, MySQL or PostgreSQL service.
Your need is to start a web database management interface like Adminer, pgadmin or phpmyadmin and be able to access your tables and your records.
This can be done in just one command line instruction.
The docker inspect
command is used to retrieve detailed information about various Docker objects, including images, containers, volumes, networks, and nodes. It provides a comprehensive overview of the object's configuration, state, and other relevant details.
The returned information is a JSON representation of the object.
One use case is to be able to retrieve the name of the network used by a given container.
You've a PHP codebase and you wish hop, hop, two strokes of the teaspoon, generate a documentation site without any headaches.
Simple! phpDocumentor do it for you and since a Docker image exists; you can do this almost by running just one command.
Coding your own makefile
has the enormous, terribly powerful advantage of being able to centralize the commands you use on your project in a single place, whatever the nature of the project (php, javascript, nodeJs, markdown, etc.).
The presence of a file called makefile
sends a clear message to anyone who comes to work on the project: Hey, have a look here, you'll find all the commands you need. And it's really easy to list existing commands (see my article Linux Makefile - Adding a help screen).
So, you can define an up
command (you choose the name of the command) which will launch all the actions required to start the project; you could have down
for just the opposite, check
to check that the project is valid (e.g. launch static checks of the quality of your code), and so on.
Very often, I'm in my Linux console and I'd like to open a pdf file that I've just generated or, more simply, to open an html file. But how can I do this?
Without knowing the tip that is the subject of this article, at the moment I launch Windows Explorer from my console, I get then the well-known file explorer interface and there I double-click on the file I want to open and leave it to Windows, which knows which program to launch to open this or that extension.
In fact, it's much simpler...
By using a makefile, you know it already, you can gather in one place a lot of actions like make bash
, make build
, make deploy
, ... just like I do when working on this blog (see my makefile on https://github.com/cavo789/blog/blob/main/makefile).
What's really nice is being able to type make
at the command line without any other options and then get a screen with lists of existing commands and a short one-line explanation.
That's what we'll be looking at in this article.
Like me, you've definitely abandoned Microsoft Word, PowerPoint and friends and do everything in Markdown. Like me, you use the same markdown file to generate your documentation in html
, pdf
, docx
, pptx
, revealjs
, ... as required situation by situation.
My personal use case is the following one: I've a single, sometimes big, readme.md
file for the documentation of a tool I've created. In this document, I could display f.i. tables containing several columns that could be wide. This won't be a problem if I display the documentation as an HTML document, since we have a horizontal scrollbar in the browser to navigate from left to right. But when I generate a PDF, the table will explode the width of my PDF page and the result will be awful.
Same idea when, if my output is an HTML page, I can easily display a listing of a few dozen lines of my source code, for example, to illustrate a feature. On the other hand, if I display it as a slideshow, this will be counterproductive, since the slide will be huge and not very effective.
And, if my goal is to generate a slideshow, the last part of my documentation will be a Thank you for listening! Do you have any questions? chapter. And that one should certainly not be part of the docx
/ pdf
/ html
output. Just for the revealjs
display.
Quarto can convert a markdown file to a revealjs HTML slideshow but, too, can create a pptx
file that you can open and play in Microsoft PowerPoint.
In this article, we'll create a pptx
file from our markdown documentation.
In this article, we will learn how to use Docker to install Joomla on your localhost and start a new website in seconds (don't want to wait? Jump to the "Final composer.yaml" chapter).
I will use a Linux console (I'm running WSL on my Windows computer and I have chosen Ubuntu for my distribution) but since Docker can also be used on Windows, you can perfectly run, exactly, the same commands in an MS-DOS / Powershell console.