Skip to content

Instantly share code, notes, and snippets.

@morawskim
morawskim / extract-x509-cert
Created March 9, 2024 10:39
extract-x509-cert
#!/bin/sh
#Shell script to extract x509 certificate
#Author: Marcin Morawski <[email protected]>
#Exit immediately if a command exits with a non-zero status.
set -e
#Avoid accidental overwriting of a file
set -o noclobber
@morawskim
morawskim / RPM-GPG-KEY
Last active June 20, 2024 09:39
morawskim Signing Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGOgamIBDAC3/aixzV47loytHke+c8W0whrBbZ8VlRptFGNu8Hv6VGu/9K9e
JZNSrB+0fGsFqUl66HWTQiWBjk0w011g/IrnApv3GqcbqXa4ELpIucaXbzxdpTne
K5NsLfWkcwRnPm1QTbbdGG3hGQ/sZiT3SPHiAzMkzLBukmxMl8jzqCZIHbHEXerg
3GIcskVouLWQkc9kAp3qDExzSshuxVSFzWUqvel5CKn+Uuy+mWxWfxBpv5fP1bnq
eOk3Nc4PVQigb4uld8sZRR0eT+5+QAmuNm017dzDH0I6WESvosB2VbotyXMU41Cv
kR/E4vzONqDdlmVFbw8E1Wj142nVMu7QSGeocHVP/b1nJ5Hf3CgcFZUZ6tgQgMTk
eBoiEK2egbkBPvWv6ga5xbw2Sb2DE+WkqEdU+gjibdkZUDAZBmT4RCiMvjnULt5z
aC8zx1RM7M3XLb4P5xfND3rDqKbZH5LXYY4GuwD5FdPEVSPjTQaAff4QIZQsDFu8
@morawskim
morawskim / sslkeylog.c
Created December 12, 2022 18:00
sslkeylog.c
/*
* Dumps master keys for OpenSSL clients to file. The format is documented at
* https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format
* Supports TLS 1.3 when used with OpenSSL 1.1.1.
*
* Copyright (C) 2014 Peter Wu <[email protected]>
* Licensed under the terms of GPLv3 (or any later version) at your choice.
*
* Usage:
* cc sslkeylog.c -shared -o libsslkeylog.so -fPIC -ldl
We can't make this file beautiful and searchable because it's too large.
Region,Country,Item Type,Sales Channel,Order Priority,Order Date,Order ID,Ship Date,Units Sold,Unit Price,Unit Cost,Total Revenue,Total Cost,Total Profit
Middle East and North Africa,Azerbaijan,Snacks,Online,C,10/8/2014,535113847,10/23/2014,934,152.58,97.44,142509.72,91008.96,51500.76
Central America and the Caribbean,Panama,Cosmetics,Offline,L,2/22/2015,874708545,2/27/2015,4551,437.20,263.33,1989697.20,1198414.83,791282.37
Sub-Saharan Africa,Sao Tome and Principe,Fruits,Offline,M,12/9/2015,854349935,1/18/2016,9986,9.33,6.92,93169.38,69103.12,24066.26
Sub-Saharan Africa,Sao Tome and Principe,Personal Care,Online,M,9/17/2014,892836844,10/12/2014,9118,81.73,56.67,745214.14,516717.06,228497.08
Central America and the Caribbean,Belize,Household,Offline,H,2/4/2010,129280602,3/5/2010,5858,668.27,502.54,3914725.66,2943879.32,970846.34
Europe,Denmark,Clothes,Online,C,2/20/2013,473105037,2/28/2013,1149,109.28,35.84,125562.72,41180.16,84382.56
Europe,Germany,Cosmetics,Offline,M,3/31/2013,754046475,5/3/2013,7964,437.20,
@morawskim
morawskim / 0x66AE3CFE.asc
Created January 23, 2022 10:24
GPG pub key (valid to 2023)
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEYcA1+BYJKwYBBAHaRw8BAQdAyT2p9Fc3oWKr0qsXEtP47/nWv4XgVKyp3xpj
4SD8xjm0JU1hcmNpbiBNb3Jhd3NraSA8bWFyY2luQG1vcmF3c2tpbS5wbD6ImgQT
FgoAQhYhBFXTWuvEH76jfd+v8Cr17vZmrjz+BQJhwDX4AhsDBQkDwpM4BQsJCAcC
AyICAQYVCgkICwIEFgIDAQIeBwIXgAAKCRAq9e72Zq48/hF6AP4zSn5ZIbU5cvOr
hG8Y24bEEsqMgVIcWR/u+BqQuKB9fAD6Ak/z1zrNA6gHIa4UguCvZwHDB1QVwRTv
GfBaivq+qQu4OARhwDX4EgorBgEEAZdVAQUBAQdAM2mZSn89tj5AMYfTPNeIkEAz
MMHnZnt2FFKwrIAuTnsDAQgHiH4EGBYKACYWIQRV01rrxB++o33fr/Aq9e72Zq48
/gUCYcA1+AIbDAUJA8KTOAAKCRAq9e72Zq48/m1/AP0afAfbxQz1XvyonH+aMRyi
@morawskim
morawskim / docs.json
Last active December 5, 2020 13:24
The Universal Control Plane API (openAPI spec)
{
"swagger": "2.0",
"info": {
"description": "The Universal Control Plane API is a REST API, available using HTTPS, that enables programmatic access to swarm resources that are managed by UCP. UCP exposes the full Docker Engine API, so you can extend your existing code with UCP features. The API is secured with role-based access control so that only authorized users can make changes and deploy applications to your Docker swarm.\n\nThe UCP API is accessible in the same IP addresses and domain names that you use to access the web UI. It's the same API that the UCP web UI uses, so everything you can do on the UCP web UI from your browser, you can also do programmatically.\n\nThe system manages swarm resources by using collections, which you access through the `/collection` endpoint. For example, `GET /defaultCollection/\u003cuserID\u003e` retrieves the default collection for a user. [Learn more about resource collections](https://www.docker.com/ucp-3).\n\n- The `/roles` endpoint lets you enumerate and cre
The npm `mdncomp` package was removed.
This gist store build mdncomp package at version 1.23.0.
@morawskim
morawskim / pl.aff
Created October 27, 2018 14:57
PL vocabulary for RocketChat Electron
SET UTF8
TRY aioeznrwcysptkmdłuljągbhęśćóżfńźvqxAIOEZNRWCYSPTKMDŁULJĄGBHĘŚĆÓŻFŃŹVQX
PFX b Y 1
PFX b 0 nie .
SFX a Y 16
SFX a e ych [^i]e
SFX a e ymi [^i]e
@morawskim
morawskim / hostinghouse.pem
Created June 18, 2018 18:33
hostinghouse cert
-----BEGIN CERTIFICATE-----
MIIENzCCAx+gAwIBAgIJAJpDBHfO/U7+MA0GCSqGSIb3DQEBCwUAMIGxMQswCQYD
VQQGEwJQTDEbMBkGA1UECAwSemFjaG9kbmlvcG9tb3Jza2llMREwDwYDVQQHDAhL
b3N6YWxpbjEdMBsGA1UECgwUSW1hZ2luaW8gU3AuIHogby4gby4xEDAOBgNVBAsM
B2hvc3RpbmcxHzAdBgNVBAMMFmdpZW5lay5ob3N0aW5naG91c2UucGwxIDAeBgkq
hkiG9w0BCQEWEWJpdXJvQGltYWdpbmlvLnBsMB4XDTE1MDkxMDEwNDMzN1oXDTM3
MDgwNTEwNDMzN1owgbExCzAJBgNVBAYTAlBMMRswGQYDVQQIDBJ6YWNob2RuaW9w
b21vcnNraWUxETAPBgNVBAcMCEtvc3phbGluMR0wGwYDVQQKDBRJbWFnaW5pbyBT
cC4geiBvLiBvLjEQMA4GA1UECwwHaG9zdGluZzEfMB0GA1UEAwwWZ2llbmVrLmhv
c3Rpbmdob3VzZS5wbDEgMB4GCSqGSIb3DQEJARYRYml1cm9AaW1hZ2luaW8ucGww
@morawskim
morawskim / RPM-GPG-KEY-morawskim
Created September 13, 2016 16:12
Morawskim GPG pub key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFfTyFUBCACpsuBdWLcI64+eKAUg9lsIodNfKD3irIPQqsm/Ntagwu2FNMbE
3leJ3bBmYvMjGbeYRuEKpkfJk5huGNLaCqIucnmbXdpdgo/USozjWVhfmfAkbZH2
WMwPSKkNjaAm7m5Nz2/bqKVtDcCYc90GPaHRA96w+VmyuBJYbZBq03gQk+a0XHPK
pknhlp11V5gyQZBfmrg1z7IUdLQ2IgJdWLYbvcfHE+jh6AhP1DZs2YWpiPcEX14o
64/ZwAIBvYc4LwZhA/Ba13fSBaKnz4ggN6hAqvSZ7l2+rtnTw+8Ifu84IUJa1r7d
3NOZoDyyx3K31/hblJyXj/7ImHLWvUv7hMztABEBAAG0JU1hcmNpbiBNb3Jhd3Nr
aSA8bWFyY2luQG1vcmF3c2tpbS5wbD6JATkEEwECACMFAlfTyFUCGwMHCwkIBwMC