Skip to content

Instantly share code, notes, and snippets.

Avatar

AlexanderAllen AlexanderAllen

  • New York, NY
View GitHub Profile
@mburakerman
mburakerman / package.json
Last active Jun 12, 2019
Webpack 4 config.js (Stylus to CSS and Babel) 👌 The Simplest Usage 👌
View package.json
{
"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 Jul 6, 2020
Docker For Mac Host Address Alias To Enable PHP XDebug (10.254.254.254 Trick)
View README.md

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 Apr 28, 2016
Enabling XDebug on Acquia Dev Desktop - WINDOWS 8.1 - php.ini for PHP 5.5.x
View php.ini
;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
You can’t perform that action at this time.