- Servicos de HOST
- Internacional
- Heroku -
- Azure -
- Docker -
- Digital Ocean -
- Amazom AWS -
- Nacional
- LocalWeb
This file contains 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
https://www.digitalocean.com/community/tutorials/como-instalar-o-java-no-ubuntu-com-apt-get-pt |
Environment - Lugares para configurar variaveis de ambiente. vi ~/.profile vi /etc/profile vi ~/.bashrc vi /etc/environment
Refresh ex: source /etc/emvoronmemt
Veiw
This file contains 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
sudo apt-get install ubuntu-make | |
sudo apt-get install ubuntu-make | |
sudo service gdm restart | |
sudo dpkg-reconfigure gdm | |
This file contains 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
-- INICIO - CATALOGOITEM - Criando FUNCTION E TRIGGER. | |
CREATE OR REPLACE FUNCTION catalogo.fn_h_catalogoitem() | |
RETURNS trigger LANGUAGE plpgsql | |
AS | |
'begin | |
INSERT INTO catalogo.h_catalogoitem | |
( | |
ctiid, ctinome, ctidsc, ctistatus, ctilinkreferencia, ctiitemrelacionado, ctlcod, grdid, gpiid, sgiid, apsid, undid, arqid, | |
ctidtcadastro, ctidtalteracao, usucpfcadastro, usucpfalteracao |
This file contains 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
FROM ubuntu:16.04 | |
MAINTAINER ruyjfs@gmail.com | |
RUN apt-get update && apt-get install -y nginx && apt-get clean && /etc/init.d/nginx start | |
LABEL Description="Webserver" | |
VOLUME /var/www/html | |
EXPOSE 80 |
This file contains 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
WITH RECURSIVE cte_recursiva (entid,entnome,orgentidpai,seq,path, catid, orgstatus ) | |
AS | |
( | |
SELECT org.entid, ent.entnome, org.orgentidpai, 0 seq, CAST (org.entid AS varchar) as path, cat.catid, org.orgstatus | |
FROM entidade.organograma as org | |
INNER JOIN entidade.entidade as ent on ent.entid = org.entid | |
LEFT JOIN entidade.categoriaorganograma AS cat ON cat.catid = org.catid | |
WHERE org.orgentidpai = 756433 -- Filho da auditoria Interna | |
UNION ALL | |
SELECT g.entid,e.entnome, g.orgentidpai, seq+1, path || '>' || g.entid, cat.catid, g.orgstatus |
This file contains 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# Run container Nginx | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-nginx-debian -p 80:80 culturagovbr/web-nginx-debian:0.1 | |
# Run container Nginx | PHP 5 | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-nginx-debian -p 80:80 --add-host local.salic:127.0.0.1 culturagovbr/web-nginx-php5-debian | |
# Run container Nginx | PHP 7 | Debian | |
docker run -it -v /var/www/:/var/www/ --name webserver-nginx-debian -p 80:80 culturagovbr/web-nginx-php7-debian:0.1 | |
# Run container Apache | Debian |
#Debug
- Go to Live Templates
- Change default expand with Tab for Space
- Create a templates for a language PHP.
Abbvreviation: v
echo '
'; var_dump($END$); Define applicable context to PHP.
Abbvreviation: vx
OlderNewer