Skip to content

Instantly share code, notes, and snippets.

@Blefish
Blefish / gist:ecdbd21341f66a0a53095bd84bc2a1d0
Last active November 13, 2020 11:17 — forked from insidegui/gist:a18124c0c573a4eb656f5c485ea7dae4
Unofficial documentation for the iCloud Apple device image URL format
https://statici.icloud.com/fmipmobile/deviceImages-9.0/iPhone/iPhone9,4-2-3-0/online-infobox__3x.png
A B C D E F G
A: deviceImages version seems to determine the format of the image specifier (C, D, E, F)
B: device marketing name
C: device model identifier
D: front color (DeviceColor)
E: back color (DeviceEnclosureColor) (missing on very old devices)
F: color (device cover/backing/housing)?? (missing on older devices)
G: image variant
@Blefish
Blefish / 51-android.rules
Created May 30, 2016 14:47
/etc/udev/rules.d/51-android.rules
# adb protocol on huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0600", OWNER="rudolf"
# fastboot protocol on huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0600", OWNER="rudolf"
# adb protocol on qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0600", OWNER="rudolf"
@Blefish
Blefish / kernelprep
Last active January 3, 2016 16:28
Kernel/out-of-tree modules/little kernel preparation script.
export ARCH=arm
export CROSS_COMPILE=/home/rudolf/android/cyanogenmod/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
# For out-of-tree modules
export KERNEL_DIR=~/android/cyanogenmod/out/target/product/u8800/obj/KERNEL_OBJ/
# For Little Kernel
export PATH=$PATH:~/android/cyanogenmod/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin
@Blefish
Blefish / testsign
Created January 18, 2014 10:56
Testsign wrapper for easy zip signing. Place in ~/bin/testsign Make sure testsign.jar exists in the specific directory (~/apps/testsign.jar) Usage: testsign <zip to be signed>
#!/bin/bash
if [ "$#" == 1 ] && [ $1 == *.zip* ]
then
java -classpath ~/apps/testsign.jar testsign $1 ${1%.*}-signed.zip
else
echo "Usage: testsign <zip to be signed>"
fi