Skip to content

Instantly share code, notes, and snippets.

View felahdab's full-sized avatar

Florian El-Ahdab felahdab

View GitHub Profile

How to host a complete Laravel application thru a domain "subfolder", when using Nginx_proxy_manager:

For this example, I suppose you have an nginx_proxy_manager instance (docker container) setup, and that you want to make an application which is served by another web server container at its root (say: http://web-container/) in a subpath of the nginx_proxy_manager proxy host entry.

Create a custom location:

  • define the path (ex: foobar/)
  • make it point to the application serving the Laravel application you wish to access (web-container/ be careful to include the /)
  • modify the advanced settings and insert the following directives:
@felahdab
felahdab / Howto make QGIS portable.md
Last active March 8, 2021 09:44
Make QGIS 3.16.4 LTR portable

In order to make QGIS portable on Windows:

  • get a copy of a vanilla QGIS install (usually Program Files\QGIS 3.16)
  • Create a "profiles" directory in the root folder of the QGIS copy
  • Modify the qgis-ltr.bat file and add the 2 following lines before the start line:
del %OSGEO4W_ROOT%\bin\qgis-ltr-bin.env
%OSGEO4W_ROOT%\bin\qgis-ltr-bin.exe --postinstall
  • Modify the start line and add --profiles-path "%OSGEO4W_ROOT%" before the %* which should remain at the end of the line
@felahdab
felahdab / clonezille_dell_g3_inspiron_3500.rst
Created October 8, 2020 19:53
Clonezilla on Dell Inspiron G3 3500

I just bought a Dell G3 15 3500 laptop.

I wanted to make a complete backup of the system before using it. Therefore, I planned to use Clonezilla but encountered difficulties.

Here a brief summary of what I had to do to have Clonezilla work:

1. If you want to save some disk space, you can disable Bitlocker. That will require you to boot and go thru the first system setup. I recommend to avoid connecting to a Microsoft account.

@felahdab
felahdab / ubuntu_to_arch.rst
Last active October 1, 2020 11:59
Migrating from Ubuntu 20.04 LTS to Arch Linux

For some reason I can't really explain, I woke up the other day with this urgent need to change of Linux distribution.

I have been a long time user of debian or debian-derived distribution.

My laptop has been running Ubuntu since at least 2011.

I didn't know Arch Linux until a few weeks ago.

I read an article about it online, and it took some time before I made up my mind.