Skip to content

Instantly share code, notes, and snippets.

@jeancx
jeancx / docker.md
Last active December 22, 2017 17:31

1 - Remove all stopped containers

docker container prune

2 - Remove all unused volumes

docker volume prune

3 - Remove unused images

docker image prune

4 - All of the above, in this order: containers, volumes, images

docker system prune

@jeancx
jeancx / teste.json
Last active December 29, 2017 17:13
teste.json
{
"id": 25,
"email": "teste@teste.com.br"
}
@jeancx
jeancx / gist:177b63aaeb6f5c69650844da7541dbb1
Created September 26, 2018 19:37
NfeAutorizacao4.wsdl
<wsdl:definitions
targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
@jeancx
jeancx / teste
Created December 19, 2018 19:16
This file has been truncated, but you can view the full file.
0 F.K032001K 2018110800000001

Exemplo:

EXPLAIN (FORMAT JSON) SELECT * FROM foo;
           QUERY PLAN
--------------------------------
 [                             +
 { +

#Nano syntax highlighting

find /usr/share/nano/ -iname "*.nanorc" -exec echo include {} \; >> ~/.nanorc

#Install older version of Puma

gem install puma -v '3.6.0' -- --with-cppflags=-I/usr/include/openssl-1.0 --with-ldflags=-L/usr/lib/openssl-1.0
<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="NFeAutorizacao4" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" version="1.0" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="nfeDadosMsg">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="lax" />
</xs:sequence>
</xs:complexType>
</xs:element>
<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="NFeAutorizacao4" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" version="1.0" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="nfeDadosMsg">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="lax" />
</xs:sequence>
</xs:complexType>
@jeancx
jeancx / windows-configs.md
Created December 12, 2023 12:52
windows-configs.md

Limit Winat reserved dynamic ports

netsh int ipv4 show dynamicport tcp
netsh int ipv4 set dynamic tcp start=60001 num=5534
netsh int ipv4 show dynamicport tcp