Skip to content

Instantly share code, notes, and snippets.

@akkornel
akkornel / 102217.txt
Created October 23, 2017 05:49
Git commit & tag re-certification from October 22, 2017
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Here is the table referred to in my blog post at
http://karl.kornel.us/2017/10/welp-there-go-my-git-signatures/
Last commit signed by my revoked sub-key First commit signed using my new sub-key
2af1083219692bf5046bac2c815656358fcda71f 4793f2c8fa5a69dcc351927039724704fca5dac0
bedb51ebee32838e0c9359fcca044e97ff1c3677 ccf9d4e03d757759c4b34579dad763be4e1cf21d
0473090599c505e78dd9fa8399d4b858e2ecc653 bf148ded0854093e0e4ce05c81210583b193997d
#!/bin/env python3
import pyasn1
from pyasn1.type import constraint, namedtype, namedval, univ
from pyasn1.codec.ber.decoder import decode
from uuid import UUID
# These come from Python-LDAP's syncrepl module.
# They're definitions for pyasn1 to understand what it's parsing.
@akkornel
akkornel / instructions.md
Created February 16, 2017 01:49
Using MacPorts to package software for distribution

Hello!

This document talks about how to use MacPorts to make a macOS installer packages that will install multiple MacPorts ports onto a system.

MacPorts is a project which takes open-source software and builds it for macOS. It takes care of the work of identifying and patching any macOS-specific problems, working out how best to do the build, etc..

Normally, you install MacPorts on your local system, and use the Terminal to install ports (a port is an individual software offering). However, it is also possible to use MacPorts to build macOS installer packages (.pkg files). MacPorts can also bundle multiple ports into a single package (an .mpkg file), so you can install multiple ports in a single action. The ability to make .mpkg files is useful, because ports typically depend on other ports in order to function properly.

This document describes the process for making .mpkg files, so that you can distribute them to systems.