Skip to content

Instantly share code, notes, and snippets.

View Letterus's full-sized avatar

Johannes Brakensiek Letterus

View GitHub Profile
@Letterus
Letterus / settings.json
Created October 16, 2022 15:17
VSCodium Configuration for ObjFW
{
"workbench.colorTheme": "Default Dark+",
"git.autofetch": true,
"files.associations": {
"*.h": "objective-c"
},
"[objective-c]": {
},
@Letterus
Letterus / install-clang-14-on-debian.sh
Last active October 16, 2022 11:34
Install clang stable (14) on Debian Stable (Bullseye)
#!/bin/bash
wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/llvm-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main
deb-src [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main" | sudo tee /etc/apt/sources.list.d/clang.list
sudo apt update
sudo apt-get install clang-14 clang-tools-14 clang-14-doc libclang-common-14-dev libclang-14-dev libclang1-14 clang-format-14 python3-clang-14 clangd-14 clang-tidy-14 lldb-14 lld-14
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 140 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-14 --slave /usr/share/man/man1/clang.1.gz clang.1.gz /usr/share/man/man1/clang-14.1.gz --slave /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-14 --slave /usr/bin/clang-format clang-format /usr/bin/clang-format-14 --slave /usr/bin/clangd clangd /usr/bin/c
@Letterus
Letterus / apt-sources.list.d
Created October 16, 2022 11:15
LinuxMint Debian Edition Apt Sources
Repos: Packages: apt: 2275
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/clang.list
1: deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http: //apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main
2: deb-src [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http: //apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories-src.list
1: deb-src https: //deb.debian.org/debian/ bullseye main contrib non-free
2: deb-src https: //deb.debian.org/debian/ unstable main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb https: //ftp-stud.hs-esslingen.de/pub/Mirrors/packages.linuxmint.com elsie main upstream import backport
@Letterus
Letterus / Qemu GPU Passthrough.md
Created June 9, 2022 18:39
Notes to fix GPI passthrough for QEMU on Debian Bullseye

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 February 14, 2022 11:11
Kernel modules and X11 config for PPC G5 to enable use of second graphics card from AMD (radeon) only
# /etc/modprobe.d/blacklist-nvidia-nouveau.conf
blacklist nouveau
options nouveau modeset=0
options radeon modeset=1
@Letterus
Letterus / compton.conf
Last active January 8, 2022 21:56
Compton config (.config/compton.conf) for use with Xfce
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 January 1, 2022 16:50
Xfce Panel Profile (unzipped tar.bz2) at ~/.local/share/xfce4-panel-profiles
/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 January 1, 2022 16:45
LightDM Greeter Configuration for Debian Xfce
# 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 April 7, 2021 16:44
A PHP script to download Moodle to a shared web space with only FTP access
<?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");
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)