Skip to content

Instantly share code, notes, and snippets.

@bps
bps / private.xml
Created April 9, 2014 16:00
Fix modifier keys on MS Sculpt Ergonomic keyboard
<?xml version="1.0"?>
<root>
<!--
I found that remapping Cmd and Alt via the Keyboard prefs didn't
properly remap right Alt, so we'll do it here. Also map the
application key to right Alt.
-->
<devicevendordef>
<vendorname>MICROSOFT</vendorname>
<vendorid>0x045e</vendorid>
### Keybase proof
I hereby claim:
* I am bps on github.
* I am bps (https://keybase.io/bps) on keybase.
* I have a public key whose fingerprint is A00D D4ED 5241 E99D ABC0 DAAA BCCB B6E9 143C 3452
To claim this, I am signing this object:
@bps
bps / gist:d81851455b00e6631d8c
Created November 4, 2014 20:07
Normalize review dates
// Normalize review dates to the template project's date iff the project's review interval is the same as the template's. This is useful when you e.g. want to review most projects all at once every two weeks.
var template_project_name = 'Miscellaneous';
var ofocus = Application('OmniFocus');
var projects = ofocus.defaultDocument.projects;
var misc = projects.whose({name:template_project_name})[0];
var misc_review_interval = misc.reviewInterval();
var misc_next_review_date = misc.nextReviewDate();
@bps
bps / oops.c
Created October 11, 2016 17:13 — forked from davepeck/oops.c
iOS 7.0.6 "Security Content"
static OSStatus
SSLVerifySignedServerKeyExchange(SSLContext *ctx, bool isRsa, SSLBuffer signedParams,
uint8_t *signature, UInt16 signatureLen)
{
OSStatus err;
SSLBuffer hashOut, hashCtx, clientRandom, serverRandom;
uint8_t hashes[SSL_SHA1_DIGEST_LEN + SSL_MD5_DIGEST_LEN];
SSLBuffer signedHashes;
uint8_t *dataToSign;
size_t dataToSignLen;
@bps
bps / sa-rescan
Last active August 22, 2024 21:54
#!/usr/bin/zsh
# I get a lot of spam that scores just under the threshold upon delivery, but
# then scores way above a couple minutes later once the block lists start
# reporting. This script takes another look at those suspicious messages.
# Requires SpamAssassin's spamc and tools from the mblaze package.
# I run it in cron like:
# # */3 * * * * flock --nb /run/user/$(id -u)/sa-rescan /home/$(id -un)/bin/sa-rescan
@bps
bps / moaan-inkpalm-plus-setup.md
Last active April 24, 2025 05:05
Moaan InkPalm Plus setup

Moaan InkPalm Plus setup

I got this device set up nearly as I like, but then flew too close to the sun while experimenting with setting lock screen wallpaper and enabled a lock screen PIN which was then never accepted. After a reboot recovery in adb, if you hold the top button and press the volume up button, you can get to a menu where you can do a factory reset.

After I did that, I decided to write this down.

The firmware version this has now is: MAS_EPD305_L81B804_T44_V09.

Setup from factory reset