Skip to content

Instantly share code, notes, and snippets.

View denhamparry's full-sized avatar

Lewis Denham-Parry denhamparry

View GitHub Profile
@denhamparry
denhamparry / RESETNETWORKWINDOWS10.md
Created July 22, 2019 14:40
Reset the TCP/IP stack on Windows 10

Reset the TCP/IP stack on Windows 10

netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
shutdown -r -t 0
@denhamparry
denhamparry / README.md
Last active August 8, 2019 15:20
kubectl cheatsheet

Kubectl Cheatsheet

Contexts

  • Get current context
$ kubectl config current-context
@denhamparry
denhamparry / README.md
Last active August 8, 2019 15:21
az cheatsheet

az cheatsheet

Account

az account

  • Account list
    • az account list
  • Account set
  • az account set --subscription _subscription_
@denhamparry
denhamparry / README.md
Last active August 8, 2019 15:39
gcloud cheatsheet

gcloud cheatsheeet

General

  • Current properties:
    • gcloud info | grep -A 8 "Current Properties"

Kubernetes

  • Kubernetes versions that are available:
@denhamparry
denhamparry / .aliases
Last active March 12, 2020 09:54
Dotfiles (To the tune of Duck Tails)
#!/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 / README.md
Created March 27, 2020 12:27
Recording demo

Simulator Walkthrough

AWS

$ aws --version

Git clone

@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"}
@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 / 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
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/