Skip to content

Instantly share code, notes, and snippets.

View canomogollon's full-sized avatar
💭
Learning Code For Living

Elkin A. Cano Mogollon canomogollon

💭
Learning Code For Living
View GitHub Profile
@abobija
abobija / wsl2-ubuntu-lamp.md
Last active October 4, 2024 19:43
LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

Apache

sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2

PHP

@Zhendryk
Zhendryk / The Ultimate Windows Development Environment.md
Last active September 14, 2024 01:16
How to set up the ultimate Windows development environment
@jesperorb
jesperorb / php_form_submit.md
Last active April 30, 2024 22:27
PHP form submitting with fetch + async/await

PHP Form submitting

If we have the following structure in our application:

  • 📁 application_folder_name
    • 📄 index.php
    • 📄 handle_form.php
    • 📄 main.js

And we fill our index.php with the following content just to get a basic website with a form working. You should be able to run this through a php-server of your choice.

@cesarmiquel
cesarmiquel / drupal-8-cheatsheet.md
Last active November 4, 2024 19:14
Drupal 8/9/10 Cheatsheet

Drupal 8 Cheatsheet

[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.

Files, Images and Media

// Load file object
$file = File::load($fid);