Skip to content

Instantly share code, notes, and snippets.

View keschat's full-sized avatar
🏠
Working from home

kesi keschat

🏠
Working from home
  • R3 Technica
  • Cape Town
View GitHub Profile
@keschat
keschat / findphpini.md
Created May 13, 2024 23:15 — forked from pvm-77/findphpini.md
how to find php.ini file in ubuntu

In Ubuntu, the location of the php.ini file can vary depending on the installation and version of PHP you are using, as well as the web server you are using. Here are a few common locations where you can find the php.ini file:

  1. /etc/php/7.4/apache2/php.ini This is the default location for the php.ini file for PHP version 7.4 on Apache web server.

  2. /etc/php/7.4/cli/php.ini This is the php.ini file used by the PHP command-line interface (CLI).

  3. /usr/local/etc/php/php.ini This is the location for the php.ini file on some installations of PHP.

@keschat
keschat / findphpini.md
Created May 13, 2024 23:15 — forked from pvm-77/findphpini.md
how to find php.ini file in ubuntu

In Ubuntu, the location of the php.ini file can vary depending on the installation and version of PHP you are using, as well as the web server you are using. Here are a few common locations where you can find the php.ini file:

  1. /etc/php/7.4/apache2/php.ini This is the default location for the php.ini file for PHP version 7.4 on Apache web server.

  2. /etc/php/7.4/cli/php.ini This is the php.ini file used by the PHP command-line interface (CLI).

  3. /usr/local/etc/php/php.ini This is the location for the php.ini file on some installations of PHP.

@keschat
keschat / findphpini.md
Created May 13, 2024 23:15 — forked from pvm-77/findphpini.md
how to find php.ini file in ubuntu

In Ubuntu, the location of the php.ini file can vary depending on the installation and version of PHP you are using, as well as the web server you are using. Here are a few common locations where you can find the php.ini file:

  1. /etc/php/7.4/apache2/php.ini This is the default location for the php.ini file for PHP version 7.4 on Apache web server.

  2. /etc/php/7.4/cli/php.ini This is the php.ini file used by the PHP command-line interface (CLI).

  3. /usr/local/etc/php/php.ini This is the location for the php.ini file on some installations of PHP.

@keschat
keschat / dev-note-5.8-block-api.md
Created September 26, 2023 19:46 — forked from gziolo/dev-note-5.8-block-api.md
Block API enhancements in WordPress 5.8

Block API Enhancements

As of WordPress 5.8 release, we encourage using block.json file metadata as the canonical way to register block types. We have been working on Block Metadata specification for a few major WordPress releases, and we reached the point where all planned features are in place.

Example:

notice/block.json

{
	"apiVersion": 2,
@keschat
keschat / gulpfile.js
Created May 16, 2022 20:38 — forked from santiagobasulto/gulpfile.js
expressjs + nodemon + browser-sync
'use strict';
var gulp = require('gulp');
var browserSync = require('browser-sync');
var nodemon = require('gulp-nodemon');
// we'd need a slight delay to reload browsers
// connected to browser-sync after restarting nodemon
var BROWSER_SYNC_RELOAD_DELAY = 500;