Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
@dreamcat4
dreamcat4 / snd-firewire-ctl-install.md
Last active July 17, 2022 13:26
build + install on ubuntu 22.04+

Source: alsa-project/snd-firewire-ctl-services#85 (comment)

Here is a recap of the whole process to install a firewire driver on Ubuntu 22.04

  • Install rust and cargo. Instructions

  • Install dependencies sudo apt install libudev1 gobject-introspection meson ninja-build build-essential libudev-dev libgirepository1.0-dev gi-docgen

  • Generate the deb packages for other dependencies libhinawa, libhitaki and alsa-gobject

  • For each repo:

@dreamcat4
dreamcat4 / build-deps.sh
Created July 1, 2022 09:14
My steps to build dependancies - on Ubuntu 22.04
# install snd-firewire-ctl-services rust crate
# build deps
mkdir -p ~/.builds/firewire
cd ~/.builds/firewire
git clone https://github.com/alsa-project/libhinawa
cd libhinawa
meson --prefix=/usr build-directory
meson compile -C build-directory
meson test -C build-directory
[id:~/.builds/firewire] $
# install snd-firewire-ctl-services rust crate
# build deps
mkdir -p ~/.builds/firewire
cd ~/.builds/firewire
git clone https://github.com/alsa-project/libhinawa
cd libhinawa
meson --prefix=/usr build-directory
@dreamcat4
dreamcat4 / aaa-saffire-pro-40.fw.md5sums.sh
Last active June 18, 2022 14:10
saffire pro 40 - (dice jr) - its firmware and flash layout, data written in the Spansion NOR Flash (2mb)
θ88° [id:~/saffire-pro-40/fw] $ find . -name '*ro40*bin' | xargs md5sum | sort
41f5290f499ead74bee9b0e29f5e53c0 ./mac/2.44_2011_pal-base-3.5.6-11675_fw-driver-3.5.6.11675_revision-2422/Pro40Firmware.bin
41f5290f499ead74bee9b0e29f5e53c0 ./win/2.4_2011_pal-base-3.5.6-11675_revision-2422/Pro40Firmware.bin
e42125cd73107cca13de863d3af8ae06 ./mac/3.9.32.0_2019_pal-base-4.3.0-41017_revision-3168/Pro40d3Firmware.bin
ef6fc185bb3b93dccdde59e0e9538c8c ./mac/3.7_2015_pal-base-4.3.0-41017_revision-2989/Pro40d3Firmware.bin
ef6fc185bb3b93dccdde59e0e9538c8c ./win/3.7_2015_pal-base-4.3.0-41017_revision-2989/Pro40d3Firmware.bin
f7b810063824fa0f684140b4980281c0 ./mac/3.4_2014_pal-base-4.1.4-18150_revision-2852/Pro40Firmware.bin
f7b810063824fa0f684140b4980281c0 ./mac/3.5_2014_pal-base-4.1.4-18735_revision-2879/Pro40Firmware.bin
f7b810063824fa0f684140b4980281c0 ./mac/3.7_2015_pal-base-4.3.0-41017_revision-2989/Pro40Firmware.bin
f7b810063824fa0f684140b4980281c0 ./mac/3.9.32.0_2019_pal-base-4.3.0-41017_revision-3168/Pro40F
@dreamcat4
dreamcat4 / 000-installed-kernels
Created June 16, 2022 07:38
/boot/config-5.17.14-xanmod1
[id:/boot] $ uname -a
Linux apex 5.17.14-xanmod1 #0~git20220609.03e6fb8 SMP Thu Jun 9 19:44:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[id:/boot] $ ls
config-5.13.12-051312-lowlatency initrd.img-5.13.12-051312-lowlatency memtest86+_multiboot.bin vmlinuz-5.15.0-30-lowlatency
config-5.15.0-30-lowlatency initrd.img-5.15.0-30-lowlatency System.map-5.13.12-051312-lowlatency vmlinuz-5.15.2-xanmod1-id
config-5.15.2-xanmod1-id initrd.img-5.15.2-xanmod1-id System.map-5.15.0-30-lowlatency vmlinuz-5.15.2-xanmod1-tt-id
config-5.15.2-xanmod1-tt-id initrd.img-5.15.2-xanmod1-tt-id System.map-5.15.2-xanmod1-id vmlinuz-5.15.45-xanmod1-tt
config-5.15.45-xanmod1-tt initrd.img-5.15.45-xanmod1-tt System.map-5.15.2-xanmod1-tt-id vmlinuz-5.17.0-15.1-liquorix-amd64
config-5.17.0-15.1-liquorix-amd64 initrd.img-5.17.0-15.1-liquorix-amd64 System.map-5.15.45-xanmod1-tt vmlinuz-5.17.13-xanmod1
config-5.17.13-xanmod1
[Debug : 11:42:41.855855] - "badges based on position updated to :: (\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"z\", \"\", \"c\", \"\", \"\", \"n\", \"\", \",\", \"\")"
[Debug : 11:42:41.855855] - "badges for applet shortcuts updated to :: QHash()"
[Debug : 11:42:41.861861] - " Indicator Package Loaded ::: \"Dash To Panel\" [ \"org.kde.latte.dashtopanel\" ] - [ \"/home/id/.local/share/latte/indicators/org.kde.latte.dashtopanel\" ]"
[Debug : 11:42:41.861861] - " Indicator Package Loaded ::: \"Latte\" [ \"org.kde.latte.default\" ] - [ \"/usr/share/latte/indicators/default\" ]"
[Debug : 11:42:41.862862] - " Indicator Package Loaded ::: \"Plasma Tab Style\" [ \"org.kde.latte.plasmatabstyle\" ] - [ \"/usr/share/latte/indicators/org.kde.latte.plasmatabstyle\" ]"
[Debug : 11:42:41.862862]
@dreamcat4
dreamcat4 / Finalmouse Starlight v1.2.5 Firmware Update - Instructions for Flashing on Linux or MacOS.md
Last active April 10, 2022 10:15
Finalmouse Starlight v1.2.5 Firmware Update - Instructions for Flashing on Linux or MacOS

