This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| #==================================================== | |
| # FILE: sdat2img.py | |
| # AUTHORS: xpirt - luxi78 - howellzhu | |
| # DATE: 2018-10-27 10:33:21 CEST | |
| #==================================================== | |
| from __future__ import print_function | |
| import sys, os, errno |
This file contains hidden or 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
| get_device() { | |
| PAR="$1" | |
| DEV="`cat /proc/self/mountinfo | awk '{ if ( $5 == "'$PAR'" ) print $3 }' | head -1 | sed 's/:/ /g'`" | |
| } | |
| mount_mirror() { | |
| SRC="$1" | |
| DES="$2" | |
| RAN="`head -c6 /dev/urandom | base64 | tr -dc 'a-zA-Z0-9'`" | |
| while [ -e /dev/$RAN ]; do |
This file contains hidden or 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
| # This part is likely not needed | |
| # mkdir -p /config/usb_gadget/g1 | |
| # mkdir -p /config/usb_gadget/g1/functions/mass_storage.0 | |
| # echo 0x1d6b > /config/usb_gadget/g1/idVendor # Linux Foundation | |
| # echo 0x0104 > /config/usb_gadget/g1/idProduct # Mass Storage | |
| # echo 0x0100 > /config/usb_gadget/g1/bcdDevice | |
| # echo 0x0200 > /config/usb_gadget/g1/bcdUSB | |
| #mkdir -p /config/usb_gadget/g1/strings/0x409 | |
| #echo "1234567890" > /config/usb_gadget/g1/strings/0x409/serialnumber |
This file contains hidden or 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
| PATH=/data/data/com.termux/files/usr/bin LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so HOME=/data/data/com.termux/files/home /data/data/com.termux/files/usr/bin/bash -l |
This file contains hidden or 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 os | |
| import cv2 | |
| from pyzbar.pyzbar import decode | |
| folder_path = 'path/to/your/folder' | |
| if not os.path.isdir(folder_path): | |
| print(f"Folder not found: {folder_path}") | |
| exit(1) |
This file contains hidden or 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 | |
| #mkfs.ext4 /dev/nvme0n1p4 | |
| #mount /dev/nvme0n1p4 /mnt | |
| debootstrap --variant=minbase \ | |
| --exclude="snapd,cloud-init,landscape-common,popularity-contest,ubuntu-advantage-tools,unattended-upgrades,netplan,networkd" \ | |
| jammy /mnt http://archive.ubuntu.com/ubuntu | |
| echo ubuntu >/mnt/etc/hostname | |
| echo 127.0.0.1 >>/mnt/etc/hosts |
This file contains hidden or 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
| ISO download link : https://files.rg-adguard.net/file/19a36b7b-269b-ebf8-105b-a375f70b7ae2 | |
| ISO file name : en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso | |
| ISO file MD5 : b5a7be560dbd73619945129e52be1b5f | |
| ### Installing drivers (driverpack.io) | |
| ### Activating windows (massgravel) | |
| ### Disabling visual effects (personalization) |
This file contains hidden or 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
| base | |
| base-devel | |
| linux-zen | |
| linux-zen-headers | |
| linux-firware | |
| sof-firware | |
| git | |
| nano | |
| python | |
| plasma-meta |
This file contains hidden or 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
| #!/usr/bin/sh | |
| # Execute from Termux app, running as root results no sound. | |
| # Must have pulseaudio and termux-x11. | |
| # Must have root access. | |
| if [ "$(id -u)" -eq "$TERMUX_APP__UID" ]; then | |
| ### Start pulseaudio | |
| pulseaudio --start --load=" \ | |
| module-native-protocol-tcp auth-ip-acl=127.0.0.1 \ | |
| auth-anonymous=1" --exit-idle-time=-1 |