This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tracks=$(mkvinfo "$1" | gawk ' | |
match($0, /mkvextract: ([0-9]+)/, m) {TN=m[1]} \ | |
match($0, /Language: ([a-z]+)/, m) {CI=m[1]} \ | |
/Track type: subtitles/ {SUB=1} \ | |
/^\| \+ Track$/ {if(SUB) print TN, CI, "\n"; SUB=0;} \ | |
END {if(SUB) print TN, CI; SUB=0}') | |
IFS=$'\n' | |
mergecommand=\"$1\" | |
for track in $tracks | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cloudflare Email Worker that parses flags (e.g. -a) and forwards accordingly. | |
* | |
* Example: | |
* somerandomtext-a@example.com would forward to Alice. | |
* somerandomtext-b@example.com would forward to Bob. | |
*/ | |
async function email(message, env, ctx) { | |
let messageSource = await fetchMessageSource(message.raw); | |
let blacklist = await fetchBlacklist("https://example.com/blacklist.txt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
# Calculate address from public key according to http://www.multichain.com/developers/address-key-format/ | |
import asn1 | |
import base58 | |
import base64 | |
import binascii | |
import hashlib | |
import os | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
# Calculate address from public key according to http://www.multichain.com/developers/address-key-format/ | |
import asn1 | |
import base58 | |
import base64 | |
import binascii | |
import hashlib | |
import os | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
from pypassport import epassport, reader | |
from pypassport import fingerPrint | |
from pypassport.doc9303 import converter | |
import os | |
import base64 | |
from ecdsa import VerifyingKey, BRAINPOOLP320r1 | |
from hashlib import sha256 | |
MRZ = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ -Wall ecdsa-test.cpp -o ecdsa-test -lcryptopp && ./ecdsa-test | |
#include <iostream> | |
using std::cout; | |
using std::cerr; | |
using std::endl; | |
#include <string> | |
using std::string; |