Finalmouse Starlight v1.2.5 Firmware Update - Instructions for Flashing on Linux or MacOS

Unfortunately the official FinalMouse firmware update instructions only cover Windows operating system! So what to do then? Not on windows? Then this page is for you.

DISCLAIMERS - MUST READ!

Unofficial flashing instructions, these were not officially written or endorsed by the Finalmouse Team. Or representatives of Finalmouse. So please proceed with a greater level of care. And please be aware of the possible risks when flashing. You can brick your device should something go wrong. Be aware that (at their own discretion) Finalmouse may not warrant any subsequent problems or issues arising from following these instructions! Many thanks for your understanding :)

Having said all that, this flashing process seems to be reasonably safe. This is mainly because Finalmouse uses a pretty standard / stock looking MCU from nordic semiconductor. (at least to the extent that it matters for flashing). Since I have checked an

@dreamcat4
dreamcat4 / solder-wicks-ranked.md
Last active October 23, 2022 19:14
Everything I know about solder wick

solder wick ranking table

inspection criteria

by visual inspection only, ranked overall by these factors:

  • individual copper strands diameter (thin=best, low=almost best)
  • tightness of the copper weave (max=best, good=almost best)
  • if the braid is a flattened tube (double sided), or just a 1 sided strip
⏚ [id:~] $ pip3 install --pre -U checkov
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: checkov in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (2.0.660)
Collecting checkov
Downloading checkov-2.0.693-py3-none-any.whl (882 kB)
|████████████████████████████████| 882 kB 1.2 MB/s
Requirement already satisfied: GitPython in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (3.1.24)
Requirement already satisfied: boto3>=1.17 in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (1.20.24)
Requirement already satisfied: cachetools in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (4.2.4)
Requirement already satisfied: semantic-version in /zpool-0/Media/.AppData/.local/lib/python3.9/site-packages (from checkov) (2.8.5)
Setting up pipewire-bin (0.3.42.r25.gc8fc79b-1~ubuntu21.04) ...
/var/lib/dpkg/info/pipewire-bin.postinst: 1: ppa:pipewire-debian/wireplumber-upstream: not found
pipewire 0.3.42-1 (https://pipewire-debian.github.io)
Debian Package -
- move out pipewire-media-session to a new package