Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Daniel Passos danielpassos

View GitHub Profile
@danielpassos
danielpassos / tgik-004.md
Last active Apr 15, 2019
[TGI Kubernetes 004: RBAC] Step by step used by @jbeda on @TGIK 004 (RBAC) #tgik #document #kubernetes
@danielpassos
danielpassos / android-distribution-certificate.md
Last active Aug 31, 2018
[Android distribution certificate] How to create an Android distribution certificate using keytool #android #cert #keytool
View android-distribution-certificate.md

How to create Android distribution certificate

Use keytool to create a signing key:

keytool -genkey -v -keystore redhat.keystore -alias rhmap -keyalg RSA -keysize 2048 -validity 10000

Export the java keystore key intp pkcs#12 format:

View keybase.md

Keybase proof

I hereby claim:

  • I am danielpassos on github.
  • I am passos (https://keybase.io/passos) on keybase.
  • I have a public key whose fingerprint is 65A4 C36C 691C BE66 A107 06A5 1A0C 01BD 9F81 42B2

To claim this, I am signing this object:

@danielpassos
danielpassos / Pipe Builder.md
Last active Dec 8, 2018
[Builder for Pipe creation] A builder proposal for AeroGear Android Pipe creation #aerogear #agdroid
View Pipe Builder.md

Builder for Pipe creation

// http://myServer/myProject/foo
Pipe<Foo> fooPipe = pipeline.pipe(Foo.class).buildAndAdd();

// http://myServer/myProject/my-crazy-endpoint
Pipe<Bar> barPipe = pipeline.pipe(Bar.class)
        .endpoint("my-crazy-endpoint")
        .name("bad name")
@danielpassos
danielpassos / AliasToBeanResultAdvancedTransformer
Last active Aug 31, 2018
[AliasToBeanResultTransformer] Extende as funcionalidades do AliasToBeanResultTransformer do Hibernate permitindo atribuir valores em diversos niveis. #hibernate
View AliasToBeanResultAdvancedTransformer
import java.util.Collection;
import java.util.List;
import net.vidageek.mirror.dsl.Mirror;
import org.hibernate.HibernateException;
import org.hibernate.transform.ResultTransformer;
/**
*
You can’t perform that action at this time.