Skip to content

Instantly share code, notes, and snippets.

View denhamparry's full-sized avatar

Lewis Denham-Parry denhamparry

View GitHub Profile
@denhamparry
denhamparry / README.md
Last active May 6, 2021 18:26
Welsh things for Justin
@denhamparry
denhamparry / components.yaml
Created March 30, 2021 13:56
Metric Server v0.4.2 with kubelet insecure tls for single node cluster
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
k8s-app: metrics-server
name: metrics-server
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@denhamparry
denhamparry / MESSAGE.txt
Created March 23, 2021 13:42
Taskmater - Feedback message
Hi, Taskmaster here.
tl;dr: Please could you give 2 mins of your time to give feedback for last years CTF event https://forms.gle/v4yj3BxJAiHm38xR9
---
Previously, in CTF:
- we sent you some scenarios during Cloud Native Security Day KubeCon NA 2020
- you managed to
@denhamparry
denhamparry / template.sh
Created January 4, 2021 12:39
Bash Template
#!/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 October 12, 2020 09:10
VMware kernel module: a compatible version of gcc was not found

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 September 21, 2020 14:36
Get serial number of Thinkpad on Windows
wmic bios get serialnumber
@denhamparry
denhamparry / README.md
Created August 28, 2020 13:40
Fix for running VMWare Workshop Pro on Linux

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 April 29, 2020 21:43
Home Assistant Raspberry Pi Setup

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 April 22, 2020 08:24
Notes for getting started with Rust

Getting Started with Rush

Install Rust

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