Skip to content

Instantly share code, notes, and snippets.

nekiee13 / gist:c8ec43bce5fd75d20e38b31a613fd83d
Created January 30, 2024 03:56
Install Ollama under Win11 & WSL - CUDA Installation guide
CMD prompt - verify WSL2 is installed
`wsl --list --verbose`
`wsl -l -v`
git clone CUDA samples - I used location at disk d:\\LLM\\Ollama , so I can find samples with ease
`d: && cd d:\LLM\Ollama`
`git clone --recursive -j6`
Last active June 24, 2024 20:47
Create and populate albums on Immich based on folder name
import requests
import os
from collections import defaultdict
# I have photos in subfolders like :
# /mnt/media/Photos/2023-08 Holidays
# /mnt/media/Photos/2023-06 Birthday
# /mnt/media/Photos/2022-12 Christmas
# This script will create 3 albums
# 2023-08 Holidays, 2023-06 Birthday, 2022-12 Christmas
navarrothiago /
Last active July 18, 2024 16:42
Turn your smartphone or tablet camera into a WebCam to make video conference in Linux
stephan-t /
Last active July 4, 2020 22:49
Fixes texture corruption in VS Code terminal after resuming from suspend
# Fixes texture corruption in VS Code terminal after resuming from suspend.
# Place script in /lib/systemd/system-sleep/ so it can run after resuming.
# Dependencies: jq
case "$1" in
epcim /
Last active June 4, 2024 05:31
docker disk space introspection kubernetes docker overlay

identify big pods/containers

investigage big files

find /var/lib -type f -size +1G -exec ls -lh {} \; | tee  $DST/bigfiles_var_lib_$(date "+%H%M").log
find /var/lib -type f -size +1G -exec ls -lh {} \; | awk '{ print $5 ": " $9 }' | sort -rh > $DST/bigfiles_var_lib_$(date "+%H%M").sorted.log

misbehave processes

plembo /
Last active May 30, 2024 04:02
You need spice-vdagent

You need spice-vdagent

Debian or Kali Linux installed to as KVM (libvirtd) guests do not automatically have qemu-guest-agent or spice-vdagent installed. This will prevent seamless movement of the mouse cursor between the guest and host desktop in Virtual Machine Manager (requiring the use of a Ctrl-Alt to release the cursor from the guest window).

To cure this, install both qemu-guest-agent and spice-vdagent on each guest and reboot (the guests).

$ sudo apt install qemu-guest-agent
$ sudo apt install spice-vdagent
maqnouch /
Last active May 3, 2024 19:15
Signal Installation Steps
tcurvelo / takeout.js
Created April 18, 2018 00:46
WIP: Automating Google Takeout Download
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto('');
const input = await page.evaluate(() => {
const next = document.querySelector('#identifierNext');
heroheman /
Last active July 19, 2024 17:56
Ranger Cheatsheet

Ranger Cheatsheet


Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
ClemRz /
Last active May 31, 2024 15:07
This is how you download a KML from without needing a PRO account.