Skip to content

Instantly share code, notes, and snippets.

View TRPB's full-sized avatar

Tom Butler TRPB

View GitHub Profile
@TRPB
TRPB / htsp.js
Last active October 18, 2019 20:12
"use strict";
//This is a line for line port of the python exampe at https://github.com/tvheadend/tvheadend/tree/master/lib/py/tvh
//I have no idea how this works, sorry!
var net = require('net');
var crypto = require('crypto');
var HOST = 'media';
var PORT = 9982;
# $Id$
# Maintainer: Sebastian Weiland <[email protected]>
# Original package: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
_appname_=vlc
pkgname=${_appname_}-nightly
pkgver=3.0.0v20161016
_pkgver=3.0.0
_snapshot_=20161016
_snapver_=0238
@TRPB
TRPB / gst.cpp
Created March 23, 2017 20:06
gst-streams
const GstStructure *structure = (GstStructure*)gst_message_get_structure(br->msg);
if(GST_MESSAGE_TYPE(br->msg) == GST_MESSAGE_STREAM_COLLECTION) {
GstStreamCollection *collection = NULL;
gst_message_parse_stream_collection (br->msg, &collection);
guint size = gst_stream_collection_get_size (collection);
for (guint i = 0; i < size; i++) {
g_print("Stream: %i\n",i);
======================
Proton: 1557774142 proton-4.2-4
SteamGameId: 505170
Command: ['/home/tom/.local/share/Steam/steamapps/common/Carmageddon Max Damage/bin/Carmageddon_Max_Damage.exe']
======================
ERROR: ld.so: object '/home/tom/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tom/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/tom/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/tom/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
138301.775:0008:0009:trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\KERNEL32.dll" at 0x7b420000: builtin
@TRPB
TRPB / arch-macbook2018.md
Last active June 14, 2024 17:31
Guide: Running Arch on a 2018 MacBook Pro

Hardware Prerequisites

You'll need at least the following hardware:

  • At least 3 USB-A to USB-C converters or hub with enough ports for at least 3 USB devices if all your devices are USB-A then:
  • A USB drive
  • A USB keyboard
  • USB to Ethernet adapter, compatible USB dongle or USB tethering on a phone
@TRPB
TRPB / wayland-scaling.md
Created January 13, 2022 21:11
Wayland display scaling sucks

Wayland's approach to scaling sucks. It's broken by design. Sorry, devs, it just does.

If I set wayland display scaling to use 1.25 scaling it scales up to 2 then back down to 1.25. This makes everything apart from fonts (which are handled differently) blurry and has a bunch of annoying side effects.

  1. Anything running in XWayland is scaled horridly and looks super blurry.

  2. Any borders of UI elements or thin lines suddenly become blurry because 2 pixels can't go into 1 pixel so the scaling algorithm blurs the the nearest two to the average colour between them.

  3. I can't view an entire 3840x2160 image in a web browser without scaling it down.