Skip to content

Instantly share code, notes, and snippets.

@emtiu
emtiu / brothercert.sh
Last active November 23, 2023 11:46
Importing an SSL certificate to an old Brother printer (DCP-9020CDW)
# I encountered two major difficulties when trying to import an SSL certificate into an old Brother DCP-9020CDW
# multifunction printer:
# First, I was unable to export the openssl `.pem` and `.key` files to pkcs in a way that allowed the printer to
# import the certificate. I kept getting the error message "The password is not correct.", even though the password
# was definitely correct.
# I was exporting the certificate using:
openssl pkcs12 -export -out brother.p12 -in brother.pem -inkey brother.key
@emtiu
emtiu / leaflet.button.js
Last active December 20, 2015 08:09 — forked from ns-1m/leaflet-button-control.js
added display variable that hides button
// from https://gist.github.com/emtiu/6098482
// Modified from fork origin:
// Adapted for use in https://github.com/dave-null/piratenmandate-frontend
// Usage:
// var someButton = new L.Control.Button(options).addTo(map);
// This calls OnAdd(). See the code for what options are required
// The third parameter passed to L.DomEvent.addListener is the 'this' context
// to use in the callback (second parameter).