This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ----------------------------------------------------------------- | |
-- SQL to Upgrade Opencart 1.5.6.4 database to Opencart 2.0.1.1 | |
-- @theme ULTIMATUM | |
-- @author Felipe Marques | |
-- @email [email protected] | |
-- @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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 && / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ApiRest | |
{ | |
protected $apiAdminEndpoint; | |
/** | |
* @param $url | |
* @param array $headers | |
* @return mixed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
OlderNewer