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
| (1.0ms) BEGIN | |
| SQL (1.6ms) INSERT INTO "movimentacaocontabil" ("avulsa", "dataalteracao", "datacadastro", "datamovimentacao", "empresa_id", "filial", "lote", "valor") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["avulsa", "t"], ["dataalteracao", "2014-05-20 18:50:25.841362"], ["datacadastro", "2014-05-20 18:50:25.841078"], ["datamovimentacao", "2014-05-19"], ["empresa_id", 32], ["filial", "f"], ["lote", 783], ["valor", "5160.69"]] | |
| SQL (1.8ms) INSERT INTO "lancamentocontabil" ("conta_id", "datacadastro", "datalancamento", "empresa_id", "filial", "historico", "tipo", "valor") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["conta_id", 406258], ["datacadastro", "2014-05-20 18:50:25.863252"], ["datalancamento", "2014-05-19 03:00:00.000000"], ["empresa_id", 32], ["filial", "f"], ["historico", "PROGER FINANCIAMENTO PLATAFORMAS"], ["tipo", "D"], ["valor", "5160.69"]] | |
| SQL (2.5ms) INSERT INTO "movimentacaocontabil_lancamentocontabil" DEFAULT VALUES RETURNING "movimentacaocontabil_id" | |
| P |
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
| create_table "lancamentocontabil", force: true do |t| | |
| t.datetime "datacadastro" | |
| t.datetime "datalancamento", null: false | |
| t.boolean "filial" | |
| t.text "historico" | |
| t.string "tipo", limit: 1 | |
| t.decimal "valor", precision: 12, scale: 2 | |
| t.integer "conta_id", limit: 8 | |
| t.integer "empresa_id", limit: 8, null: false | |
| t.text "complemento" |
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
| require 'spec_helper' | |
| describe StatusController do | |
| describe "GET status_jid" do | |
| it "deve retornar o status do job" do | |
| jid = "2a5ee8e6244fffa63263f9d6" | |
| get 'status_jid', {jid: jid} | |
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
| @Embedded | |
| private Log log = new Log(); |
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
| sudo ip addr add 192.168.0.183/24 dev eth0 #Configura o ip | |
| ip route add default via 192.168.0.106 #Configura o proxy | |
| sudo ip link set dev eth0 up #Sobe a interface | |
| # Verificar o arquivo /etc/resolv.conf, deve conter as seguintes linhas | |
| nameserver 8.8.8.8 | |
| nameserver 8.8.4.4 | |
| #Subir o postgres | |
| su - postgres #Loga como superuser postgres |
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
| INSERT INTO pais (id, nome) VALUES (132, 'Afeganistão'); | |
| INSERT INTO pais (id, nome) VALUES (175, 'Albânia, República da'); | |
| INSERT INTO pais (id, nome) VALUES (230, 'Alemanha'); | |
| INSERT INTO pais (id, nome) VALUES (310, 'Burkina Faso'); | |
| INSERT INTO pais (id, nome) VALUES (370, 'Andorra'); | |
| INSERT INTO pais (id, nome) VALUES (400, 'Angola'); | |
| INSERT INTO pais (id, nome) VALUES (418, 'Anguilla'); | |
| INSERT INTO pais (id, nome) VALUES (434, 'Antígua e Barbuda'); | |
| INSERT INTO pais (id, nome) VALUES (477, 'Antilhas Holandesas'); | |
| INSERT INTO pais (id, nome) VALUES (531, 'Arábia Saudita'); |
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
| CREATE TABLE estado ( | |
| id integer NOT NULL, | |
| nome character varying(50) NOT NULL, | |
| sigla character varying(3) NOT NULL, | |
| pais_id bigint | |
| ); | |
| INSERT INTO estado (id, nome, sigla, pais_id) VALUES (17, 'Tocantins', 'TO', 1058); | |
| INSERT INTO estado (id, nome, sigla, pais_id) VALUES (11, 'Rondônia', 'RO', 1058); | |
| INSERT INTO estado (id, nome, sigla, pais_id) VALUES (12, 'Acre', 'AC', 1058); |
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
| CREATE TABLE municipio ( | |
| id integer NOT NULL, | |
| nome character varying(100) NOT NULL, | |
| estado_id bigint NOT NULL | |
| ); | |
| INSERT INTO municipio (id, nome, estado_id) VALUES (5300108, 'Brasília', 53); | |
| INSERT INTO municipio (id, nome, estado_id) VALUES (1400050, 'Alto Alegre', 14); | |
| INSERT INTO municipio (id, nome, estado_id) VALUES (1400027, 'Amajari', 14); | |
| INSERT INTO municipio (id, nome, estado_id) VALUES (1400100, 'Boa Vista', 14); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.reficio.rcp</groupId> | |
| <artifactId>example-p2-site</artifactId> | |
| <packaging>pom</packaging> | |
| <version>1.0.0</version> |
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
| #!/bin/bash | |
| oldbase="gruber" | |
| newbase="gruberteste" | |
| nomearquivo="$oldbase-$(date +%d%m%Y-%H%M%S).sql" | |
| outputfile="/home/gts/sql-base-fiscal/$nomearquivo" | |
| httpserver="/srv/http/" | |
| echo "===========================================" | |
| echo "Fazendo dump da base \"$oldbase\"" |