Skip to content

Instantly share code, notes, and snippets.

View ojsl1's full-sized avatar
💭

Niinu Laari ojsl1

💭
  • Lahti, Finland
  • 08:06 (UTC +03:00)
View GitHub Profile
@novacain1
novacain1 / gist:b1a20c9e82900e7495dc82e905a28981
Last active November 16, 2023 09:39
Migrating VHS using Canopus Firewire in Fedora

Migrating VHS using Canopus Firewire in Fedora

My notes around migrating analog VHS tapes to digital files using the Canopus ADVC55 IEEE1394 firewire hardware device in Fedora.

Hardware

I can't find this hardware online much anymore, but it works with a PCIe Firewire card. The VHS player outputs to it, it uses an FPGA to play the raw video through firewire to Linux. Ensure you have a green light on the device when playing the VHS tape.

Capturing to raw file

I prefer to capture using uncompressed, unaltered format so that if there's a better codec or format later in time, I can use it. This way I keep the original source material (with no quality loss), even though it does take up a huge amount of disk space.

@In-line
In-line / Dockerfile
Last active November 1, 2024 18:28
AMD 7900 XTX Stable Diffusion Web UI docker container (ROCM 5.5_rc4)
FROM rocm/composable_kernel:ck_ub20.04_rocm5.5_rc4
RUN mkdir /SD
# Clone SD
WORKDIR /SD
RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
WORKDIR /SD/stable-diffusion-webui
RUN git reset --hard 22bcc7be428c94e9408f589966c2040187245d81
@maelvls
maelvls / README.md
Last active October 9, 2025 07:42
My hundred struggles while using Linux as my desktop driver (Ubuntu 22.04)

My hundred struggles while using Linux as my desktop driver (Ubuntu 24.04)

Hi! On Thursday 25 April 2021, I entirely switched from macOS to Linux: https://maelvls.dev/evolution-of-my-home-office/. I took note of every adjustment I had to make along the way. I use Ubuntu "vanilla" (with Gnome as my desktop manager).

🔥 Update 26 June 2023: I am abandoning "desktop" Linux! I can't bear having to work around everything all the time, not even counting the tons of problems that occur whenever I do a major version upgrade (e.g., when I upgraded from 21.10 to 22.04, my PPAs broken obviously, and also I lost all the hack I had made to the /etc to work around problems). I am officially back to macOS starting 26 June 2023. I'll still use my Linux workstation remotely over Mosh, but not as a desktop environment. To learn more: https://hackmd.io/@maelvls/my-macos-tweaks


My other articles:

@thingsiplay
thingsiplay / proton
Last active December 10, 2024 18:05
Proton script
#!/bin/sh
# Execute Windows programs with Proton from Steams installation folder, without
# starting Steam client.
#
# 1. Create a directory for Proton environment to run in. As an example make a
# folder "proton" in your home directory. This folder must exist in order
# to make Proton work.
#
# 2. Point the variable "env_dir" in this script to that folder or...
@michaelbutler
michaelbutler / Steam_Proton_Exe.md
Last active September 30, 2025 06:30
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active September 27, 2025 18:41
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@Venemo
Venemo / mesa-howto.md
Last active August 16, 2025 00:57
How to build and use mesa from source

Building and using mesa for development and testing

This explains how to build mesa from source, and how to use the custom built mesa to run some apps and games, without needing to replace the mesa libraries that your operating system runs on.

Let's assume that you are using an x86_64 system.

Building mesa

Overview

Problem

In Arch Linux mkinitcpio -p linux

shows

Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x
@klingtnet
klingtnet / firewire-audio-interface-jack2-linux.md
Last active November 16, 2023 09:38
Use firewire audio interface with JACK2 in Arch Linux
  • Blacklist firewire sound kernel modules to prevent ALSA and PulseAudio from managing them by creating a file like /etc/modprobe.d/blacklist-snd-firewire.conf:
# This fixes the usage of firewire soundcards with Jack by
# preventing ALSA from handling the device.
# Only modules used for the Edirol FA-66 are blacklisted.
#
# For details refer to:
# https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit
# https://github.com/takaswie/snd-firewire-improve/blob/315dcdc4e430d44a6e109a015beecb8515fbe634/sound/firewire/Kconfig
#!/bin/bash
modprobe -r ec_sys
modprobe ec_sys write_support=1
on="\x8a"
off="\x0a"
led(){
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null