#
second test note
Personal Blog about anything - mostly programming, cooking and random thoughts
second test note
Sign message for ActivityPub mock:
Based on Mastodon Doc - Security
def sign(method, url, data):
from urllib.parse import urlparse
from cryptography.hazmat.primitives.serialization import load_pem_private_key
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
priv_key = load_pem_private_key(PRIV_KEY_PEM.encode(), None)
body = json.dumps(data).encode()
body_hash = hashlib.sha256(body).digest()
digest = "SHA-256=" + base64.b64encode(body_hash).decode()
date = datetime.now(tz=timezone.utc).strftime("%a, %d %b %Y %H:%M:%S GMT")
host = "localhost:3000"
target = urlparse(url).path
to_sign = f"""(request-target): {method.lower()} {target}
host: {host}
date: {date}""".encode()
sig = priv_key.sign(
to_sign,
padding.PKCS1v15(),
hashes.SHA256(),
)
sig_str = base64.b64encode(sig).decode()
request = requests.Request(method, url, data=body)
request = request.prepare()
request.headers["Content-Digest"] = digest
request.headers["Host"] = host
request.headers["Date"] = date
request.headers["Signature"] = (
f'keyId="http://mock_masto/users/h4kor#main-key",headers="(request-target) host date",signature="{sig_str}"'
)
return request
2027: Das Landgericht Hamburg entscheidet, dass das vorsätzliche falsch beantworten eines CAPTCHA ein schwerer Eingriff in die Verkehrssicherheit ist. Die falschen Trainingsdaten können bei selbstfahrenden Autos zu Unfällen führen.
Der Angeklagte wurde zu einer Freiheitsstrafe von 3 Jahren und einem Schadensersatz von 5 Mio. € an den Kläger Tesla Inc. verurteilt.
I've got this images from http://thisartworkdoesnotexist.com/. It's been my default test image ever since.
Browse GTK4 icon on Ubuntu:
sudo apt install gtk-4-examples
gtk4-icon-browser
#Tradle #530 6/6
🟩🟩🟩⬜⬜
🟩🟩🟩🟨⬜
🟩🟩🟩🟩⬜
🟩🟩🟩🟩🟨
🟩🟩🟩🟩🟨
🟩🟩🟩🟩🟩
I've reintegrated webmentions into owl-blog. It only supports incoming webmentions at the moment and is quiet limited. Webmentions will only been shown as a link on the bottom of entries.
If you only pass a UUID into Midjourney it will mostly generate landscape photography and pictures of children.
/imagine prompt: ef717141-7952-4f0b-b407-dde7f94bebb7 --v 5
Rebuild the itunes tags report to include descriptions and examples for each tag.
Stringing on Prusa Mini+: