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 July 8, 2019 22:04
ssh returns “Bad owner or permissions on ~/.ssh/config”
$ chmod 600 ~/.ssh/config
$ chown $USER ~/.ssh/config
@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:39
gcloud cheatsheet

gcloud cheatsheeet

General

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

Kubernetes

  • Kubernetes versions that are available:
@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:20
kubectl cheatsheet

Kubectl Cheatsheet

Contexts

  • Get current context
$ kubectl config current-context
@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 / .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