This file contains 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 | |
echo -e "\033[01;33m\nZram Enable Script By Twel12 \033[0m" | |
read -p "Enter Size in MB to Enable Zram for Example for 20MB enter 20 | |
" ZRAM_SIZE | |
re='^[0-9]+$' | |
if ! [[ $ZRAM_SIZE =~ $re ]] ; then | |
echo "error: Entered Value is not a valid integer value!" >&2; exit 1 |
This file contains 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
import io | |
offset0 = 0x4000 | |
offset1 = 0x5000 | |
offset2 = 0x740000 | |
offset3 = 0xD2F000 | |
offset4 = 0x146A000 | |
outpt = open("logo_new_mi9t.img", "wb") |