Skip to content

Instantly share code, notes, and snippets.

View felipemarques's full-sized avatar

Felipe Marques felipemarques

View GitHub Profile
@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
-- -----------------------------------------------------------------
-- 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;
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.
@felipemarques
felipemarques / PasswordBroker.php
Last active July 2, 2016 23:51 — forked from jamesfairhurst/PasswordBroker.php
Laravel 5.2 Queue Password Reset Email
<?php
namespace App;
use Illuminate\Auth\Passwords\PasswordBroker as IlluminatePasswordBroker;
class PasswordBroker extends IlluminatePasswordBroker
{
/**
* Send the password reset link via e-mail in a queue
## 1) Requirements
* [nginx](https://www.nginx.com/)
* [php-fpm](http://php-fpm.org/)
* [php >= 5.5.x](http://php.net)
## 2) Install PHP & Nginx Environment on Ubuntu/Debian/Mint
```
$ sudo apt-get install nginx -y && /
@felipemarques
felipemarques / dev-admin-api.joox.io.conf
Last active March 15, 2020 12:17
Joox Nginx Configuration
upstream dev-admin-api {
server 127.0.0.1:9000;
}
server {
listen 443;
client_max_body_size 100m;
server_name dev-admin-api.joox.io;
ssl on;
upstream dev-maker-api {
server 127.0.0.1:9000;
}
server {
listen 443;
client_max_body_size 100m;
server_name dev-maker-api.joox.io;
ssl on;
server {
listen 80;
listen 443 ssl http2;
server_name mydomain.com.br;
root "/home/vagrant/www/mydomain.com.br/public";
index index.html index.htm index.php;
charset utf-8;
<?php
class ApiRest
{
protected $apiAdminEndpoint;
/**
* @param $url
* @param array $headers
* @return mixed
@felipemarques
felipemarques / REQUISITOS
Last active August 7, 2019 14:40
Avaliação Técnica - Vaga Analista Desenvolvedor Pleno
# Informacoes Gerais
- Criar um projeto em laravel na versão 5.6.39
- configurar o ambiente do projeto utilizando docker ( Dockerfile e docker-compose.yaml )
- utilizar a lib https://github.com/nWidart/laravel-modules/ versão 3.2.1
- sistema básico de login utilizando facebook como provider ( instalar lib laravel/socialite 3.0 )
- utilizar bootstrap ou qualquer outro template que utilize bootstrap 3
- versionar o projeto para um repositorio git remoto ( pode ser github, bitbucket, gitlab, ou ate mesmo um servidor git proprio )
# Sobre o database