Skip to content

Instantly share code, notes, and snippets.

View raspiduino's full-sized avatar

gvl610 raspiduino

View GitHub Profile
@raspiduino
raspiduino / readme.md
Last active December 24, 2023 16:38
Quick and dirty solution for the Segmentation fault problem of processing package libc-bin when using apt in Armbian

I recently have Armbian installed on my set-top box and its apt got crazy when I used it:

$ sudo apt install xfce4-terminal
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libvte-2.91-0 libvte-2.91-common
The following NEW packages will be installed:
@jcmvbkbc
jcmvbkbc / gist:316e6da728021c8ff670a24e674a35e6
Last active November 21, 2023 18:39
esp32s3 linux rebuild scripts
Latest versions of these scripts are available in git repository https://github.com/jcmvbkbc/esp32-linux-build
@Vogtinator
Vogtinator / README.md
Last active April 26, 2024 08:56
Run Win11 on ARM in QEMU

When following this guide on a host not capable of native arm64 KVM, replace -M virt -cpu host -accel kvm with -M virt,virtualization=on -cpu max.

The reason for virtualization=on is that the Windows bootloader does an smc #0 PSCI call, but without EL2, QEMU's TCG does not handle those because PSCI is in HVC mode and such that instruction is treated as undefined. With KVM enabled, smc #0 is handled properly.

Workaround in QEMU for using TCG without virtualization=on:

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index b871350856..de11ff51d1 100644
--- a/hw/arm/virt.c
@mhasdf
mhasdf / makie-thump-go-bluetooth-protocol.md
Last active June 11, 2023 06:03
Mackie Thump GO Bluetooth Protocol

Mackie Thump GO Bluetooth Protocol

Connection

The Thump GO is visible as two Bluethooth devices. Thump GO is an audio device. The Bluetooth device named LE_Thump GO is used for controlling the loudspeaker.

Only after an audio connection was established and the bluetooth LED lights solidly, the LE_Thump GO device is active. (With Auto Connect off, connect from a previously paired audio device to reach that state. With Auto Connect on, this state is only reached 60 seconds after turning on, even if the audio connection is established much earlier, but one can presses the PAIR button to shorten that time.)

The Bluetooth device LE_Thump GO is the interface the official app Thump Connect 2 uses. This device offers service UUID 49535343-fe7d-4ae5-8fa9-9fafd205e455. Appearently, this is the BM70/RN4870 chip with service "Microchip Transparent UART". Here, I list all the commands of the device I could reverse-engineer. I assume no liability for the correctness. All numbers are in hexadecimal notat

@patharanordev
patharanordev / uninstall-cuda-on-mac.md
Created June 4, 2022 03:13
Uninstall CUDA.framework on macOS

Uninstall CUDA.framework on macOS

If you

  • got message like "CUDA.framework is malware, ... damage on your mac"
  • using OpenCL instead
  • using macOS 10.14+ (used Metal framework instead)

and try to remove it.

Delete the following folders/files:

@skoqaq
skoqaq / build4123.sublime4.key
Last active May 3, 2024 16:31
Sublime Text 4 License Key
—– BEGIN LICENSE —–
Mifeng User
Single User License
EA7E-1184812
C0DAA9CD 6BE825B5 FF935692 1750523A
EDF59D3F A3BD6C96 F8D33866 3F1CCCEA
1C25BE4D 25B1C4CC 5110C20E 5246CC42
D232C83B C99CCC42 0E32890C B6CBF018
B1D4C178 2F9DDB16 ABAA74E5 95304BEF
9D0CCFA9 8AF8F8E2 1E0A955E 4771A576
# Decompile
dtc -I dtb -O dts -o devicetree.dts /boot/dtb/<your_devicetree_file_name>.dtb
# Compile
dtc -I dts -O dtb devicetree.dts -o <your_devicetree_file_name>.dtb
# Merge with DTBO
fdtoverlay -i modified-base.dtb -o modified-full.dtb /boot/tegra194-p3668-all-p3509-0000-user-custom.dtbo
# DTS from fs
@fuzzKitty
fuzzKitty / gist:8ca2587213874e94e5c0aedf346c18b1
Created November 17, 2021 14:44
CVE-2020-23617 - Totolink N200RE and N100RE Routers - 2.0
CVE-2020-23617
Vulnerable Product Version: Totolink N200RE and N100RE Routers - 2.0
Vendor: http://totolink.net/
Vulnerability Type: Cross Site Scripting (XSS)
Description: A cross site scripting (XSS) vulnerability in ther error page of
Totolink N200RE and N100RE Routers 2.0 allows attackers to execute
arbitrary web scripts or HTML via a SCRIPT element.
Discovered by:
Omri Inbar, Shlomo Ben Yosef
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Created June 18, 2021 03:56 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@raspiduino
raspiduino / sudocmd.md
Last active December 15, 2020 16:38
Sudo command for cmd

Sudo command for cmd

What is this?

In Linux, we can use sudo to run command as root. In Windows, we can use runas command to do that, but it doesn't support for empty password file! So we make this small macro for you to do the same thing as sudo for Windows.

How to use this?

Install this macro:

doskey sudo=start /min powershell -Command "Start-Process $* -Verb runAs"

Using this macro: