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
@cesarmiquel
cesarmiquel / drupal-8-cheatsheet.md
Last active July 17, 2024 18:50
Drupal 8/9/10 Cheatsheet

Drupal 8 Cheatsheet

[Update 2024] - This gist is almost useless compared to Drupal at your fingertips. Will create pull requests to update that if something is not already there.

Files, Images and Media

// Load file object
$file = File::load($fid);
@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.

@Zhendryk
Zhendryk / The Ultimate Windows Development Environment.md
Last active May 18, 2024 03:01
How to set up the ultimate Windows development environment
@abobija
abobija / wsl2-ubuntu-lamp.md
Last active July 10, 2024 14:21
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