This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
// force to use overflow menu | |
ViewConfiguration config = ViewConfiguration.get(this); | |
Field menuKeyField = ViewConfiguration.class | |
.getDeclaredField("sHasPermanentMenuKey"); | |
if (menuKeyField != null) { | |
menuKeyField.setAccessible(true); | |
menuKeyField.setBoolean(config, false); | |
} | |
} catch (Exception ex) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -n "$1" ] | |
then | |
echo "Usage: `basename $0` hostname" | |
exit $E_BADARGS | |
fi | |
HOSTNAME=$1 | |
DOMAIN=$(echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import fontforge | |
if len(sys.argv) < 3: | |
print("Usage: %s <from> <to>" % sys.argv[0]) | |
sys.exit(1) | |
fromfile = sys.argv[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 - restore working copy of /sd-ext partition from backup | |
~ # dd if=/sdcard/mmc-good.img of=/dev/block/mmcblk0p2 bs=4096 | |
125000+0 records in | |
125000+0 records out | |
512000000 bytes (488.3MB) copied, 109.406085 seconds, 4.5MB/s | |
#2 - check tune2fs output | |
~ # tune2fs -l /dev/block/mmcblk0p2 |
NewerOlder