Skip to content

Instantly share code, notes, and snippets.

View bremme's full-sized avatar

Bram Harmsen bremme

  • The Netherlands
View GitHub Profile
@bremme
bremme / triples.sh
Created July 7, 2020 19:21
Switch between triple monitors and single monitor
#!/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

Pel,nett

Pel,nett

@bremme
bremme / lsusb-th8a.txt
Created November 29, 2017 20:32
Trustmaster TH8A Add-on shifter usb descriptors
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 June 15, 2016 16:21
Delft University of Technology corporate design color pallet for LibreOffice
<!--
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 September 10, 2018 13:13
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)
<?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> -->
@bremme
bremme / .picasa.ini
Last active February 14, 2016 12:43 — forked from fbuchinger/.picasa.ini
#==============================================================
# .picasa.ini FILE STRUCTURE
#
# reverse-engineered by Franz Buchinger <[email protected]>
# licensed to the public domain
#
# Picasa Version(s): 3.8.0
#
# Changelog:
# v0.1: initial release
@bremme
bremme / pad-1-5-chillstream
Last active November 29, 2016 02:30
ePSXe configuration and scripts
#!/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