Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Brakensiek Letterus

View GitHub Profile
@Letterus
Letterus / Qemu GPU Passthrough.md
Created Jun 9, 2022
Notes to fix GPI passthrough for QEMU on Debian Bullseye
View Qemu GPU Passthrough.md

QEMU GPU Passthrough

Fix to free screen (via sudo):

#!/bin/bash
echo 0 > /sys/class/vtconsole/vtcon0/bind
echo 0 > /sys/class/vtconsole/vtcon1/bind
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
@Letterus
Letterus / blacklist-nvidia-nouveau.conf
Created Feb 14, 2022
Kernel modules and X11 config for PPC G5 to enable use of second graphics card from AMD (radeon) only
View blacklist-nvidia-nouveau.conf
# /etc/modprobe.d/blacklist-nvidia-nouveau.conf
blacklist nouveau
options nouveau modeset=0
options radeon modeset=1
@Letterus
Letterus / compton.conf
Last active Jan 8, 2022
Compton config (.config/compton.conf) for use with Xfce
View compton.conf
backend = "glx";
glx-no-stencil = true;
vsync = true;
unredir-if-possible = true;
shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-exclude = [ "n:e:Notification", "n:e:Docky", "g:e:Synapse", "g:e:Conky", "n:w:*Chromium*", "n:w:*Firefox*", "n:w:*Epiphany*", "n:w:*dockbarx*", "class_g ?= 'Cairo-dock'", "class_g ?= 'Xfce4-notifyd'", "class_g ?= 'Xfce4-power-manager'", "class_g ?= 'Notify-osd'", "_GTK_FRAME_EXTENTS@:c" ];
detect-client-opacity = true;
@Letterus
Letterus / config.txt
Created Jan 1, 2022
Xfce Panel Profile (unzipped tar.bz2) at ~/.local/share/xfce4-panel-profiles
View config.txt
/configver 2
/panels [<1>]
/panels/dark-mode false
/panels/panel-1/background-style uint32 0
/panels/panel-1/disable-struts false
/panels/panel-1/icon-size uint32 16
/panels/panel-1/length uint32 100
/panels/panel-1/plugin-ids [<7>, <1>, <3>, <4>, <5>, <6>, <8>, <9>, <10>, <11>, <12>, <13>, <14>]
/panels/panel-1/position 'p=6;x=0;y=0'
/panels/panel-1/position-locked true
@Letterus
Letterus / lightdm-gtk-greeter.conf
Created Jan 1, 2022
LightDM Greeter Configuration for Debian Xfce
View lightdm-gtk-greeter.conf
# LightDM GTK+ Configuration
# Available configuration options listed below.
#
# Appearance:
# theme-name = GTK+ theme to use
# icon-theme-name = Icon theme to use
# cursor-theme-name = Cursor theme to use
# cursor-theme-size = Cursor size to use
# background = Background file to use, either an image path or a color (e.g. #772953)
# user-background = false|true ("true" by default) Display user background (if available)
@Letterus
Letterus / download_moodle.php
Last active Apr 7, 2021
A PHP script to download Moodle to a shared web space with only FTP access
View download_moodle.php
<?php
$url = "https://download.moodle.org/download.php/direct/stable310/moodle-latest-310.zip";
$zipFile = "moodle-latest-310.zip"; // Local Zip File Path
$extractPath = ".";
$zipResource = fopen($zipFile, "w");
if(!ini_get('allow_url_fopen'))
die("Error: 'allow_url_fopen' is disabled.\n");
View libdispatch_5.1.5-0.1.dsc
Format: 3.0 (quilt)
Source: libdispatch
Binary: libdispatch-dev, libdispatch0
Architecture: any
Version: 5.1.5-0.1
Maintainer: Patrick Georgi <patrick@georgi.software>
Homepage: http://libdispatch.macosforge.org/
Standards-Version: 4.5.0
Build-Depends: debhelper-compat (= 12), clang (>= 8) | clang-8, cmake
Build-Conflicts: clang (<< 8)
View open_source_church_software.md
@Letterus
Letterus / GNUstep Ubuntu packaging.md
Last active Mar 3, 2020
Some hints to package GNUstep for Ubuntu using Launchpad