Skip to content

Instantly share code, notes, and snippets.

@androidedev
androidedev / vagrant-vscode-php-xdebug-instructions.md
Created January 19, 2019 15:56 — forked from jamesstout/vagrant-vscode-php-xdebug-instructions.md
Configure Xdebug, Visual Studio Code for a Vagrant VM

0. Assumptions

  • You've installed Xdebug in your VM.
  • You've installed Xdebug extension for VSCode and reloaded/restarted VSCode.
  • You have not forwarded port 9000 from the guest to the host.
  • Configure Debugger in VSCode. See item 1 next.

1. Configure .vscode/launch.json

@androidedev
androidedev / grc_nginx.md
Created June 5, 2024 04:29 — forked from 5kr1p7/grc_nginx.md
Colorize nginx logs
# Configuration suitable to display Apache/nginx access logs
# Based on conf.proftpd by Pavol Domin
# Crafted by Marcello Barnaba <vjt@openssl.it>

# Get GRC at http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
#

# ip number
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
@androidedev
androidedev / conf.apache
Created June 5, 2024 04:29 — forked from vjt/conf.apache
GRC (Generic Colouriser/Colorizer) configuration for Apache / nginx access logs
# Configuration suitable to display Apache/nginx access logs
# Based on conf.proftpd by Pavol Domin
# Crafted by Marcello Barnaba <vjt@openssl.it>
# Get GRC at http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
#
# ip number
regexp=^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold magenta