Skip to content

Instantly share code, notes, and snippets.

View jkirk's full-sized avatar

Darshaka Pathirana jkirk

View GitHub Profile
@Anakiev2
Anakiev2 / How to install the Nvidia legacy driver (340xx or 390xx) on Debian 13 Trixie.md
Last active September 14, 2025 16:17
How to install the Nvidia legacy driver (340xx or 390xx) on Debian 13 Trixie

How to install the Nvidia legacy driver (340xx or 390xx) on Debian 13 Trixie

This guide will show you how to compile and install the legacy Nvidia driver on Debian. The steps bellow are compatible with both nvidia-legacy-340xx-driver and nvidia-legacy-390xx-driver and can be installed on Debian 13 (Trixie) as well as Debian 12 (Bookworm) or Debian 11 (Bullseye) in both 64-bit and 32-bit version. Execute the lines one by one and wait for every line to finish before proceeding to next. Only the lines starting with sudo should be executed as root. The lines with sudo pbuilder will take a lot of time.

To install the nvidia-legacy-390xx-driver version replace 340xx with 390xx everywhere bellow.
To install both 64-bit and 32-bit libraries for wine/steam you should run Step 2. twice.

Step 1. Prepare:

Update, upgrade and install the required packages.
If you use 32-bit system do not install linux-headers-amd64.

How I use Hassio as a Bluetooth: Keyboard\MediaControl\Mouse Combo

OVERVIEW:

Hello, 😀

PART 1:

I've been using Hassio for over a year now and am generally happy with it. I use it to control fireplaces, shades, lights, etc., but mainly use it to control my entertainment systems.

I'm a cord cutter and watch all my video with an Amazon FireTV 3rd gen stick and my audio with a Sonos surround sound bar.

@jkirk
jkirk / del_imap.py
Last active November 22, 2022 13:28
List (or flag) mails of an IMAP account which contains a given subject text
#!/usr/bin/python3
import getpass
def del_imap(server, port, login, password, search):
import imaplib, email
# NOTE: According to RFC 1730 the SEARCH commands searches for 'messages that
# CONTAIN the specified string. When multiple keys are specified, the result
# is the intersection (AND function) of all the messages that match those
@dideler
dideler / example.md
Last active July 24, 2025 18:46
A python script for extracting email addresses from text files.You can pass it multiple files. It prints the email addresses to stdout, one address per line.For ease of use, remove the .py extension and place it in your $PATH (e.g. /usr/local/bin/) to run it like a built-in command.