Skip to content

Instantly share code, notes, and snippets.

View hernandev's full-sized avatar

Diego Hernandes hernandev

View GitHub Profile
# HTTP Application
server {
# Application Path
root /path/to/app/public/path;
# Index Application File
index index.php;
# segunda versão da sintaxe do docker-compose
version: '2'
# volumes para dados persistentes
volumes:
# persistiremos os dados do MySQL
sandbox-mysql-data:
driver: local
# persistiremos os dados do Redis
sandbox-redis-data:
<?php
namespace Codecasts\Core\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class RedirectIfWrongUrlOrProtocol
{
/** @var Request */
@hernandev
hernandev / nginx.conf
Created December 8, 2017 07:35
Vue.JS redirect history mode URL's to hash mode URL's. (Using Nginx)
server {
listen 80 default_server;
listen [::]:80 default_server;
root /web;
index index.html;
location / {
try_files $uri $uri/ @rewrites;
@hernandev
hernandev / Dockerfile
Last active December 9, 2017 22:08
dockervel
# from.
FROM debian:jessie
# maintainer.
MAINTAINER Diego Hernandes <diego@hernandev.com>
# update package database.
RUN apt -y update
# upgrade packages.
@hernandev
hernandev / index.html
Created February 15, 2018 06:27
BLOCKER.com.br // source http://jsbin.com/vaguyuh
<!DOCTYPE html>
<html>
<head>
<title>BLOCKER.com.br</title>
<style id="jsbin-css">
body {
background: black;
}
.blocker-page {
@hernandev
hernandev / index.html
Created February 15, 2018 06:41
BLOCKER.com.br // source http://jsbin.com/vaguyuh
<!DOCTYPE html>
<html>
<head>
<title>BLOCKER.com.br</title>
<style id="jsbin-css">
body {
background: black;
}
.blocker-page {
@hernandev
hernandev / index.html
Created February 15, 2018 07:43
BLOCKER.com.br // source http://jsbin.com/vaguyuh
<!DOCTYPE html>
<html>
<head>
<title>BLOCKER.com.br</title>
<style id="jsbin-css">
body {
background: black;
position: relative;
}