Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
GSD

Lewis Denham-Parry denhamparry

🎯
GSD
View GitHub Profile
View template.sh
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@denhamparry
denhamparry / README.md
Created Oct 12, 2020
VMware kernel module: a compatible version of gcc was not found
View README.md

VMware kernel module: a compatible version of gcc was not found

Issue

When installing VMware Workstation, error message appears saying gcc was not found.

Solution

cd /usr/lib/vmware/modules/source
@denhamparry
denhamparry / sampe.bat
Created Sep 21, 2020
Get serial number of Thinkpad on Windows
View sampe.bat
wmic bios get serialnumber
@denhamparry
denhamparry / README.md
Created Aug 28, 2020
Fix for running VMWare Workshop Pro on Linux
View README.md

VMWare Fix

Fixes an issue when trying to run VMWare Workstation Pro on Linux, error returns kernel issues with vmmon and vmnet.

Code

wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-15.5.6.tar.gz
tar -xzf workstation-15.5.6.tar.gz
cd vmware-host-modules-workstation-15.5.6/
@denhamparry
denhamparry / README.md
Created Apr 29, 2020
Home Assistant Raspberry Pi Setup
View README.md

Home Assistant - Raspberry Pi

ssh pi@ipaddress
passwd
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev -y
sudo useradd -rm homeassistant -G dialout,gpio,i2c
cd /srv
@denhamparry
denhamparry / README.md
Last active Apr 22, 2020
Notes for getting started with Rust
View README.md

Getting Started with Rush

Install Rust

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
@denhamparry
denhamparry / last.json
Last active Apr 21, 2020
Test for status light
View last.json
{"created_at":"2020-04-21T14:34:46Z","entry_id":0,"field2":"#C0392B"}
View README.md

Simulator Walkthrough

AWS

$ aws --version

Git clone

@denhamparry
denhamparry / .aliases
Last active Mar 12, 2020
Dotfiles (To the tune of Duck Tails)
View .aliases
#!/bin/bash
# Check for various OS openers. Quit as soon as we find one that works.
for opener in browser-exec xdg-open cmd.exe cygstart "start" open; do
if command -v $opener >/dev/null 2>&1; then
if [[ "$opener" == "cmd.exe" ]]; then
# shellcheck disable=SC2139
alias open="$opener /c start";
else
# shellcheck disable=SC2139
@denhamparry
denhamparry / boxstarter.ps1
Last active Sep 24, 2020
Boxstarter to setup new Windows box
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Lewis Denham-Parry <lewis@denhamparry.co.uk>
# Last Updated: 2020-01-05
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
You can’t perform that action at this time.