Skip to content

Instantly share code, notes, and snippets.

View gmankab's full-sized avatar

gmanka gmankab

View GitHub Profile
git clone https://gitlab.postmarketos.org/postmarketOS/pmaports.git /tmp/pmaports
git clone https://gitlab.postmarketos.org/postmarketOS/pmbootstrap /tmp/pmbootstrap --depth 1
git clone https://github.com/mainlining/linux --branch danila/spacewar-testing /tmp/linux --depth 1
cd /tmp/pmaports
git remote add mainlining https://github.com/mainlining/pmaports
git fetch mainlining danila/spacewar-mr
git cherry-pick bc4c5a94adf4f515e4bb6c51e55a76b5d86cfe7b
echo '''
> pmbootstrap install
[21:17:42] *** (1/4) PREPARE NATIVE CHROOT ***
[21:17:43] (native) install cryptsetup util-linux parted
[21:17:44] *** (2/4) CREATE DEVICE ROOTFS ("qemu-aarch64") ***
[21:17:51] (rootfs_qemu-aarch64) install postmarketos-base-systemd
[21:17:52] (rootfs_qemu-aarch64) install postmarketos-base device-qemu-aarch64 postmarketos-ui-gnome-mobile device-qemu-aarch64-kernel-edge postmarketos-base-nofde doas doas-sudo-shim gnome-mobile-extensions-app gnome-mobile-extensions-app calls chatty mobile-config-firefox postmarketos-tweaks postmarketos-welcome ttyescape decibels ffmpegthumbnailer firefox-esr flatpak fprintd gnome-calculator gnome-calendar gnome-clocks gnome-console gnome-contacts gnome-maps gnome-software gnome-software-plugin-apk gnome-text-editor gnome-weather gst-libav gst-plugins-bad gst-plugins-good gst-plugins-rs-dav1d gvfs-afp gvfs-dav gvfs-goa gvfs-nfs gvfs-smb loupe nautilus papers showtime snapshot font-droid font-droid-nonlatin font-twemoji lang
[21:17:53] NOTE: The failed com
bash-5.2$ source /tmp/pmbootstrap/helpers/envkernel.sh
pmbootstrap envkernel.sh activated successfully.
* kernel source: /tmp/linux
* output folder: /tmp/linux/.output
* architecture: arm64 (nothing-spacewar is aarch64)
* cross compile: aarch64-alpine-linux-musl-gcc (Alpine 14.2.0)
* aliases: make, kernelroot, pmbootstrap, pmbroot, run-script (see 'type make' etc.)
* run 'deactivate' to revert all env changes
[envkernel] bash-5.2$ make defconfig sc7280.config
*** pmbootstrap envkernel.sh active for /tmp/linux! ***
{
"ignition": { "version": "3.0.0" },
"passwd": {
"users": [
{
"name": "root",
"sshAuthorizedKeys": [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCEQ3SYbpiV0hEYx0NNN2n8PDcegpyYvpw8HnUY8Z5lUkEjVmHaWeW0pSsp4RU+tQLGoFI31OVGsCHatmHQAxkdZ15oazhJMzDA6H0+CYMBvwaag1yRIZLZfSvanYp5GJADBzbf33NEP5r3DjjQzQToVMjo+Y/JyX9BYQ2TTh7TV+iEUYwi5A/68Fq3rxuC1lywNXUPOiRrHDN5iI/+LnxHysXUH02Opq/gRcVOzxrW1OtDF38wnRHcFLl19nP/yMnYPHEy3XFpoiY7gUJ91nrZPgLhrEemVbnOV9rLcatyLjaIaRPK2Fa04nuCCinrm48YCXI4KZmbxooUBC5p9YgiIQDARpk1/UlRS5Wcxw7weYWMhKgm+s7jyUM2yBgEhhhZVhpKjh5LmcVxr9YNmerirSftoVuOA6HzheLEzbfdJcZYpIzwcwAGgbNsBmKTYZjLW56+q4ug0ZnKM47YlmJnuyBBugj6WnUWa3ywLcjfza1gcL81JpO0zVkUxgFAWBs= u0_a249@localhost"
]
}
@gmankab
gmankab / main.py
Last active July 6, 2024 17:24
[solved] issue with resending file through pyrofork
import pyrogram.methods.advanced.save_file
import pyrogram.session.session
import pyrogram.client
import pyrogram.types
import pyrogram.raw
import pyrogram
import asyncio
import typing
import types