Skip to content

Instantly share code, notes, and snippets.

Avatar

Bram Harmsen bremme

View GitHub Profile
@bremme
bremme / triples.sh
Created Jul 7, 2020
Switch between triple monitors and single monitor
View triples.sh
#!/usr/bin/env bash
if [[ $1 == "on" ]]; then
# Turn on all three monitors and make 2nd primary
xrandr --output DP-2 --auto --primary
xrandr --output DP-0 --auto --left-of DP-2
xrandr --output DP-4 --auto --right-of DP-2
elif [[ $1 == "off" ]]; then
# Turn all three monitors off and make 3rd primary
xrandr --output DP-0 --off
@bremme
bremme / lsusb-th8a.txt
Created Nov 29, 2017
Trustmaster TH8A Add-on shifter usb descriptors
View lsusb-th8a.txt
Bus 001 Device 021: ID 044f:b660 ThrustMaster, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x044f ThrustMaster, Inc.
@bremme
bremme / tudelft.soc
Created Jun 15, 2016
Delft University of Technology corporate design color pallet for LibreOffice
View tudelft.soc
<!--
TU Delft corporate design color for LibreOffice
For more information see https://intranet.tudelft.nl/en/services/communication/manuals/tu-delft-corporate-design/colours/
To install: copy this file to your LibreOffice config dir. For example: /home/<username>/.config/libreoffice/4/user/config
Author: Bram Harmsen
Date: June 2016
-->
<?xml version="1.0" encoding="UTF-8"?>
<ooo:color-table xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ooo="http://openoffice.org/2004/office">
<!-- Black and white -->
@bremme
bremme / keyboards.xml
Last active Sep 10, 2018
ir-keytable configuration for hp media center receiver and remote (Bus 004 Device 002: ID 1934:5168 Feature Integration Technology Inc. (Fintek) F71610A or F71612A Consumer Infrared Receiver/Transceiver)
View keyboards.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not -->
<!-- used in the current window's section. Note that there is only handling -->
<!-- for a single action per button at this stage. -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
<!-- gamepads. -->
<!-- The format is: -->
<!-- <device> -->
View .picasa.ini
#==============================================================
# .picasa.ini FILE STRUCTURE
#
# reverse-engineered by Franz Buchinger <fbuchinger@gmail.com>
# licensed to the public domain
#
# Picasa Version(s): 3.8.0
#
# Changelog:
# v0.1: initial release
@bremme
bremme / pad-1-5-chillstream
Last active Nov 29, 2016
ePSXe configuration and scripts
View pad-1-5-chillstream
#!/bin/bash
#
# pad-1-5-chillstream -- this script is used to configure two Logitech Chillstream controllers for use with ePSXe (1.9) through wine connected to port 1 (player 1) and port 5 (player 2).
#
# Copyright (C) 2014 Bram Harmsen
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
You can’t perform that action at this time.