Skip to content

Instantly share code, notes, and snippets.

View abenevaut's full-sized avatar
🤯
Boum Headshot! Boum Headshot! Boum Headshot!!!

Antoine B. abenevaut

🤯
Boum Headshot! Boum Headshot! Boum Headshot!!!
View GitHub Profile

Laravel nginx configuration on Synology webstation

sudo vi /etc/nginx/sites-enabled/server.webstation-vhost.conf

Add

location / { try_files $uri $uri/ /index.php?$query_string; }

Prerequisite

  • SSH should be activated and working
  • Python 3.9 should be installed from Package Center
  • supervisord

Install Supervisord

Connect to the NAS with SSH, then log as root:

Let's follow together the Docker kata.

Here, the docker cheat sheet with popular commands.

  • app.jsx - load router from attached project router file

  • router.jsx - load project router

  • ReactRouterProvider.jsx - the dedicated react-router router; could be cloned for inertia and others react/next routers

  • RouterContext.jsx - the abstract router

  • Link.jsx - the Link component

  • (Not tested) InertiaRouterProvider.jsx - the dedicated inertiajs router

Schema.org, top snippets for your portfolio or blog with spatie/schema-org

Right after getting kali linux on windows WSL, from windows store, i tried to upgrade it as follow

sudo apt-get update && sudo apt full-upgrade -y
# log, log, log...
Unpacking libc6:amd64 (2.38-10) over (2.37-12) ...
Setting up libc6:amd64 (2.38-10) ...