Skip to content

Instantly share code, notes, and snippets.

View felipemarques's full-sized avatar

Felipe Marques felipemarques

View GitHub Profile
How to fix error Vagrnat 1.7.4 + VirtualBox 5.x in Windows 10.
The is the below:
$ { homestead } master » vmup /x/xampp/htdocs/homestead
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
-- -----------------------------------------------------------------
-- SQL to Upgrade Opencart 1.5.6.4 database to Opencart 2.0.1.1
-- @theme ULTIMATUM
-- @author Felipe Marques
-- @email contato@felipemarques.com.br
-- @date 2015-03-31
-- @desc Upgrade all tables in opencart 1.5.6.4 to 2.0.1.1
-- -----------------------------------------------------------------
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
@felipemarques
felipemarques / cielo.sh
Last active August 29, 2015 14:15 — forked from vicmagpac/cielo.sh
#!/bin/bash
if [ $EUID != 0 ]; then
echo 'Você precisa ser root para instalar certificados.'
exit $?
fi
# Diretório onde os certificados serão instalados
cert_path=`openssl version -d|sed 's/.*\"\(.*\)\"/\1/g'`/certs
# Path para o certificado da Cielo