Skip to content

Instantly share code, notes, and snippets.

View Ghostbird's full-sized avatar

Gijsbert ter Horst Ghostbird

View GitHub Profile
@Ghostbird
Ghostbird / Android.mk.patch
Created November 24, 2021 20:25
Patchfile to build libusb/hidapi
From 81c90e35566e959fbb0abfb3532847d4a11ac897 Mon Sep 17 00:00:00 2001
From: Ghostbird <gijsbertth@gmail.com>
Date: Wed, 24 Nov 2021 21:23:20 +0100
Subject: [PATCH] temp
---
android/jni/Android.mk | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/android/jni/Android.mk b/android/jni/Android.mk
@Ghostbird
Ghostbird / bash-random-password.sh
Created October 4, 2021 17:15
Generate a random password, show it, and add it to the CTLR+V clipboard with this bash one-liner
#!/bin/bash
dd if=/dev/random bs=1 count=${1:-16} 2> /dev/null | base64 | tee >(xclip -selection clip-board);
@Ghostbird
Ghostbird / build-ffmpeg-nvenc.sh
Last active December 22, 2023 02:05
Automatically compile and install FFMPEG with NVIDIA hardware acceleration on Debian 10+
#!/bin/bash
# Automatically compile and install FFMPEG with NVIDIA hardware acceleration on Debian
# Based on https://www.tal.org/tutorials/ffmpeg_nvidia_encode
# Verified working on Debian 10 and 11
# Abort on error
set -e
suite=stable
@Ghostbird
Ghostbird / extra-jack-pulse-connections.sh
Last active June 26, 2023 01:02
Add extra pulseaudio - jack bridge connections to allow jack routing for pulseaudio applications
#!/bin/bash
sources=(telegram zoom teams discord extra)
sinks=(telegram kodi zoom teams discord extra)
startTime=$(date +%s)
function capitalise() {
echo $1 | sed -e "s/\b\(.\)/\u\1/g"
}
@Ghostbird
Ghostbird / docker-compose.yml
Last active May 27, 2021 21:57
Docker compose file for graylog 4. Demonstrates the bug at https://github.com/Graylog2/graylog2-server/issues/9550
version: '3'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongo:
image: mongo:4.4
volumes:
- mongo_data:/data/db
networks:
- graylog
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
@Ghostbird
Ghostbird / openmw-crash.log
Created June 3, 2019 21:30
OpenMW crash log
*** Fatal Error ***
Address not mapped to object (signal 11)
Address: (nil)
System: Linux firebird 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64
Executing: gdb --quiet --batch --command=/tmp/gdb-respfile-8nlVNh
[New LWP 5124]
[New LWP 5125]
[New LWP 5126]