Install WordPress and plugins with Composer

MacBook avec code sur un bureau

Installing WordPress with Composer used to be painful. Today it is simple and clean. Here is how to manage the WordPress core and its plugins entirely through Composer. The WordPress core The johnpbloch/wordpress project tracks the latest WordPress releases and is still the most used. In composer.json, you set the package and the install directory: … Read more

Nginx – Configuration Error – Connection Refused

MacBook Pro affichant un éditeur de code

When setting up nginx it can happen that afterwards it is not possible to connect to the server and that you receive a “hostname not found” error In the terminal, we start by using curl -v domain.dev The error appears Rebuilt URL to: domain.dev/ * Hostname was NOT found in DNS cache * Trying 127.0.0.1… … Read more

Git doesn’t fetch all branches in remote

MacBook Pro affichant un éditeur de code

Sometimes when you work with git, you don’t find all the remote branches. Even after using git fetch they do not appear. git fetch It is very likely that the origin of the fetch is wrong. We can see, for example, that here only the master branch is updated. $ git config –get remote.origin.fetch +refs/heads/master:refs/remotes/origin/master … Read more

Categories Git

Ubuntu: how to get a HotSpot on a Lenovo

With the newer version of Ubuntu, the built in function that creates a Hotspot may not work properly on a Lenovo laptop. The way around it is to use ap-hotspot. sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install ap-hotspot To start or stop ap-hotspot sudo ap-hotspot start sudo ap-hotspot stop To configure it sudo … Read more

JavaScript – Iframe – the address where the iframe is located

MacBook avec code sur un bureau

For security reasons, you can’t directly reach the page outside the iframe from inside it. However, we can retrieve information from the browser. To retrieve the parent’s address, i.e. the URL of the page where the iframe is added, just write this: <script type=”text/javascript”> var url = (window.location != window.parent.location) ? document.referrer : document.location; alert(url); … Read more