Skip to content

Instantly share code, notes, and snippets.

View hernandev's full-sized avatar

Diego Hernandes hernandev

View GitHub Profile
@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 / docker-compose.yml
Created August 19, 2016 19:18
Ambientum VueJS Development
version: '2'
services:
# Web server - For live reload and development
# This environment can be used to run npm and node
# commands as well
dev:
image: ambientum/node:6
command: node build/dev-server.js
volumes:
@hernandev
hernandev / docker-compose.yml
Created August 18, 2016 19:30
Vue Docker Compose
version: '2'
services:
# Web server - For live reload and development
# This environment can be used to run npm and node
# commands as well
dev:
image: ambientum/node:6
command: node build/dev-server.js
volumes:
@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;
}
@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 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 / 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.
# HTTP Application
server {
# Application Path
root /path/to/app/public/path;
# Index Application File
index index.php;
<?php
namespace Codecasts\Core\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class RedirectIfWrongUrlOrProtocol
{
/** @var Request */
# 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: