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
Created March 27, 2020 12:27
Recording demo

Simulator Walkthrough

AWS

$ aws --version

Git clone

@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 / boxstarter.ps1
Last active July 10, 2021 09:36
Boxstarter to setup new Windows box
# TODO:
# Inspiration: https://gist.github.com/zloeber/9c2d659a2a8f063af26c9ba0285c7e78
# Install
# - vs code insiders
# Description: Boxstarter Script
# Author: Lewis Denham-Parry <lewis@denhamparry.co.uk>
@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 / 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
Created July 8, 2019 22:04
ssh returns “Bad owner or permissions on ~/.ssh/config”
$ chmod 600 ~/.ssh/config
$ chown $USER ~/.ssh/config
@denhamparry
denhamparry / README.md
Created July 7, 2019 10:39
Ubuntu disk management

Disk Management

$ df
$ du
$ ncdu
@denhamparry
denhamparry / README.md
Created July 3, 2019 13:07
The 7 network layers

Network layers

The seven Open Systems Interconnection (OSI) layers are:

Layer 7: The application layer

This is the layer at which communication partners are identified -- Is there someone to talk to? -- network capacity is assessed -- Will the network let me talk to them right now? -- and where the data or application is presented in a visual form the user can understand. This layer is not the application itself, it is the set of services an application should be able to make use of directly, although some applications may perform application-layer functions.

Layer 6: The presentation layer