Skip to content

Instantly share code, notes, and snippets.

@bordeo
bordeo / .extra
Last active July 11, 2016 07:41
Extra file for dotfiles
alias restart_httpd24='sudo brew services restart httpd24'
alias restart_mysql='brew services restart mysql'
alias composer='COMPOSER_DISABLE_XDEBUG_WARN=1 php -d xdebug.remote_enable=0 -d xdebug.default_enable=0 -d xdebug.profiler_enable=0 ~/bin/composer $*'
# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="bordeo"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
@bordeo
bordeo / magentotools.sh
Created November 17, 2015 08:43
Developer tools
bash < <(wget -q --no-check-certificate -O - https://raw.github.com/colinmollenhour/modman/master/modman-installer)
curl -sS https://getcomposer.org/installer | php
@bordeo
bordeo / xdebug.ini
Created November 17, 2015 08:35
Xdebug Configuration file
[xdebug]
zend_extension="/usr/local/opt/php56-xdebug/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_port=10000
xdebug.remote_mode=req
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.idekey="PHPSTORM"
xdebug.remote_log="/usr/local/var/log/apache2/xdebug_remote.log"
xdebug.remote_autostart=0
@bordeo
bordeo / price.phtml M1.9
Last active November 16, 2015 09:16 — forked from hans2103/price.phtml M1.9
Implementation of structured data itemprop=price on app/design/frontend/<your_package>/<your_theme>/template/catalog/product/price.phtml - Magento 1.9.0.x - http://schema.org/Offer - more information: http://www.byte.nl/blog/magento-rich-snippets-made-easy/
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
@bordeo
bordeo / new_mac_web_developer.sh
Last active March 8, 2018 08:41
New Mac Web developer
#LAST EDIT 18/07/2017
#
# CHANGELOG
#
# * 18/07/2017 update docker images, port bind and mount dir
#
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install qlcolorcode
brew cask install qlstephen
brew cask install qlmarkdown
brew cask install quicklook-json
brew cask install qlprettypatch
brew cask install quicklook-csv
brew cask install betterzipql
brew cask install webpquicklook