Skip to content

Instantly share code, notes, and snippets.

View Ethorbit's full-sized avatar

Ethorbit Ethorbit

View GitHub Profile
@Ethorbit
Ethorbit / gpupv-acceleration-tut.md
Last active February 5, 2025 16:23
Hyper-V tutorial to partition GPU for virtualization + achieve full GPU acceleration with it and daily drive it.
@chewtoys
chewtoys / StableDiffusion ControlNet OpenPose Template For Character Concept.md
Last active February 14, 2025 10:44
StableDiffusion ControlNet OpenPose Template For Character Concept

StableDiffusion ControlNet

OpenPose Template For Character Concept

Set Structure

  • In txt2img tab
  • Upload the OpenPose template to ControlNet
  • Check Enable and Low VRAM
  • Preprocessor: None
  • Model: control_sd15_openpose
  • Guidance Strength: 1
@peedy2495
peedy2495 / README.md
Last active May 15, 2024 20:17
Deploy USB-devices via Network as simple and stable as possible

Deploy USB-devices via Network as simple and stable as possible

Features:

  • auto-export on host when a defined usb-device has been plugged
  • auto-attachment on client when a disappeared remote-device is available, again.

Files Included:

README.md
[email protected]

@MakiseKurisu
MakiseKurisu / pmxcfs.sh
Last active October 20, 2024 21:30
Mount pmxcfs
mkdir ./mnt
mount /dev/pve/root ./mnt
cd mnt
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
cd ..
chroot ./mnt ./bin/bash
pmxcfs
/bin/nano /etc/pve/nodes/{node name}/qemu-server/100.conf
@telenieko
telenieko / a_enable_wireless.sh
Created March 5, 2018 16:57
Sample files to enable wireless on Debian initramfs
#!/bin/sh
# this goes into /etc/initramfs-tools/scripts/init-premount/a_enable_wireless
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
@sloanlance
sloanlance / jq_jsonl_conversion.md
Last active May 7, 2025 18:51
jq: JSONL ↔︎ JSON conversion

jq: JSONL ↔︎ JSON conversion

Prerequisites

  • jqhttps://jqlang.github.io/jq/ — "like sed for JSON data"

    There are several options available for installing jq. I prefer to use Homebrew: brew install jq

  1. JSONL → JSON

@slavafomin
slavafomin / nodejs-custom-es6-errors.md
Last active May 12, 2025 03:50
Custom ES6 errors in Node.js

Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.

I've tried to make it as lean and unobtrusive as possible.

Defining our own base class for errors

errors/AppError.js

List of MOC Keys
enter -- starts playing
s -- stops playing
n -- plays next item from the playlist
b -- plays previous item from the playlist
space -- pause
p -- pause
S -- plays at random
R -- repeats the same song in a loop,
@ipedrazas
ipedrazas / gist:2c93f6e74737d1f8a791
Created September 18, 2014 22:13
List Docker Container Names and IPs
function drips(){
docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /'
}
@zupo
zupo / folder_splitter.py
Created June 24, 2013 12:56
Split a folder with many files into subfolders with N files. Usage: python folder_splitter.py path/to/target/folder
# -*- coding: utf-8 -*-
# @author: Peter Lamut
import argparse
import os
import shutil
N = 10 # the number of files in seach subfolder folder