Skip to content

Instantly share code, notes, and snippets.

View pedro-vasconcelos's full-sized avatar
💭
Coding...

Pedro Vasconcelos pedro-vasconcelos

💭
Coding...
View GitHub Profile
@pedro-vasconcelos
pedro-vasconcelos / dnsmasq OS X.md
Created November 18, 2021 10:17 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

<?php
use \eZ\Publish\API\Repository\Values\Content\Query;
$locationService = $this->getRepository()->getLocationService();
$searchService = $this->getRepository()->getSearchService();
$urlAliasService = $this->getRepository()->getUrlAliasService();
$typeService = $this->getRepository()->getContentTypeService();
$identifiers = array( 'folder', 'page', 'contact' );
$ids = array();