Skip to content

Instantly share code, notes, and snippets.

View rogerclotet's full-sized avatar

Roger Clotet rogerclotet

View GitHub Profile
setting hotel data to [hotelperk_hotel_edinburgh_haymarket_2020-03-10_2020-03-13]: b'\x80\x03]q\x00(}q\x01(X\x04\x00\x00\x00typeq\x02X \x00\x00\x00Comfy Double with Window - Saverq\x03X\x04\x00\x00\x00rateq\x04X\x05\x00\x00\x00Saverq\x05X\x0b\x00\x00\x00descriptionq\x06]q\x07(XX\x00\x00\x00These spacious rooms provide all the essentials you need, and come with a stunning view.q\x08X$\x00\x00\x00c5f197fe-e915-423b-91e9-aa620109e0b8q\teX\x06\x00\x00\x00imagesq\n]q\x0b(}q\x0c(X\x04\x00\x00\x00typeq\rX\x04\x00\x00\x00Linkq\x0eX\x04\x00\x00\x00nameq\x0fX\n\x00\x00\x00Room Photoq\x10X\x03\x00\x00\x00urlq\x11X<\x00\x00\x00https://www.pointahotels.com/media/2001/pa_edinburgh_002.jpgq\x12u}q\x13(X\x04\x00\x00\x00typeq\x14X\x04\x00\x00\x00Linkq\x15X\x04\x00\x00\x00nameq\x16X\n\x00\x00\x00Room Photoq\x17X\x03\x00\x00\x00urlq\x18X<\x00\x00\x00https://www.pointahotels.com/media/2011/pa_edinburgh_003.jpgq\x19u}q\x1a(X\x04\x00\x00\x00typeq\x1bX\x04\x00\x00\x00Linkq\x1cX\x04\x00\x00\x00nameq\x1dX\n\x00\x00\x00Room Photoq\x1e
@rogerclotet
rogerclotet / gist:3901b03107437b247b03
Last active February 9, 2023 13:03
Execute PHPUnit disabling xdebug
# Before using these aliases and function you must make a backup of your xdebug.ini
# (in this case /etc/php/conf.d/xdebug.ini.back)
# You will also need to be able to edit xdebug.ini
alias xdebug-disable='echo "" > /etc/php/conf.d/xdebug.ini'
alias xdebug-restore='cat /etc/php/conf.d/xdebug.ini.back > /etc/php/conf.d/xdebug.ini'
phpu() {
xdebug-disable
phpunit "$@"