Skip to content

Instantly share code, notes, and snippets.

@Kamik423
Kamik423 / subl
Created August 30, 2023 19:26
Open Sublime Text From Windows Subsystem for Linux Version 2
#!/usr/bin/env python3
# Place in /usr/local/bin or some other path in $PATH
# Description: see https://hans.coffee/blog/subl-on-wsl/
import subprocess
import sys
# The path to the Sublime Text Windows executable in the Linxu file-system.
SUBL = "/mnt/c/Program Files/Sublime Text/subl.exe"
@wbotelhos
wbotelhos / clear-sidekiq-jobs.sh
Last active January 3, 2026 03:46
Clear Sidekiq Jobs
require 'sidekiq/api'
# 1. Clear retry set
Sidekiq::RetrySet.new.clear
# 2. Clear scheduled jobs
Sidekiq::ScheduledSet.new.clear

scenario: you have a windows vm failing to boot with INACCESSIBLE_BOOT_DEVICE and changing the disk type to ide or something else causes another bsod. how to you get it to boot up again without a physical machine?

download the stable virtio drivers from here, in iso form: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso

add the iso to your qemu/virt manager config as a cd/dvd drive

windows should send you to the recovery mode screen, but if it doesn't you might have to run a windows install iso to get to it.

@22Pizzas
22Pizzas / lm-studio-installer.sh
Created January 3, 2026 03:20
Secure LM Studio Linux Installer/Updater – extracts AppImage, fixes chrome-sandbox (SUID), creates desktop entry & symlinks
#!/bin/bash
set -euo pipefail
# -------------------------------
# Configuration
# -------------------------------
readonly INSTALL_DIR="${HOME}/.local/share/lm-studio"
readonly BIN_DIR="${HOME}/.local/bin"
readonly DESKTOP_DIR="${HOME}/.local/share/applications"
readonly EXTRACT_DIR="squashfs-root"
@minimaxir
minimaxir / CLAUDE.md
Created January 2, 2026 01:57
Rust CLAUDE.md (20260101)

Agent Guidelines for Rust Code Quality

This document provides guidelines for maintaining high-quality Rust code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes:

@hohowin
hohowin / copy-repo.md
Last active January 3, 2026 03:34
Copy a repo without forking

How to copy a GitHub repo without forking

GitHub only lets you fork a repo once, if you want to make more than one copy of a project here's how you can do it. Useful for starter code.

  1. Create a new empty folder for your project and initialize git

    cd where-you-keep-your-projects

mkdir your-project-name

@arch1t3cht
arch1t3cht / video_noob_guide.md
Last active January 3, 2026 04:04
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of computing power, storage space, or video quality.