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
#!/usr/bin/env python | |
## Written by Aki Tuomi 2022 | |
# Released into public domain with NO WARRANTY | |
# Written for 4 Phase UNL 2003 Stepper Motor Driver PCB | |
## | |
# To use, update INx to match your setup | |
# Then choose steps_4 or steps_8 as steps (4 or 8 steps) | |
# You can use UP and DOWN arrow to adjust speed |
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
/* This code is released to Public Domain by the Author | |
* | |
* Compile using c++ -I/usr/include/p11-kit-1 -o test-pkcs11 test-pkcs11.cc -lp11-kit | |
* | |
* Usage example: ./test-pkcs11 yubico 0 02 12345678 | |
*/ | |
#include "p11-kit/p11-kit.h" | |
#include "p11-kit/pin.h" | |
#include "p11-kit/pkcs11.h" | |
#include <memory> |
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
## You should mount /etc/dovecot if you want to | |
## manage this file | |
mail_home=/srv/mail/%Lu | |
mail_location=sdbox:~/Mail | |
mail_uid=1000 | |
mail_gid=1000 | |
protocols = imap pop3 submission sieve lmtp |
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
from lxml import etree | |
import urllib.request | |
import urllib.parse | |
import sys | |
from html2text import html2text | |
def get_named_setting(name, url="https://doc.dovecot.org/settings/dovecot_core_settings/"): | |
f = urllib.request.urlopen(url) | |
parser = etree.HTMLParser() | |
tree = etree.parse(f, parser) |
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
#!/usr/bin/python3 | |
from flup.server.fcgi import WSGIServer | |
import bottle | |
from bottle_log import LoggingPlugin | |
import json | |
import logging | |
import requests | |
logging.basicConfig(format='localhost - - [%(asctime)s] %(message)s', level=logg |
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
#!/usr/bin/env python | |
import requests | |
import subprocess | |
import sys | |
PRIVATE_TOKEN="<redacted>" | |
def get_branch_head(repo, branch): | |
repo = repo.replace("/","%2f") |
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
#!/usr/bin/env python | |
import requests | |
import subprocess | |
import sys | |
PRIVATE_TOKEN="<removed>" | |
def get_branch_head(repo, branch): | |
repo = repo.replace("/","%2f") |
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
This file is now in https://github.com/dovecot/tools/blob/main/dcrypt-decrypt.rb |
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
#include <stdio.h> | |
#include <openssl/rsa.h> | |
#include <openssl/bn.h> | |
#include <openssl/evp.h> | |
#include <openssl/pem.h> | |
int main(void) { | |
BIGNUM *bn; | |
RSA *rsa = RSA_new(); | |
bn = BN_new(); |
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
#!/usr/bin/env ruby | |
key = File.read("input.der").force_encoding('ascii-8bit') | |
# determine key size | |
File.open("ssl-parameters.dat", "wb") do |f| | |
f.write [4096, key.size].pack 'll' | |
f.write key | |
f.write [0].pack 'l' | |
end |
NewerOlder