Skip to content

Instantly share code, notes, and snippets.

Tomas Dvorak todvora

Block or report user

Report or block todvora

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View playground-certificate.pem
MIIGpTCCBI2gAwIBAgIEAKun+jANBgkqhkiG9w0BAQsFADB/MQswCQYDVQQGEwJDWjEoMCYGA1UEAwwfSS5DQSBRdWFsaWZpZWQgMiBDQS9SU0EgMDIvMjAxNjEtMCsGA1UECgwkUHJ2bsOtIGNlcnRpZmlrYcSNbsOtIGF1dG9yaXRhLCBhLnMuMRcwFQYDVQQFEw5OVFJDWi0yNjQzOTM5NTAeFw0xNzA1MjMxMTA0MTFaFw0xODA1MjMxMTA0MTFaMIG3MQswCQYDVQQGEwJDWjEzMDEGA1UEAwwqRWxla3Ryb25pY2vDoSBldmlkZW5jZSB0csW+ZWIgLSBQbGF5Z3JvdW5kMUEwPwYDVQQKDDjEjGVza8OhIHJlcHVibGlrYSAtIEdlbmVyw6FsbsOtIGZpbmFuxI1uw60gxZllZGl0ZWxzdHbDrTEXMBUGA1UEYQwOTlRSQ1otNzIwODAwNDMxFzAVBgNVBAUTDklDQSAtIDEwMzc0NjE5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm74ZYSGp3aworqELDnAL8oi21g5wm3r+FpGxym05/5wbwU2/YNYi7eX/7d4WFbntaUzYN39M+2/uWSAo2F7mOoFM6QQ+1TQw3PcBE2T0V7COXn/6aMeNpIzDot1g0Zq3rbjxq3BBuEtyQjNDdW24r7AeX25sCnz9R7XD/B+wGD33WaYdBWMuXq7KMiaq3EnWLpPnjwn/o8gaix20D8ueevvk8paUIUOrBf1Et9WoWBku68Jnv+EE70ZmHzsIXfguODAiOTI2jLMxVpx1yMmwF3532vJUUvZx95VuRDal0cqrgqPp4m/cxgXqXLwRJACSEkFb+xaf7G428/dpTZiA9QIDAQABo4IB7jCCAeowOAYDVR0RBDEwL4ETZXBvZHBvcmFAZnMubWZjci5jeqAYBgorBgEEAYG4SAQGoAoMCDEwMzc0NjE5MA4GA1UdDwEB/wQEAwIGwDBFBgNVHSAEPjA8
@todvora
todvora / README.md
Last active Feb 12, 2017
Make GitHub gray again!
View README.md

Make GitHub gray again!

This user script for browser is changing the dark GitHub header back to gray. And it's great, it truly is!

Before

Github before

After

Github after

@todvora
todvora / playground.txt
Created Nov 10, 2016
EET response certificate
View playground.txt
[
[
Version: V3
Subject: SERIALNUMBER=ICA - 10374619, O=Česká republika - Generální finanční ředitelství, CN=Elektronická evidence tržeb - Playground, C=CZ
Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11
Key: RSA Public Key
modulus: bc655cd0925cc8cc084d0175bdabe48bc4fc6280001d58b579553245419cc32322cbdc4ff7c5f66906a3804cf203bbcad1373e95e8d662db2be3e124852f46a69023c357ba88debd0c83673d22c45c4aeeb7c910596c794d1696b5c5f61873f05791cfb21acfbc0fec1435ab03ffad85d0813f9dc94e1070ef68e82602994abbf8e8d13c5a4abfa025b14ebd70105a31362bb6dcf332842fcce962c49d949f19db8a24a617aae56bff6bff0ad52eb9d1eb92672c42b2f5fc0c734ba91f89ddb42bf4ae7601e045f4a91a1a3bce717d36beb0ede8b21131e036937d4ff9873d8d6eaf1d319192c78dde2577b4145cb81505e458a090305e8fc6a0adcee1fcd0ff
public exponent: 10001
View log.ws
2016-10-19 13:24:09.908 [main] INFO cz.tomasdvorak.eet.client.logging.WebserviceLogging - Outbound Message
---------------------------
ID: 1
Address: https://pg.eet.cz:443/eet/services/EETServiceSOAP/v3
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], SOAPAction=["http://fs.mfcr.cz/eet/OdeslaniTrzby"]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="1"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-eb327900-8abc-4964-8c63-62828cb27677">MIID6zCCAtOgAwIBAgIEAQAABTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJDWjEaMBgGA1UEAwwRR
View ws.log
2016-07-09 09:31:25.719 [main] INFO cz.tomasdvorak.eet.client.logging.WebserviceLogging - Outbound Message
---------------------------
ID: 1
Address: https://pg.eet.cz:443/eet/services/EETServiceSOAP/v2
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], SOAPAction=["http://fs.mfcr.cz/eet/OdeslaniTrzby"]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="1"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-b2d27ebc-7e12-44d3-b5ab-14a27f9cad4e">MIID6zCCAtOgAwIBAg
View eet.log
2016-07-08 13:55:34.029 [main] INFO cz.tomasdvorak.eet.client.logging.WebserviceLogging - Outbound Message
---------------------------
ID: 1
Address: https://pg.eet.cz:443/eet/services/EETServiceSOAP/v2
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], SOAPAction=["http://fs.mfcr.cz/eet/OdeslaniTrzby"]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="1"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-bc4f4614-981f-4c61-a081-316ae3517227">MIID6zCCAtOgAwIBAg
@todvora
todvora / 75_76.diff
Created Apr 14, 2016
Send to Kindle diff between 1.0.2.75 and 1.0.2.76. More details: http://www.tomas-dvorak.cz/posts/dear-amazon-let-me-fix-that-for-you/
View 75_76.diff
diff --git a/META-INF/manifest.mf b/META-INF/manifest.mf
index 8eb1362..49c8475 100644
--- a/META-INF/manifest.mf
+++ b/META-INF/manifest.mf
@@ -2,8 +2,8 @@ Manifest-Version: 1.0
Name: install.rdf
Digest-Algorithms: MD5 SHA1
-MD5-Digest: MjbpC9Ic30mQUVP+1HnYLg==
-SHA1-Digest: UtuAzxG6Ya00Agg36+3+zYL00lM=
@todvora
todvora / some_links.md
Created Feb 20, 2016 — forked from rponte/some_links.md
Some interesting articles about JPA/Hibernate Multi-Tenancy
@todvora
todvora / elit-cz.md
Created Nov 18, 2015
ecat.elit.cz adblock rules
View elit-cz.md
ecat.elit.cz##.overlay
ecat.elit.cz##.modalBackgroud
ecat.elit.cz###ctl00_inline_content_not_logged
ecat.elit.cz###ctl00_divEmptyDarkOverlayVisible
View StreamOfOptional.java
package optional;
import java.util.Optional;
import java.util.function.Supplier;
import java.util.stream.Stream;
public class StreamOfOptional {
public static void main(String[] args) {
System.out.println("--Before eager--");
You can’t perform that action at this time.