Skip to content

Instantly share code, notes, and snippets.

View Twel12's full-sized avatar
🙂
Looking For A Status

Shivansh Agarwal Twel12

🙂
Looking For A Status
View GitHub Profile
@Twel12
Twel12 / Zram.sh
Last active December 7, 2023 17:52
Enable Zram on Linux Based OS.
#!/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
import io
offset0 = 0x4000
offset1 = 0x5000
offset2 = 0x740000
offset3 = 0xD2F000
offset4 = 0x146A000
outpt = open("logo_new_mi9t.img", "wb")