Skip to content

Instantly share code, notes, and snippets.

View federivo's full-sized avatar

Federico Rivollier federivo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am federivo on github.
  • I am federivo (https://keybase.io/federivo) on keybase.
  • I have a public key ASDc9gdCsfm9Cpp68HmbKcjHriXUlQqE-0EXwUie2qqtPQo

To claim this, I am signing this object:

@federivo
federivo / xdebug.ini
Created October 19, 2017 22:34
Xdebug configuration for vm
; Enable xdebug extension module
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable=1
;xdebug.remote_host=10.0.2.2
xdebug.remote_port=9000
xdebug.var_display_max_depth = 20
xdebug.max_nesting_level = 999
xdebug.idekey=“PHPSTORM”
xdebug.remote_autostart=1
xdebug.remote_host=192.168.33.1
@federivo
federivo / gist:448c7fc8492dd2eab13b2a06e4d19edc
Created August 29, 2017 14:26
Downgrade PHP7 to PHP5.6
sudo yum erase php70w.x86_64 php70w-bcmath.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-fpm.x86_64 php70w-gd.x86_64 php70w-intl.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64 php70w-pear.noarch php70w-pecl-xdebug.x86_64 php70w-process.x86_64 php70w-soap.x86_64 php70w-xml.x86_64 php70w-xmlrpc.x86_64
sudo yum install php56w.x86_64 php56w-bcmath.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-fpm.x86_64 php56w-gd.x86_64 php56w-intl.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-pecl-xdebug.x86_64 php56w-process.x86_64 php56w-soap.x86_64 php56w-xml.x86_64 php56w-xmlrpc.x86_64
@federivo
federivo / gist:a1c56909b3f712e516a3cd2f70c0eaa6
Last active December 29, 2021 07:33
Install unison in centos
#https://github.com/dcosson/vagrant-unison2
yum install ocaml ocaml-camlp4-devel ctags ctags-etags
cd ~
wget http://www.seas.upenn.edu/~bcpierce/unison//download/releases/stable/unison-2.48.4.tar.gz
tar xvfz unison-2.48.4.tar.gz
cd src
make
@federivo
federivo / ExportCustomerCommand.php
Last active March 23, 2017 00:18
Gists for federivo.github.io/magento2/2016/02/19/commands-in-magento2.html
<?php
namespace Federivo\CustomerExport\Command;
use Magento\Customer\Api\CustomerRepositoryInterface;
use Magento\Framework\Api\SearchCriteriaBuilder;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\File\Csv;
use Magento\Framework\Filesystem\Driver\File;
use Symfony\Component\Console\Command\Command;
@federivo
federivo / gist:3fad910cdb948aee310375c5ca10afd0
Created November 21, 2016 12:59
PHPBrew install php 7 with variants
phpbrew install 7.0 +default+mysql+pdo+debug+apxs2+opcache+mcrypt+mhash+phar
@federivo
federivo / di.xml
Last active March 22, 2017 03:16
Gists for federivo.github.io/magento2/2016/02/19/commands-in-magento2.html
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="exportCustomersCommand" xsi:type="object">Federivo\CustomerExport\Command\ExportCustomerCommand</item>
</argument>
</arguments>
</type>
</config>
@federivo
federivo / gist:ddca3d864fe473d40988
Last active February 24, 2016 12:52
Magento 2 CLI install
sudo ./magento setup:install --base-url=http://local.magento.com/ --db-host=localhost --db-name=dbname --db-user=root --db-password=passw --admin-firstname=First --admin-lastname=Last --admin-email=mail@mail.com --admin-user=admin --admin-password=admin --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1
@federivo
federivo / gist:e4f7d4936ef5ce21bf75
Created February 15, 2016 15:05
List all vagrant boxes running
VBoxManage list runningvms
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.