Skip to content

Instantly share code, notes, and snippets.

View amclain's full-sized avatar

Alex McLain amclain

View GitHub Profile
@gurglet
gurglet / git-post-checkout.sh
Created February 9, 2012 13:55
Git post checkout hook that reminds you of South migration changes when changing branches. Can be useful when you are when you are testing out a branch from someone else that requires migrations. Put the file in .git/hooks/post-checkout
#!/bin/bash
# Git post checkout hook.
# Reminds you of South migration changes when switching branches.
# Can be useful when you are when you are testing out a branch from
# someone else that requires migrations.
# Put the file in .git/hooks/post-checkout
PREVIOUS_HEAD=$1
NEW_HEAD=$2
@fhunleth
fhunleth / notes.md
Last active February 7, 2023 04:27
pSLC mode on BBBW

Putting the BBBW's eMMC into pSLC mode on Nerves

WARNING: I don't believe there's a way to undo this.

The BBBW has a 4 GB eMMC. For better reliability, I'm trying to put it into pSLC mode. Since the 4 GB eMMC is an MLC Flash with 2-bits per cell, converting it to pseudo-SLC mode (1-bit per cell) halves the total size.

Here's the original eMMC information: