Skip to content

Instantly share code, notes, and snippets.

View AlexanderAllen's full-sized avatar

AlexanderAllen AlexanderAllen

View GitHub Profile
@mburakerman
mburakerman / package.json
Last active June 12, 2019 14:58
Webpack 4 config.js (Stylus to CSS and Babel) 👌 The Simplest Usage 👌
{
"name": "webpack-stylus",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
@ralphschindler
ralphschindler / README.md
Last active May 1, 2024 19:14
Docker For Mac Host Address Alias To Enable PHP XDebug (10.254.254.254 Trick)

Docker (Mac) De-facto Standard Host Address Alias

This launchd script will ensure that your Docker environment on your Mac will have 10.254.254.254 as an alias on your loopback device (127.0.0.1). The command being run is ifconfig lo0 alias 10.254.254.254.

Once your machine has a well known IP address, your PHP container will then be able to connect to it, specifically XDebug can connect to it at the configured xdebug.remote_host.

Installation Of IP Alias (This survives reboot)

Copy/Paste the following in terminal with sudo (must be root as the target directory is owned by root)...

@AlexanderAllen
AlexanderAllen / php.ini
Last active April 28, 2016 00:38
Enabling XDebug on Acquia Dev Desktop - WINDOWS 8.1 - php.ini for PHP 5.5.x
;zend_extension="C:\Program Files (x86)\DevDesktop\php5_5\ext\php_xdebug.dll"
; On windows the name of this thing is different from what suggested on the original .ini.
zend_extension="C:\Program Files (x86)\DevDesktop\php5_5\ext\php_xdebug-2.3.2-5.5-vc11.dll"
xdebug.cli_color=1
xdebug.idekey="DD"
xdebug.remote_host="localhost"
xdebug.remote_enable=1