Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Stevenson 2E0PGS

View GitHub Profile
@2E0PGS
2E0PGS / spoofing-controller-context.md
Last active Sep 27, 2020
An example of how to spoof a controllers context in .NET WebAPI for views to resolve.
@2E0PGS
2E0PGS / xbox-one-controller-bluetooth-ubuntu-fix.md
Last active Jun 27, 2021
Fix to pair Xbox One S Bluetooth controller on Ubuntu
View xbox-one-controller-bluetooth-ubuntu-fix.md

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
2E0PGS / exsi-minimum-ram-workaround.md
Last active Oct 1, 2020
Workaround for EXSI minimum RAM requirements.
@2E0PGS
2E0PGS / how-to-get-scratch-2.0-air-offline.md
Created Feb 10, 2018
How to get scratch 2 offline in adobe air on Ubuntu Linux
View how-to-get-scratch-2.0-air-offline.md

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

Donload the adobe air installer:

wget http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh

Make the installer executable:

chmod +x adobe-air.sh

@2E0PGS
2E0PGS / Xresources.md
Last active Feb 2, 2021
Ambiance / Ambience Colour Theme for XTerm.
View Xresources.md

Moved to my blog: here

@2E0PGS
2E0PGS / vmware-workstation-khugepaged-fix.md
Last active Jun 9, 2021
Fixing khugepaged CPU usage VMware Workstation
View vmware-workstation-khugepaged-fix.md

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
2E0PGS / epsxe-x64-linux-fix.md
Last active Mar 17, 2021
How to get ePSXe x64 binary to work on Linux
View epsxe-x64-linux-fix.md

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

./epsxe_x64: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

Fix:

  • 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: