Skip to content

Instantly share code, notes, and snippets.


Peter Stevenson 2E0PGS

View GitHub Profile
2E0PGS /
Last active Sep 27, 2020
An example of how to spoof a controllers context in .NET WebAPI for views to resolve.
2E0PGS /
Last active Oct 22, 2020
Fix to pair Xbox One S Bluetooth controller on Ubuntu

First things first you need to have a new ish bluetooth adapter I have found in my testing.

It may need to be bluetooth 4 compatible I am not sure but my laptop and phone worked whereas my desktop using a £1 dongle did not.

Once you get a successful pair you may notice the controller still has a blinking light. If this is the case see below.

Install sysfsutils

sudo apt-get install sysfsutils

2E0PGS /
Last active Oct 1, 2020
Workaround for EXSI minimum RAM requirements.
2E0PGS /
Created Feb 10, 2018
How to get scratch 2 offline in adobe air on Ubuntu Linux

How to get scratch 2 offline in adobe air on Ubuntu Linux

Donload the adobe air installer:


Make the installer executable:

chmod +x

2E0PGS /
Last active Feb 10, 2018
Atom style hidden characters for Vim.

To show hidden characters in Vim and use the same display icons as Atom IDE.

Place the following in your ~/.vimrc

" Show hidden characters and use Atom style.
set list
set listchars=tab:»\ ,eol:¬,space:.
2E0PGS / .Xresources
Last active Jan 27, 2018
Ambiance / Ambience Colour Theme for XTerm.
View .Xresources
! Custom but I believe it looks better than default.
*xterm*background: #404552
*xterm*foreground: #E4E4E4
*xterm*cursorColor: #d0d0d0
! Ambiance Colour Theme
*xterm*color0: #2E3436
*xterm*color1: #CC0000
*xterm*color2: #4E9A06
*xterm*color3: #C4A000
2E0PGS /
Last active Nov 12, 2019
Fixing khugepaged CPU usage VMware Workstation

If you run VMware Workstation 11 or above you may encounter high CPU usage from process khugepaged on Ubuntu 15.04+

The fix is to disable transparent hugepages. It seems Ubuntu has it enabled by default.

You can check the current status on your system by running:

cat /sys/kernel/mm/transparent_hugepage/enabled

cat /sys/kernel/mm/transparent_hugepage/defrag

2E0PGS /
Last active Oct 29, 2020
How to get ePSXe x64 binary to work on Linux

If you get this error when executing the binary via terminal:

./epsxe_x64: error while loading shared libraries: cannot open shared object file: No such file or directory


  • sudo apt-get install libsdl-ttf2.0-0

Tested and works on Ubuntu 16.04.2 LTS.

Other deps were already met if not you may need to grab them too:

You can’t perform that action at this time.