Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
@dreamcat4
dreamcat4 / add-this-into-your-profile-or-login-script.sh
Last active September 18, 2022 13:27
Hex binary diff 2 files, with your own choice / variety of preferred diff tools
# source discussion, over on superuser:
# https://superuser.com/questions/125376/how-do-i-compare-binary-files-in-linux
hex-binary-diff()
{
_diffcmd="$1"
shift
unset _diff_opts
_arg="$1"
[id:~] $ alsa-capabilities --samplerates
1: `DICE' Analog audio output on device Pro40-00822d
-hardware address: hw:0,0 (or hw:Pro4000822d,0)
-sample rates per format: S32_LE: 384000, 352800, 192000, 176400, 96000, 88200, 48000, 44100
-usb audio class: (n/a)
-streamfile: (n/a)
-character device: /dev/snd/pcmC0D0p
-monitor file: /proc/asound/card0/pcm0p/sub0/hw_params
2: `DICE' Analog audio output on device Pro40-00822d
-hardware address: hw:0,1 (or hw:Pro4000822d,1)
@dreamcat4
dreamcat4 / README.md
Created August 7, 2022 13:30 — forked from cellularmitosis/README.md
Arduino LCD display for HP 34401A
@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 / instructions.md
Last active July 15, 2022 17:39
How to configure ubuntu budgie for graphical alt-tab with external program 'skippy-xd'

How to configure Ubuntu Budgie for Alt-Tab with Skippy-XD

This guide assumes that you have already compiled and installed skippy-xd from here. You will probably need to compile it from source, then sudo make install. Because there is no PPA / .deb package made for it yet.

  • Check that you have the right version of skippy, by typing on the cmdline:
skippy-xd --help | grep -i 'puzzlebox'
@dreamcat4
dreamcat4 / plex.md
Last active July 7, 2022 04:25
How to Install Plex Media Server on FreeBSD, FreeNAS / NAS4Free / pfSense, with Finch - http://dreamcat4.github.io/finch/

Plex How-To

How to install Plex Media Server. Most of these commands can just be copy-pasted.

Update Finch

Update finch to version 1.25 or newer.

# Finch users should first update to get the latest fixes

[ "$(echo "$(finch --shortver) >= 1.25" | bc)" = 1 ] || sudo finch update -y

@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