Skip to content

Instantly share code, notes, and snippets.

View jrmessias's full-sized avatar
:octocat:
[<(BR)>]

Júnior Messias jrmessias

:octocat:
[<(BR)>]
View GitHub Profile
@jrmessias
jrmessias / index.html
Created March 9, 2016 23:40
Estrutura básica de um arquivo html
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="estilo.css">
<title></title>
</head>
<body>
</body>
@jrmessias
jrmessias / index.html
Created March 10, 2016 00:26
Estrutura básica e tags HTML - 1
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="estilo.css">
<title></title>
<!-- comentado para não redirecionar para o google -->
<!--<meta http-equiv="refresh" content="10;url=http://google.com">-->
</head>
<body bgcolor="#FFFFFF" text="#000000">
@jrmessias
jrmessias / index.html
Created March 10, 2016 00:27
Estrutura básica e tags HTML - 2
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="estilo.css">
<title></title>
<!-- comentado para não redirecionar para o google -->
<!--<meta http-equiv="refresh" content="10;url=http://google.com">-->
</head>
<body bgcolor="#FFFFFF" text="#000000">
@jrmessias
jrmessias / hosts
Last active February 7, 2017 15:46
VirtualHost dinâmico (Apache 2.4 + Acrylic DNS)
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@jrmessias
jrmessias / form.html
Created March 22, 2016 03:23
Campos de formulários - HTML(5)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Formulário</title>
</head>
<body>
<form>
<label for="text">Text</label>
<input type="text" name="text" id="text" placeholder="text" required="required"> * Obrigatório
@jrmessias
jrmessias / 01_css.css
Created April 9, 2016 02:44
Estrutura Básica CSS - 3 formas de inserir CSS
h3{
color: orange;
}
@jrmessias
jrmessias / links.css
Last active April 9, 2016 03:21
Efeitos CSS utilizando pseudo-classes na tag a
body {
font-size: 14px;
}
/* em: relativo ao tamanho da fonte ('font-size') herdada; */
.em div{
font-size: 1.2em;
}
/* rem: relativo ao root (body); */
@jrmessias
jrmessias / Vagrantfile
Created August 23, 2016 20:44
Vagrant - Ubuntu
# -*- mode: ruby -*-
# vi: set ft=ruby :
=begin
##### CONF
os: ubuntu/xenial64
ip: 192.168.1.58
software:
@jrmessias
jrmessias / create_database.sql
Created September 2, 2016 18:35
Criação de banco de dados e privilégios
CREATE DATABASE [database];
-- Privilégios Locais
CREATE USER '[database]'@'localhost' IDENTIFIED BY '[senha]';
GRANT ALL PRIVILEGES ON [database].* TO '[database]'@'localhost';
FLUSH PRIVILEGES;
-- Privilégios Externos
CREATE USER '[database]'@'%' IDENTIFIED BY '[senha]';
GRANT ALL PRIVILEGES ON [database].* TO '[database]'@'%';