Skip to content

Instantly share code, notes, and snippets.

@Roliga
Roliga / LoadShapeKeyValues.py
Created April 14, 2022 17:23
Blender add-on for loading, saving and resetting shape key values.
bl_info = {
"name": "Load Shape Key Values",
"blender": (3, 0, 0),
"category": "Object",
"location": "Object Data Properties > Shape Key Specials",
"description": "Load, save and reset shape key values",
}
import bpy, json
from bpy_extras.io_utils import ImportHelper, ExportHelper
@Roliga
Roliga / RemoveUnusedShapeKeys.py
Created April 14, 2022 13:29
Blender add-on for removing empty shape keys.
bl_info = {
"name": "Remove Unused Shape Keys",
"blender": (2, 80, 0),
"category": "Object",
}
import bpy
import numpy as np
@Roliga
Roliga / hibernate-vm
Created April 14, 2020 12:00
Hibernate libvirt VM on host shutdown/sleep.
#!/bin/bash
#
# Usage: hibernate-vm NAME
#
# Hibernates the VM specified in NAME and waits for it to finish shutting down
#
if virsh dompmsuspend "$1" disk; then
echo "Waiting for domain to finish shutting down.." >&2
#!/bin/sh
# Based on https://gist.github.com/thrimbor/67d109004db28820bf918c8ac80f75d2
# BEFORE RUNNING THIS, go into the game's properties in steam and set "Force the use of a specific Steam Play compatability tool" to "Proton 4.2-9". Other versions may work as well, but that's what worked for me.
# Also click "SET LAUNCH OPTIONS" and input: WINEDLLOVERRIDES="mscoree=n" %command%
# If you have been experimenting with other workarounds to get the game running you might also want to "VERIFY INTEGRITY OF GAME FILES" on the "LOCAL FILES" tab.
# Finally in this script change the following line to point to your steamapps directory if it dowsn't already:
steamappsDir="$HOME/.local/share/Steam/steamapps"
#!/bin/bash
useColors=true
usePager=true
usage() {
echo "\
Usage: $(basename $0) [OPTIONS]
Shows information about IOMMU groups relevant for working with PCI-passthrough
@Roliga
Roliga / PKGBUILD
Created September 20, 2017 01:18
Compton with some modifications
pkgname=compton-mod
_gitname=compton
pkgver=0.1_beta2.85.ga37cb14
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana) (git-version)"
arch=(i686 x86_64)
url="https://github.com/Roliga/compton"
license=('MIT')
depends=('libgl' 'libdbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig' 'libxinerama' 'hicolor-icon-theme')
makedepends=('git' 'asciidoc' 'mesa')