Skip to content

Instantly share code, notes, and snippets.

@gotbletu
gotbletu / apkversion
Last active February 3, 2019 07:24
apkversion, display android system requirements (minimum version to target version) of the apk file
alias aapt="/opt/android-sdk/build-tools/28.0.3/aapt"
apkversion() {
if [ $# -lt 1 ]; then
echo -e "display android system requirements (minimum version to target version) of the apk file"
echo -e "\nUsage: $0 <filename>"
echo -e "\nExample:\n$0 file.apk"
echo -e "$0 file1.apk file2.apk file3.apk"
echo -e "$0 *.apk"
echo -e "\nrequirement:\nhttps://aur.archlinux.org/packages/android-sdk-build-tools/"
echo -e "https://developer.android.com/studio/releases/build-tools"
@gotbletu
gotbletu / ocs-sr
Last active May 6, 2025 16:52
Clonezilla ocs-sr commandline options manpage
Clonezilla (v2.5.0) "ocs-sr" Options
(Reformated for easier reading)
To save or restore image
ocs-sr [OPTION] {MODE} IMAGE_NAME DEVICE
Where MODE is one of
savedisk
@gotbletu
gotbletu / gdisk GPT Hex code or GUID code
Created February 4, 2018 22:43
hex code for file system linux ntfs windows
echo -e "o\ny\nn\n1\n\n\n8300\nw\ny\n" | sudo gdisk /dev/"$DEVICE_NAME"
# o create a new empty GUID partition table (GPT) [Delete All Partition]
# y yes, proceed
# n add a new partition
# 1 partition number 1
# default, first sector
# default, last sector
# 8300 Hex code or GUID [8300 Linux filesystem]
# w write table to disk and exit
# y yes, proceed