|# moving git commits from one tree to another, preserving original git commit metadata like date/time|
|# (creating a new hash, of course)|
|# find current commits|
|git log jcs --email@example.com --no-merges --oneline --no-abbrev-commit --reverse | sed 's/ .*//' > commits|
|# in new git tree, for each $hash in $commits|
|git --git-dir=/path/to/old/tree/.git format-patch -k -1 --stdout <hash> | git am -3 -k|
|# solution for resizing jpegs and pngs of arbitrary size down to a 72x72|
|# square, preserving source ratio, and filling non-square sides with|
|# ahead of time, convert a transparent 72x72 png to blank-72.pam and save|
|# it with your code|
|# pngtopam -quiet -alphapam < blank-72.png > blank-72.pam|
####Disabling SPI write protection
Put the Chromebook in developer-mode:
- With machine powered off, hold down Esc and Refresh(F3) while hitting power button
- At warning prompt, hit Control+D, then Enter at prompt about enabling developer mode
- Machine will format itself
Now remove the write-protect screw to enable
flashrom to flash new Coreboot/Libreboot.
Flip powered-off machine over and remove 8 philips-head screws. 2 are located under rubber feet.
I hereby claim:
- I am jcs on github.
- I am jcs (https://keybase.io/jcs) on keybase.
- I have a public key whose fingerprint is 51DE 5E0C 5643 6F37 D718 0936 603C A7D7 27C9 E467
To claim this, I am signing this object:
Bug 31303 - updates to simple bordered windows not being sent to shadowfb users(http://cgit.freedesktop.org/xorg/xserver/commit/?id=2dcb1672620ef5f16111517e9e7a98cf97deb678)
three-finger swipe in Finder/Calendar broken in Mavericks(calendar switched to scroll down instead of left-right)
- DNS search domain stops working
Update (2019-05-06): The Broadcom wireless card in the MacBook Pro works and can be crammed into the Air.
Update (2015-12-04): This document used to be very lengthy as there were many manual steps required to get OpenBSD and Mac OS X working together through Boot Camp Assistant (BCA), which created a hybrid MBR and enabled a legacy BIOS emulation mode which older versions of Windows (and OpenBSD) required. Newer Macbooks stopped supporting older versions of Windows through BCA and now only support Windows 10 since it uses GPT and UEFI. However, now that newer versions of OpenBSD support GPT and UEFI, Boot Camp Assistant is no longer needed at all to boot OpenBSD.
macOS FileVault encryption and OpenBSD encrypted softraid on a Macbook Air/Pro
OpenBSD works pretty well on at least the Mid-2011 Macbook Air (A1370, SandyBridge) and Mid-2013 Macbook Air (Haswell). The new KMS code in 5.4 brings up the MBA's eDP display in 1366x768 with backlight