Skip to content

Instantly share code, notes, and snippets.

View todvora's full-sized avatar

Tomas Dvorak todvora

View GitHub Profile
@todvora
todvora / webhook.java
Created October 25, 2022 08:54
Webhook tester
import com.sun.net.httpserver.HttpServer;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;
public class Webhook {
@todvora
todvora / oebb.js
Created January 28, 2021 07:17
Open login popup automatically on tickets.oebb.at
// ==UserScript==
// @name ÖBB Login trigger
// @version 1
// @match https://tickets.oebb.at/*
// ==/UserScript==
const timer = setInterval(function(){
const loginLink = document.querySelector('div.login-body a');
if(loginLink !== null) {
@todvora
todvora / playground-certificate.pem
Last active May 23, 2018 18:10
EET webservice log
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 February 12, 2017 09:06
Make GitHub gray again!

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 November 10, 2016 09:12
EET response certificate
[
[
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
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
@todvora
todvora / ws.log
Created July 9, 2016 07:31
EET 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
@todvora
todvora / eet.log
Created July 8, 2016 18:07
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 April 14, 2016 13:56
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/
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 February 20, 2016 17:33 — forked from rponte/some_links.md
Some interesting articles about JPA/Hibernate Multi-Tenancy