Skip to content

Instantly share code, notes, and snippets.

View facilita-tecnologia's full-sized avatar

Facilita Tecnologia facilita-tecnologia

View GitHub Profile
@facilita-tecnologia
facilita-tecnologia / P00001.xml
Created February 5, 2020 23:58
Modelo de XML Importação de Pedidos EGI
<?xml version="1.0" encoding="utf-8"?>
<PEDIDO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<cabecalho>
<id>17</id>
<id_aplicativo>19</id_aplicativo>
<id_empresa>1</id_empresa>
<id_vendedor>1</id_vendedor>
<id_tabela>0</id_tabela>
<id_rota>0</id_rota>
<data>2020-02-05</data>
@facilita-tecnologia
facilita-tecnologia / gist:80b390f448687d608a4b0ce038823da7
Created February 1, 2020 05:45
Converter sql para classe C# online
https://www.converttoany.com/convert-sql-table-to-class
https://computingforgeeks.com/how-to-install-php-7-3-on-centos-7-fedora/
<VirtualHost *:80>
DocumentRoot "/www/example1"
ServerName blackdog.straight8.com
ServerAlias whitedog.straight8.com
# Other directives here
</VirtualHost>
datasets: [{
label: "Faturamento",
lineTension: 0.3,
backgroundColor: "rgba(78, 115, 223, 0.05)",
borderColor: "rgba(78, 115, 223, 1)",
pointRadius: 3,
pointBackgroundColor: "rgba(78, 115, 223, 1)",
pointBorderColor: "rgba(78, 115, 223, 1)",
pointHoverRadius: 3,
pointHoverBackgroundColor: "rgba(78, 115, 223, 1)",
@facilita-tecnologia
facilita-tecnologia / EntityFramework.cs
Last active December 16, 2019 18:48
update com entity framework
// Localizo o objeto no vanco de dados
var Objeto = context.Set<Identificadores>().FirstOrDefault(u => u.EmpresaId == EmpresaId);
// Faço as modanças que desejo fazer
Objeto.Contador = 1323;
// Atacho
context.Set<Identificadores>().Attach(Objeto);
// Inforço os campos que foram alterados
CREATE TABLE `tb_nf_entrada` (
`ID_COMPRA` int(11) NOT NULL AUTO_INCREMENT,
`CRT` longtext,
`modFrete` int(11) NOT NULL,
`indFinal` int(11) NOT NULL,
`idDest` int(11) NOT NULL,
`indPres` int(11) NOT NULL,
`indPag` int(11) NOT NULL,
`tpAmb` int(11) NOT NULL,
`Fornecedor_Id` int(11) NOT NULL,
@facilita-tecnologia
facilita-tecnologia / gist:2fd24543495fa3b9ce2e137213fddb59
Created December 6, 2019 13:44
Instalar PostGIS 2.4 Ubunto 18 Postgre 9.4
apt install postgis-2.4
sudo -u postgres psql
CREATE EXTENSION adminpack;
CREATE DATABASE dbms_refood;
\connect dbms_refood;
CREATE SCHEMA postgis;
@facilita-tecnologia
facilita-tecnologia / gist:06957699f8475ad63b2399f90bc33d58
Created December 5, 2019 03:46
Resolver erro services.json failed to open stream: Permission denied in Laravel 4 no laravel 4
setenforce 0
setsebool -P httpd_can_network_connect_db on
@facilita-tecnologia
facilita-tecnologia / gist:67f0cc074b39a20b4bed5b0f2befe050
Created December 2, 2019 23:58
Resolver erro 404 no laravel 5.8
mcedit /etc/apache2/apache2.conf
DocumentRoot "/var/www/html/laravel/public/"
<Directory "/var/www/html/laravel/public">
Allowoverride All mudar para all
</Directory>
salvar e reiniciar o serviço