Posts

make system rw android

 if system.img is sparse first unsparse it file system.img system.img: Android sparse image, version: 1.0, Total of 460079 4096-byte output blocks in 36 input chunks. simg2img system.img system.raw.img # e2fsck -f system.raw.img resize2fs system.raw.img 5G e2fsck -E unshare_blocks system.raw.img resize2fs -M system.raw.img e2fsck -f -y system.raw.img info compare fdisk -l system.img Disk system.img: 1.72 GiB, 1850331136 bytes, 3613928 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes sudo fdisk -l system.raw.img Disk system.raw.img: 1.76 GiB, 1884483584 bytes, 3680632 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes fdisk -l  system.raw.img Disk system.raw.img: 2.36 GiB, 2532089856 bytes, 4945488 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 by...

unpack and repack android boot.img in linux

  download latest magisk apk  https://github.com/topjohnwu/Magisk https://github.com/topjohnwu/Magisk/releases https://github.com/topjohnwu/Magisk/releases/download/v29.0/Magisk-v29.0.apk   extract magiskboot  libmagiskboot.so from apk using any tool for your arch mine is x86_64 unzip -j Magisk-v29.0.apk lib/x86_64/libmagiskboot.so   this is static binary than a .so file rename it and put in $PATH location mv libmagiskboot.so magiskboot chmod +x magiskboot unpacking  unpack boot.img  magiskboot unpack boot.img   eg: magiskboot unpack boot-ui2.img Parsing boot image: [boot-ui2.img] HEADER_VER      [2] KERNEL_SZ       [13997124] RAMDISK_SZ      [917271] SECOND_SZ       [0] RECOV_DTBO_SZ   [0] DTB_SZ          [140627] OS_VERSION      [11.0.0] OS_PATCH_LEVEL ...

fedora install from container tarball

  https://mirrormanager.fedoraproject.org/ https://mirrors.tuna.tsinghua.edu.cn/fedora/releases/42/ https://mirrors.tuna.tsinghua.edu.cn/fedora/releases/42/Container/x86_64/images/Fedora-Container-Base-Generic-Minimal-42-1.1.x86_64.oci.tar.xz tar xf Fedora-Container-Base-Generic-Minimal-42-1.1.x86_64.oci.tar.xz tar tvf Fedora-Container-Base-Generic-Minimal-42-1.1.x86_64.oci.tar.xz drwxr-xr-x 0/0 0 2025-04-09 17:45 blobs/ drwxr-xr-x 0/0 0 2025-04-09 17:45 blobs/sha256/ -rw-r--r-- 0/0 504 2025-04-09 17:45 blobs/sha256/4f30be32cf4ee44c2113f77c18d1c004732d546b2e73c4e4adde1ba0cadf7338 -rw-r--r-- 0/0 50630077 2025-04-09 17:45 blobs/sha256/b79a3ddbd1b19eee5e402a69bb305d3a7fddfeda4c08ffc9dc35a568f80f218b -rw-r--r-- 0/0 907 2025-04-09 17:45 blobs/sha256/ee0f4ff69a65fe4fe35c238b7c4fb4f93d49ba38cf4ebbc5793c27c107fc3d68 -rw-r--r-- 0/0 258 2025-04-09 17:45 index.json -rw-r--r-- 0/0 30 2025-04-09 17:45 oci-la...

xfwm4 themeing

  left-active.xpm left-inactive.xpm right-active.xpm right-inactive.xpm bottom-active.xpm bottom-inactive.xpm bottom-left-active.xpm bottom-left-inactive.xpm bottom-right-active.xpm bottom-right-inactive.xpm top-left-active.xpm top-left-inactive.xpm top-right-active.xpm top-right-inactive.xpm close-active.xpm close-inactive.xpm close-prelight.xpm close-pressed.xpm hide-active.xpm hide-inactive.xpm hide-prelight.xpm hide-pressed.xpm maximize-active.xpm maximize-inactive.xpm maximize-prelight.xpm maximize-pressed.xpm maximize-toggled-active.xpm maximize-toggled-inactive.xpm maximize-toggled-prelight.xpm maximize-toggled-pressed.xpm menu-active.xpm menu-inactive.xpm menu-prelight.xpm menu-pressed.xpm shade-active.xpm shade-inactive.xpm shade-prelight.xpm shade-pressed.xpm shade-toggled-active.xpm shade-toggled-inactive.xpm shade-toggled-prelight.xpm shade-toggled-pressed.xpm stick-active.xpm stick-inactive.xpm stick-prelight.xpm stick-pressed.xpm stick-toggled-active.xpm stick-toggled...

github workflow

GITHUB WORKFLOW  KEYS on: events that will trigger the workflow.  This event will only trigger a workflow run if the workflow file exists on the default branch. https://docs.github.com/en/webhooks/webhook-events-and-payloads Webhook event payload : types workflow_dispatch : manual run push repository_dispatch branch_protection_rule : [created,edited, deleted], GITHUB_SHA(last commit) ,GITHUB_REF(default branch) check_run : [created,rerequested,completed,requested_action] check_suite : [completed]  create,delete, Runs your workflow when someone creates a Git reference (Git branch or tag) in the workflow's repository  deployment deployment_status discussion fork gollum : wiki page edits  issue_comment,label : [created,edited, deleted] issues : [opened  edited  deleted  transferred  pinned unpinned  closed  reopened assigned unassigned  labeled  unlabeled  locked  unlocked milestoned demilestoned  typed  ...

download in colab to drive

from google.colab import drive drive.mount('/content/drive') here: COOKIE="your_cookie_here" USER_AGENT="your_user_agent_here" REFERER="your_referer_here" URL="your_download_url_here" OUTPUT_PATH="/content/filename" # Use the placeholders in the wget command wget --header="Cookie: $COOKIE" \      --header="User-Agent: $USER_AGENT" \      --header="Referer: $REFERER" \      --max-redirect=10 --trust-server-names -O $OUTPUT_PATH "$URL" eg:  USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" or  >> console . log ( navigator . userAgent ); Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0   REFERER="https://www.google.com" get coookie form browser in dev console document.cookie direct link from  pausing download    for ubuntu iso into drive !wget -O /content/drive/MyDri...

debian to lmde

 deb [trusted=yes] http://packages.linuxmint.com faye main upstream import backport  http://packages.linuxmint.com/ main upstream import backport  http://packages.linuxmint.com/search.php?release=faye&section=any&keyword=   http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/    http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/linuxmint-keyring_2022.06.21_all.deb lmde has only cinamon as of lmde 6  lmde5=elsie lmde6=faye cinnamon is in backport  https://github.com/linuxmint