Skip to content

Instantly share code, notes, and snippets.

View ascorbic-acid's full-sized avatar

Imad Abdou ascorbic-acid

View GitHub Profile
@ascorbic-acid
ascorbic-acid / gist:b1e97de1621f7e1849f0d8ee2ed8005c
Last active January 25, 2021 06:43
Wordpress xDebug install Ubuntu 18.04 VSCODE
sudo apt-get update
sudo apt install php-xdebug
# [7.2] path may be different on your system, check it.
sudo nano /etc/php/7.2/mods-available/xdebug.ini
Add the following code into xdebug.ini file:
zend_extension=/usr/lib/php/20151012/xdebug.so # [20151012] path may be different on your system, check it.
// the easy way to have any subdomain without the need to generate new cert or add dns record everytime is to create CNAME
for all subdomains using the * wildcard and then generate cert for all subdomain including the main domain with:
sudo certbot -d *.example.com --preferred-challenges=dns-01 --agree-tos certonly --manual
@ascorbic-acid
ascorbic-acid / frappe-bench.conf
Last active February 7, 2020 21:00
frappe nginx ssl server block
upstream frappe-bench-frappe {
server 127.0.0.1:8000 fail_timeout=0;
}
upstream frappe-bench-socketio-server {
server 127.0.0.1:9000 fail_timeout=0;
}