Skip to content

Instantly share code, notes, and snippets.

View facilita-tecnologia's full-sized avatar

Facilita Tecnologia facilita-tecnologia

View GitHub Profile
insert into usuario (email,inativo,login,nome,perfil,senha)values('nain@nin.com','','nain','nain','1',md5('123456'));
@facilita-tecnologia
facilita-tecnologia / Elementos do atributo type HTML5
Last active December 19, 2015 17:19
Elementos do atributo type HTML5
elementos do atributo input = text, search, email, url, tel, range, number e date
Oracle 12c com foco em cloud computing
@facilita-tecnologia
facilita-tecnologia / Instalação do Java 8 no Debian
Created February 24, 2014 05:05
Instalação do Java 8 no Debian
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
@facilita-tecnologia
facilita-tecnologia / Instalar Java 8 no Ubunto
Created February 24, 2014 05:07
Instalar Java 8 no Ubunto
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
@facilita-tecnologia
facilita-tecnologia / Secure Admin must be enabled to access the DAS remotely.
Created February 24, 2014 05:58
Configuration Error Secure Admin must be enabled to access the DAS remotely.
Configuration Error Secure Admin must be enabled to access the DAS remotely.
Para corrigir a mensagem acima ao logar no console do Glassfish 4.0, execute os seguintes passo.
./asadmin change-admin-password
O assistente vai pedir um nome de usuário coloque Admin pressione enter
vai pedir uma senha atual deixe vazio pressione enter
em seguida vai pedir a nova senha.
@facilita-tecnologia
facilita-tecnologia / gist:9382426
Created March 6, 2014 04:16
Modal na edição do registro obs: somente um exemplo
<table class="table">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Ações</th>
</tr>
</thead>
@facilita-tecnologia
facilita-tecnologia / Registros.html
Created March 6, 2014 15:22
Exemplo de modal para edição de registro com php
<table>
<thead>
<tr>
<th>ID</th>
<th>Nome</th>
<th>Placa</th>
<th></th>
</tr>
</thead>
<tbody>
# include <stdio.h>
# include <string.h>
# include <ctype.h>
# include <stdlib.h>
// Programa agenda.c
typedef struct
{
char nome[31];
@facilita-tecnologia
facilita-tecnologia / gist:9704771
Created March 22, 2014 10:36
Query Consultar SMS Enviado
SET OPTION SQL_BIG_SELECTS = 1;
SELECT recebidos.idrecebido, recebidos.remetente As Numero , relatorio.textosms As Enviado , recebidos.textosms As Resposta
FROM recebidos INNER JOIN relatorio ON recebidos.remetente = relatorio.destinatario
WHERE relatorio.dataenvio BETWEEN '2014-03-21 00:00:00'
and '2014-03-21 23:20:39' AND relatorio.cliente = 46 ORDER BY
recebidos.idrecebido DESC LIMIT 100 ;