Skip to content

Instantly share code, notes, and snippets.

View ruyjfs's full-sized avatar
🎯
Focusing

r u y ruyjfs

🎯
Focusing
View GitHub Profile
@ruyjfs
ruyjfs / configure meteor mobile
Last active June 9, 2016 01:35
setting environment for mobile
https://www.digitalocean.com/community/tutorials/como-instalar-o-java-no-ubuntu-com-apt-get-pt
@ruyjfs
ruyjfs / technology.md
Last active August 10, 2017 20:05
Tecnolodias de desenvolvimento web - Technology development market

web development technologies and mobile applications | Tecnologias de desenvolvimento web

  1. Servicos de HOST
  2. Internacional
  3. Heroku -
  4. Azure -
  5. Docker -
  6. Digital Ocean -
  7. Amazom AWS -
  8. Nacional
  9. LocalWeb
@ruyjfs
ruyjfs / linux-environment.md
Last active June 9, 2016 22:01
Environment key configuration on Linux - Configuração de chaves de ambiente no Linux

Environment - Lugares para configurar variaveis de ambiente. vi ~/.profile vi /etc/profile vi ~/.bashrc vi /etc/environment

Refresh ex: source /etc/emvoronmemt

Veiw

@ruyjfs
ruyjfs / gnome_to_ubuntu
Last active June 27, 2016 04:26
Install Gnome to Ubuntu
sudo apt-get install ubuntu-make
sudo apt-get install ubuntu-make
sudo service gdm restart
sudo dpkg-reconfigure gdm
@ruyjfs
ruyjfs / db_trigger.sql
Last active July 7, 2016 14:42
Trigger to create copies on historical effects (Posgre SQL).
-- 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
@ruyjfs
ruyjfs / Dockerfile.bash
Last active September 27, 2018 20:40
Comandos para docker
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
@ruyjfs
ruyjfs / recursive example SQL.sql
Created July 27, 2016 01:31
Recursive function in Postgre SQL
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
@ruyjfs
ruyjfs / 0_reuse_code.js
Created July 27, 2016 02:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ruyjfs
ruyjfs / culturagovbr-docker-run.bash
Last active April 7, 2021 15:54
Comandos de inicialização dos containers do Ministério da Cultura do Brasil. Startup commands of the containers of the Ministry of Culture of Brazil.
# 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

  1. Go to Live Templates
  2. Change default expand with Tab for Space
  3. Create a templates for a language PHP. Abbvreviation: v echo '
    ';
    var_dump($END$);
    Define applicable context to PHP.

Abbvreviation: vx