Skip to content

Instantly share code, notes, and snippets.

@shamil
shamil / mount_qcow2.md
Last active November 18, 2024 21:38
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
#!/bin/bash
# This command line works well enough to encode videos for my Sylvania SDVD9020B
# portable DVD players. There are still mysterious issues with aspect ratio, but
# this method is the best compromise I've found so far in about two hours of
# digging and experimentation.
# Observations:
# setting an aspect ratio of 16:9 seems to work for 2.35:1
# video. Not sure why.
@h3po
h3po / Asus-Z170-Deluxe.conf
Last active November 19, 2022 15:53
My lm_sensors config for the Nuvoton NCT6793D on my Asus Z170-Deluxe Motherboard. Haven't figured out the voltages yet. To get the nct6775 driver working with the monitor chip, you need to boot with acpi_enforce_resources=lax to ignore the ACPI address space conflict with the EFI.
chip "nct6793-isa-0290"
label in0 "CPUVCORE"
compute in0 @*2, @/2
label in1 "VIN0"
label in2 "AVCC"
label in3 "3VCC"
label in4 "VIN1"
label in5 "VIN2"
label in6 "VIN3"
label in7 "3VSB"
@dapperfu
dapperfu / opencv320.sh
Last active November 28, 2019 09:49
Build .deb package for OpenCV 3 w/Python3 bindings.
#!/usr/bin/env bash
# Config
MAINTAINER="Jed Frey"
VERSION=3.2.0
# Adapted from http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/
apt-get install --yes libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev \
libswscale-dev libxvidcore-dev libx264-dev libv4l-dev liblapacke-dev libgtk-3-dev \
libopenblas-dev libhdf5-dev libtesseract-dev libleptonica-dev \

How the NZXT Hue+ works

Also applies to the NZXT Smart Device

TL; DR

Hue+ accessories use WS2812B integrated LED and controllers. Pinout is:

  • +5V (marked with arrow; corresponding wire with white stripe)
  • IN (data in)
@dlime
dlime / create_opencv_deb.sh
Last active November 15, 2024 11:27 — forked from dapperfu/opencv320.sh
Build .deb package for OpenCV 4 with Python3 bindings. Optimized for Raspberry PI deep learning purposes (NEON, VFPV3, Eigen3, TBB turned on).
#!/usr/bin/env bash
MAINTAINER="Dario Limongi"
VERSION=4.1.0
# Adapted from https://www.pyimagesearch.com/2018/09/26/install-opencv-4-on-your-raspberry-pi/
sudo apt update && sudo apt upgrade -y
sudo apt-get install -y \
build-essential ccache cmake unzip pkg-config curl \
libjpeg-dev libpng-dev libtiff-dev \

Maker Select V2 (MSV2) Mods

Todo

TMC2130 Steppers with Sensorless Homing for X/Y Axis
BLTouch
Dual Extruder
24v Power Supply (24v Fans, resolder hotbead)
ReDuplicator i3 MK3x - Wanhao i3 Complete Aluminium Extrusion & Prusa Mk3 Overhaul

# make sure that your dns has a cname set for organizr
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name shinobi.*;
include /config/nginx/ssl.conf;
@redphx
redphx / stock_alert.json
Created May 23, 2022 10:18
Stock alert using Node-RED
[
{
"id": "bbd65f58de8fc93e",
"type": "group",
"z": "5501e19c.72a0c",
"name": "Coral USB",
"style": {
"label": true
},
"nodes": [