Skip to content

Instantly share code, notes, and snippets.

View masfernandez's full-sized avatar
🔥

M.A. Sánchez Fernández masfernandez

🔥
View GitHub Profile
@masfernandez
masfernandez / cat_examples.md
Last active March 25, 2024 12:25
cat file without comments

Cat files without comments! only relevant information from config files will be shown

  • PHP ini files (linnes commented with ;):
cat php.ini | egrep -v "^\s*(;|$)"
  • Apache, Nginx conf files (lines commented with #):
@masfernandez
masfernandez / # varnish-5.0-configuration-templates.md
Last active April 18, 2018 09:02
Varnish-5.0-configuration-templates

From: https://github.com/mattiasgeniar/varnish-5.0-configuration-templates

Varnish Configuration Templates (boilerplate)

Installation

You can use the configuration templates found in this repository to quickly get started with a complete Varnish configuration that offers support for most functionality. Start of by looking into "default.vcl" and taking the bits you need, copy it to your own default.vcl.

What is it?

@masfernandez
masfernandez / # Doctrine YAML configuration reference.md
Last active April 18, 2018 09:01
Doctrine YAML configuration reference
@masfernandez
masfernandez / # PHP Xdebug on Docker for Mac.md
Last active May 10, 2018 18:26
PHP Xdebug on Docker for Mac

Based on: https://gist.github.com/ralphschindler/535dc5916ccbd06f53c1b0ee5a868c93

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)