Content :
Discover gists
| #!/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" |
| 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.
| #!/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" |
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.
-
Create a new empty folder for your project and initialize git
cd where-you-keep-your-projects
mkdir your-project-name
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.