Skip to content

Instantly share code, notes, and snippets.

Peter Stevenson 2E0PGS

Block or report user

Report or block 2E0PGS

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
@2E0PGS
2E0PGS / winpower-ups-software-vmware.md
Last active Dec 27, 2018
Winpower UPS Software VMware
View winpower-ups-software-vmware.md

Winpower UPS Software VMware

This is mostly in reference to their Linux documentation: Installation and configuration for Winpower in the VMware

Winpower when installed using the Linux binaries includes a few extra perl scripts which supports shutting down VMware environments.

It does however also require you have the following perl lib installed on the system VMware::VIRuntime. Which can be aquired by installing VMware vCLI binaries.

The following documentation aids installing vCLI: Installing vCLI

@2E0PGS
2E0PGS / softether-vpn-faq.md
Last active Nov 29, 2018
SoftEther VPN FAQ
View softether-vpn-faq.md

SoftEther VPN FAQ

Cheat sheet for a few quirks I discovered in SoftEther VPN that are not immediately obvious.

Routing and Remote Access

If you enable the "Routing and Remote Access" service in Windows (tested on 10) it causes the SoftEther VPN client running on that machine to drop packets.

VPN concentrator

@2E0PGS
2E0PGS / spoofing-controller-context.md
Created Nov 13, 2018
An example of how to spoof a controllers context in .NET WebAPI for views to resolve.
View spoofing-controller-context.md

Spoofing controller contexts

This is useful if you need to make use of Rotativa in a MVC .NET WebAPI instead of a MVC .NET Website for example.

The fake controller context helper class

namespace MyProject.Models
{
    public class FakeController : Controller
@2E0PGS
2E0PGS / xbox-one-controller-bluetooth-ubuntu-fix.md
Last active Oct 23, 2018
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
Created May 12, 2018
Workaround for EXSI minimum RAM requirements.
View exsi-minimum-ram-workaround.md

EXSI minimum RAM workaround

You have 4 GB RAM installed in a new server and EXSI says you have 3.88 GB so it prevents you from continuing the install. This is a workaround for that.

Based upon this article but I had to make a few changes to get the permissions to take: https://community.spiceworks.com/topic/411970-installing-esxi-5-5-with-4gb-ram-memory_size-error?page=1

  1. Bootup VMware EXSI from live medium.
  2. Wait for the "Welcome to VMWARE EXSI X.X.X installation" screen.
  3. Press Alt+F1 to drop into a console.
  4. Login with user root and blank password (just hit enter when prompted for password).
@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 / atom-style-hidden-characters-vim.md
Last active Feb 10, 2018
Atom style hidden characters for Vim.
View atom-style-hidden-characters-vim.md

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
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
2E0PGS / vmware-workstation-khugepaged-fix.md
Last active Apr 15, 2019
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 Aug 16, 2019
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:

You can’t perform that action at this time.