Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jcranky on github.
  • I am jcranky (https://keybase.io/jcranky) on keybase.
  • I have a public key ASAcJeqo1VJW6YxxTRTEj3pJrU2QUOM0SF-u4rqK4hM07go

To claim this, I am signing this object:

@jcranky
jcranky / ReqEnvioLoteRPS.xsd
Created October 30, 2014 13:07
xsds para envio de nfse da prefeitura de campinas
<xs:schema xmlns:tipos="http://localhost:8080/WsNFe2/tp"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:ns1="http://localhost:8080/WsNFe2/lote" targetNamespace="http://localhost:8080/WsNFe2/lote">
<xs:import namespace="http://localhost:8080/WsNFe2/tp"
schemaLocation="Tipos.xsd" />
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="xmldsig-core-schema_v1.01.xsd" />
<xs:element name="ReqEnvioLoteRPS">
<xs:annotation>
<xs:documentation>Schema utilizado para envio de lote de RPS.</xs:documentation>
@jcranky
jcranky / s3-img-thumber
Last active November 4, 2023 00:19
Script scala para baixar imagens do Amazon S3, criar um thumb e subí-lo de volta para lá. Video explicando o Script: https://www.youtube.com/watch?v=BR4OUTAF8T8. | ----- | Scala script that downloads images from Amazon S3, creates a thumb and sends it back. The video mentioned above explains the code, but it is only in portuguese. I might add ca…
import com.amazonaws.auth.PropertiesCredentials
import com.amazonaws.services.s3.AmazonS3Client
import com.amazonaws.services.s3.model._
import java.io.File
import scala.collection.JavaConverters._
object migrator extends App {
val imagens = new File("/tmp/imagens")
if (!imagens.exists) imagens.mkdir
@jcranky
jcranky / akka.xml
Last active October 7, 2015 10:28
mvn assembly for akka micro kernel
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>akka</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://www.prefeitura.sp.gov.br/nfe"
xmlns:tipos="http://www.prefeitura.sp.gov.br/nfe/tipos"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<xs:import namespace="http://www.prefeitura.sp.gov.br/nfe/tipos" schemaLocation="TiposNFe_v01.xsd" />
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v01.xsd" />
<xs:element name="PedidoEnvioLoteRPS">
<xs:annotation>
<xs:documentation>Schema utilizado para PEDIDO de envio de lote de RPS.</xs:documentation>