Skip to content

Instantly share code, notes, and snippets.

View atiqsu's full-sized avatar

Md. Atiqur Rahman atiqsu

  • Kajalshah, Sylhet , Bangladesh
View GitHub Profile
@atiqsu
atiqsu / wp-config-debug
Created March 11, 2025 10:00
Wordpress debug config for development phase
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true );
define('WP_DEBUG_DISPLAY', true );
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
@atiqsu
atiqsu / install
Created June 16, 2023 05:08
Valet install in Macbook / iMac
1. Check if brew installed > brew -v
1.1 if not installed then install it first from https://brew.sh/
2. Install php > brew install php ; php --version
3. Install mysql > brew install mysql
4. Install composer > brew install composer ; composer -V
4.1 If exceptions happen run > sudo mv composer.phar /usr/local/bin/composer
5. Install valet > composer global require laravel/valet
6. > valet install
6.1 Exception valet not found > echo PATH=$PATH:~/.composer/vendor/bin
7. Open terminal and goto your desired directory > valet park
@atiqsu
atiqsu / Environment setup for macbook
Last active April 12, 2025 20:15
Contributing to wordpress core
1. Install docker and run it. Make sure icon shows in top-right corner of mac
2. Make sure you have npm installed - npm -v
3. Make sure you have nvm installed - nvm -v
4. Make sure you have Node installed -
5. Make sure you have node version 14.x installed if not
5.1. nvm install 14 #do not give specific version i.e. 14.17.3 this may raise npm error
6. Go to https://github.com/WordPress/wordpress-develop
6.1. fork it
6.2. git clone it anywhere you like
6.3. open terminal and cd to the cloned directory