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
| -- Comando para logar como admin no postgres | |
| $ sudo -u postgres psql postgres | |
| --Comandos dentro do psql | |
| -- Cria o usuário sa_projeto com a senha projeto_senha | |
| CREATE USER sa_projeto WITH PASSWORD 'projeto_senha' CREATEDB; | |
| -- cria o banco de dados projeto | |
| CREATE DATABASE projeto WITH OWNER sa_projeto; | |
| -- acessa o banco de dados projeto |
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
| Caso dê erro ao numa instalacao compilada do python, tem que remover os links simbólicos para o python, e acrescentar novamente os links para os pacotes estáveis do python | |
| sudo ln -sf /usr/bin/python2.7 /usr/bin/python | |
| sudo ln -sf /usr/bin/python2.7 /usr/bin/python |
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
| #####CONFIGURAÇÕES BÁSICAS SISTEMA ######### | |
| CFLAGS="-march=bdver3 -fomit-frame-pointer -O2 -pipe" | |
| CXXFLAGS="${CFLAGS}" | |
| CHOST="x86_64-pc-linux-gnu" | |
| FEATURES="parallel-fetch parallel-install sandbox " | |
| ACCEPT_KEYWORDS="amd64" | |
| MAKEOPTS="-s -j5" #número de nucleos +1, se tem quatro núcleos vira 5 | |
| ACCEPT_LICENSE="*" #aceitar automaticamente as licenças | |
| AUTOCLEAN="yes" #limpar automaticamente |
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
| USE="-browser-integration -consolekit -display-manager -grub -gtk networkmanager -plymouth -pulseaudio -sddm -wallpapers" emerge --ask kde-plasma/plasma-meta | |
| emerge --ask kde-apps/kde-apps-meta | |
| emerge --ask net-im/telegram-desktop-bin |
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
| GNU nano 2.9.2 /etc/portage/make.conf Modified | |
| #antiga | |
| #CFLAGS="-march=bdver3 -O2 -pipe" | |
| #CXXFLAGS="${CFLAGS}" | |
| #CHOST="x86_64-pc-linux-gnu" | |
| #CPU_FLAGS="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4$ | |
| #ACCEPT_KEYWORDS="amd64" | |
| #MAKEOPTS="-j5" | |
| #ACCEPT_LICENSE="*" | |
| #AUTOCLEAN="yes" |
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
| #passo 1: Crie o database | |
| #passo 2: dê permissões para alterar o database, ou use como root mesmo | |
| #passo 3: faça o comando abaixo: | |
| programa servidor database tabela p/criar user senha arquivo.dbf | |
| sudo dbf2mysql -h localhost -q -d incidencia_solar -t incidencia_solar_parana -c -U root -P abc BANCO_INCIDENCIA_SOLAR_NO_PARANA.dbf | |
| depois acesse via phpmyadmin e transforme num sql |
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
| -- phpMyAdmin SQL Dump | |
| -- version 4.6.6deb4 | |
| -- https://www.phpmyadmin.net/ | |
| -- | |
| -- Host: localhost:3306 | |
| -- Tempo de geração: 20/10/2018 às 15:11 | |
| -- Versão do servidor: 10.1.26-MariaDB-0+deb9u1 | |
| -- Versão do PHP: 7.0.30-0+deb9u1 | |
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
| // var x = document.getElementById("demo"); | |
| function getLocation() { | |
| if (navigator.geolocation) { | |
| navigator.geolocation.getCurrentPosition(showPosition); | |
| } else { | |
| x.innerHTML = "Geolocation is not supported by this browser."; | |
| } |
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
| -- phpMyAdmin SQL Dump | |
| -- version 4.6.6deb4 | |
| -- https://www.phpmyadmin.net/ | |
| -- | |
| -- Host: localhost:3306 | |
| -- Tempo de geração: 20/10/2018 às 10:04 | |
| -- Versão do servidor: 10.1.26-MariaDB-0+deb9u1 | |
| -- Versão do PHP: 7.0.30-0+deb9u1 | |
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
| import java.io.IOException; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.Set; | |
| import javax.json.Json; |