Skip to content

Instantly share code, notes, and snippets.

View aslakr's full-sized avatar

Aslak Raanes aslakr

View GitHub Profile
@aslakr
aslakr / well-known-avatars.md
Last active May 23, 2023 12:00
".well-known/avatars" as an alternative/addition to DNS SRV for federated libravatars?

https://lists.launchpad.net/libravatar-fans/msg00084.html

Looking at [WebFinger] and its [avatar link rel] I was wondering if one could use a .well-known/avatars or something similar as an alternative/addition to DNS SRV records federated avatars server?

E.g. either add something like:

https://example.com/.well-known/avatars

or

@aslakr
aslakr / apple-photo-schema.sql
Last active May 4, 2020 11:41
sqlite ".schema" dump
CREATE TABLE ZADDITIONALASSETATTRIBUTES (
Z_PK INTEGER PRIMARY KEY, Z_ENT INTEGER,
Z_OPT INTEGER, ZALLOWEDFORANALYSIS INTEGER,
ZCAMERACAPTUREDEVICE INTEGER, ZCLOUDAVALANCHEPICKTYPE INTEGER,
ZCLOUDGROUPINGSTATE INTEGER, ZCLOUDKINDSUBTYPE INTEGER,
ZCLOUDRECOVERYSTATE INTEGER, ZCLOUDSTATERECOVERYATTEMPTSCOUNT INTEGER,
ZDESTINATIONASSETCOPYSTATE INTEGER,
ZEMBEDDEDTHUMBNAILHEIGHT INTEGER,
ZEMBEDDEDTHUMBNAILLENGTH INTEGER,
ZEMBEDDEDTHUMBNAILOFFSET INTEGER,
@aslakr
aslakr / libravatarapacherewritemap.py
Last active March 16, 2019 14:19
Python for creating a RewriteMap
#!/usr/bin/env python3
import libravatar
import requests
from furl import furl
import os
import sys
import argparse
p = argparse.ArgumentParser()
p.add_argument(
Code Subdivision names Unicode Flag
NO-02 Akershus 🏴󠁮󠁯󠀰󠀱󠁿
NO-09 Aust-Agder
NO-06 Buskerud
NO-20 Finnmark / Finnmárku (se)
NO-04 Hedmark
NO-12 Hordaland
NO-15 Møre og Romsdal
NO-18 Nordland
NO-17 Nord-Trøndelag
title date
Markdown in Markdown
2017-03-30

This is Markdown.

@aslakr
aslakr / AsciiMath-syntax-test.md
Last active February 8, 2019 14:09
AsciiMath syntax and test suite using double backticks
title date tags
AsciiMath syntax and test suite
2016-04-11
math
mathml
asciimath
markown
@aslakr
aslakr / Syntax-for-AsciiMath-in-Markdown.md
Last active March 8, 2021 13:21
Testing syntax for using AsciiMath in Markdown
title date
Syntax for AsciiMath in Markdown
2016-04-05

What syntax should be used for AsciiMath in Markdown?

<!DOCTYPE html>
<html>
<head>
<title>MathML fallback</title>
<meta charset="utf-8">
<!-- This test passes if the appropriate fallback content is displayed and the display attribute is taken into account. -->
</head>
<body>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am aslakr on github.
  • I am aslakr (https://keybase.io/aslakr) on keybase.
  • I have a public key whose fingerprint is E363 AD9E B98A BA02 2318 BF60 BB6E 50EE 79AC D235

To claim this, I am signing this object: