Skip to content

Instantly share code, notes, and snippets.

View gpressutto5's full-sized avatar

Guilherme Pressutto gpressutto5

  • Curitiba, Brazil
View GitHub Profile
@gpressutto5
gpressutto5 / LocalValetDriver.php
Created September 1, 2017 21:16
Magento 2 Local Driver for Laravel Valet
<?php
class LocalValetDriver extends LaravelValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$HOME/.composer/vendor/bin:/usr/local/sbin:$PATH
PROMPT_TITLE='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
export PROMPT_COMMAND="${PROMPT_COMMAND} ${PROMPT_TITLE}; "
# Fix https://github.com/robbyrussell/oh-my-zsh/issues/6835#issuecomment-390
ZSH_DISABLE_COMPFIX=true
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1
<snippet>
<content><![CDATA[
http://placehold.it/${1:350}x${2:$1}/${3:cccccc}/${4:777777}.${5:jpg}?text=${0:Hello+World}
]]></content>
<tabTrigger>placehold</tabTrigger>
<scope>text.html</scope>
<description>Generates an image link</description>
</snippet>