Skip to content

Instantly share code, notes, and snippets.

Tom Butler TRPB

Block or report user

Report or block TRPB

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TRPB
TRPB / arch-macbook2018.md
Last active May 24, 2020
Guide: Running Arch on a 2018 MacBook Pro
View arch-macbook2018.md

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
View htsp.js
"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;
View steam-505170.log
======================
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 / gst.cpp
Created Mar 23, 2017
gst-streams
View gst.cpp
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);
View vlc-nightly-pkgbuild
# $Id$
# Maintainer: Sebastian Weiland <sebastianweiland97@gmail.com>
# 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
You can’t perform that action at this time.