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
{"id_agente":"1","port":"/dev/ttyUSB0","mysql_user":"fairtek","mysql_pass":"FSNjMZNhL6PzhTSR", | |
"mysql_url":"jdbc:mysql://oficina.hml.oficina5.com.br:3306/fairtek?serverTimezone=UTC&useSSL=false" | |
} |
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
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
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
{ | |
"transportadora": { | |
"-dthratualizacao": "06/12/2017 11:39", | |
"notasfiscais": { | |
"origem": [ | |
{ | |
"-cnpj": "60744463005078", | |
"notafiscal": [ | |
{ | |
"-numero": "84229849", |
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
showAlertError(error) { | |
console.log('showAlert'); | |
console.log(error); | |
$('div.error').text(error); | |
$('div.error').removeAttr('hidden'); | |
} | |
errorSend(err) { | |
var user = JSON.parse(window.localStorage.getItem('user')); | |
//var errJson = ""; |
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
INSTALAÇÃO ORACLE INSTANT CLIENT - UBUNTU | |
01 - BAIXAR NO SITE DA ORACLE OS ARQUIVO RPM: | |
oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm | |
oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm | |
oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm | |
02 - INSTALAR OS 2 PACOTES | |
sudo apt-get install libaio1 | |
sudo apt-get install alien |
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
0|server | Error | |
0|server | at api.alterarStatusCarga.then.catch (/home/ec2-user/server/src/modOferecimento/controllers/OferecerController.js:685:29) | |
0|server | at <anonymous> | |
0|server | at runMicrotasksCallback (internal/process/next_tick.js:121:5) | |
0|server | at _combinedTickCallback (internal/process/next_tick.js:131:7) | |
0|server | at process._tickCallback (internal/process/next_tick.js:180:9) | |
0|server | TypeError: Cannot read property 'length' of undefined | |
0|server | at Object.api.alterarStatusCarga (/home/ec2-user/server/src/modOferecimento/controllers/OferecerController.js:632:48) | |
0|server | at api.oferecer (/home/ec2-user/server/src/modOferecimento/controllers/OferecerController.js:679:19) | |
0|server | at <anonymous> |
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
#Erro de rota no Angular 4, após gerar versão de produção (Apache) | |
#$ ng build --prod | |
#Acrescentar na pasta dist/ um arquivo com nome de .htaccess com os dados abaixo! | |
RewriteEngine on | |
# Don't rewrite files or directories | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /home/vanessa/oferecimento/dist | |
ServerName oferecimento.dev.oficina5.com.br | |
ServerAlias oferecimento.dev.oficina5.com.br | |
<Directory "/home/vanessa/oferecimento/dist/"> | |
AllowOverride All | |
</Directory> |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /home/vanessa/oferecimento/dist | |
ServerName oferecimento.dev.oficina5.com.br | |
ServerAlias oferecimento.dev.oficina5.com.br | |
<Directory "/home/vanessa/oferecimento/dist/"> | |
AllowOverride All | |
</Directory> |
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 ijson | |
jsonData = ijson.items(open('file_path/file.json', encoding='latin-1'), 'DESPESA.item') | |
for prefix in jsonData: | |
for key,value in prefix.items(): | |
print('key: ', key) | |
print(' value: ', value) |