Skip to content

Instantly share code, notes, and snippets.

Lubuntu Live ISO session with helloDesktop key components

This is purely for experimentation and development. It gives you a partial helloDesktop experience on Linux including a work-in-progress from-scratch rewrite of the Filer. For the full experience, use helloSystem.

image

Instructions

  • Run Lubuntu 22.04 Live ISO (on real hardware or in a virtual machine), don't install
  • From the Live session, run the script below

Moto G6 Play "N/A" screen lock out fix

Posting here in case someone has the same issue and comes across this through a web saerch. Feel free to comment below.

While using the Motorola Moto G6 Play, it suddenly rebooted and showed "N/A" on an otherwise black boot screen. It proceeded to boot to the Android lock screen (the one with black background, before the rest of Android is started), but refused to accept the CORRECT Android PIN anymore on the lock screen. After having tried for a while, I got a warning saying that I had only less than 10 tries left until all data would be wiped from the device.

I contacted a professional data recovery service company in one of the major German cities and described the issue. They quoted me "from €499,00" for data recovery. So it seems like from the error description, they were positive that they could recover the data.

Googling showed that the "N/A" on an otherwise black boot screen normally has to do with unlocked bootloaders, but the bootloader on this device nev

@probonopd
probonopd / F1E200.md
Last active July 20, 2023 12:01
Allwinner F1E200 electronic postcard with USB Device ID 1f3a:1000

USB Device ID 1f3a:1000 Allwinner F1E200 electronic postcard

I received a promotional folder that plays a video with sound when opening the folder. This contains a rechargeable LiPo battery, a TFT display, a speaker, a power switch, a push button, 256 MB flash memory, RAM, and a CPU.

All of this for watching one 1-minute video.

What a waste! Certainly not environmentally friedndly. Until repurposed creatively!

On the back it says that the product can be sent back to the manufacturer for free recycling. Still I was wondering if I could do more with it.

@probonopd
probonopd / epub2md
Last active May 29, 2023 06:43
epub2md
pandoc manual.epub -o manual.md --wrap=none
sed -i -e 's/<[^>]*>//g' manual.md
sed -i -e 's/\\//g' manual.md
sed -i -e 's/{[^}]*}//g' manual.md
sed -i -e 's/------------------------------------------------------------------------//g' manual.md
sed -i -e 's/\n\n\n/\n\n/g' manual.md
sed -i -e 's/\n\n\n/\n\n/g' manual.md
sed -i -e 's/\n\n\n/\n\n/g' manual.md
mogrify -brightness-contrast 0,-20 -shave 2x2 -bordercolor black -border 2 some.png

Learnings from the FUSE 3 breakage

Major Linux distributions as of today are unpredictable as targets for independent software vendors trying to publish applications because they are lacking guarantees regarding what software is part of the software stack supported by the operating system vendor.

Reasonably policies would be needed to improve the situation and give outside software developers targeting Linux distributions enough lead time to anticipate changes.

Example

https://github.com/libfuse/libfuse/releases/tag/fuse-3.0.0 was released in December 2016. Now, 5 years later, we are seeing this new major version as a problem, which goes like this:

X96 mini 1GB/8GB

"X96 Mini Android 7.1.2 Smart TV Box 1GB+8GB S905W Quad Core WIFI HD Media Player", seller: supermall

LibreELEC

ESP32-S2 CircuitPython on S2 Mini board

On helloSystem, get CircuitPython from https://circuitpython.org/board/lolin_s2_mini/ and flash with:

python3 -m esptool  --after hard_reset write_flash  0x00000  '/tmp/user/_home_user_Downloads_tinyuf2-lolin_s2_mini-*.zip/combined.bin'

Replug the device, a S2MINIBOOT disk drive will be mounted on the desktop.

@probonopd
probonopd / shorts.txt
Last active April 15, 2023 22:15
This can be loaded into Falkon but apparently it doesn't work. Why? (Based on https://letsblock.it/filters/youtube-shorts.)
[Adblock Plus 2.0]
! Version: 202210181525
! Title: YouTube Shorts
!
! -----------------------YouTube Shorts blocking filters-----------------------!
www.youtube.com##ytd-guide-renderer a.yt-simple-endpoint[title="Shorts"]:upward(ytd-guide-entry-renderer)
www.youtube.com##ytd-mini-guide-renderer a.yt-simple-endpoint[title="Shorts"]:upward(ytd-mini-guide-entry-renderer)
www.youtube.com##ytd-browse #dismissible ytd-rich-grid-slim-media[is-short]:upward(ytd-rich-section-renderer)
www.youtube.com##ytd-browse ytd-grid-video-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
www.youtube.com##ytd-browse ytd-rich-item-renderer:has(span.ytd-thumbnail-overlay-time-status-renderer:has-text(/\s(0:\d\d|1:0\d)\s/))
@probonopd
probonopd / tutorial.txt
Created July 7, 2017 21:56
Making Armbian Live Distro Tutorial
Mirrored from https://drive.google.com/file/d/0B9rkZNVvi3bIaks1N2pQWEh3S1k/view
mentioned on https://forum.armbian.com/index.php?/topic/4176-debian-live-boot-with-armbian/
Making Armbian Live Distro Tutorial
Introduction
--------------------------------------------------------------------------
Linux live distros are designed to be able to start a whole operating system from a read-only media, but to behave as if the media was read-write. The example - Debian Live. It can be burned on a CD and you can boot a full featured debian system from it, even without a hard drive. You can edit and save files, the system is writing logs, etc. After a reboot, everything is lost, since all changes are "copyonwrited" in RAM.