Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
GSD

Lewis Denham-Parry denhamparry

🎯
GSD
View GitHub Profile
@denhamparry
denhamparry / README.md
Last active Aug 8, 2019
kubectl cheatsheet
View README.md

Kubectl Cheatsheet

Contexts

  • Get current context
$ kubectl config current-context
@denhamparry
denhamparry / README.md
Last active Aug 8, 2019
az cheatsheet
View README.md

az cheatsheet

Account

az account

  • Account list
    • az account list
  • Account set
    • az account set --subscription _subscription_
@denhamparry
denhamparry / README.md
Last active Aug 8, 2019
gcloud cheatsheet
View README.md

gcloud cheatsheeet

General

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

Kubernetes

  • Kubernetes versions that are available:
@denhamparry
denhamparry / RESETNETWORKWINDOWS10.md
Created Jul 22, 2019
Reset the TCP/IP stack on Windows 10
View RESETNETWORKWINDOWS10.md

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 Jul 8, 2019
ssh returns “Bad owner or permissions on ~/.ssh/config”
View README.md
$ chmod 600 ~/.ssh/config
$ chown $USER ~/.ssh/config
@denhamparry
denhamparry / README.md
Created Jul 7, 2019
Ubuntu disk management
View README.md

Disk Management

$ df
$ du
$ ncdu
@denhamparry
denhamparry / README.md
Created Jul 3, 2019
The 7 network layers
View README.md

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

@denhamparry
denhamparry / README.md
Created Jul 2, 2019
Change welcome message in Ubuntu
View README.md

Change welcome message in Ubuntu

$ sudo apt-get install figlet lolcat strace
$ sudo mv /etc/update-motd.d/00-header /etc/update-motd.d/00-header-old
$ sudo chmod -x /etc/update-motd.d/*
$ sudo touch /etc/update-motd.d/00-header
$ sudo chmod +x /etc/update-motd.d/00-header
$ sudo vi /etc/update-motd.d/00-header
@denhamparry
denhamparry / README.md
Last active Jun 29, 2019
Copy DVD in Ubuntu
View README.md
$ cd /dev/
$ ls -la | less
$ cd /media/
# dvd sr0
$ mkdir dvd
$ sudo mount /dev/sr0 /media/dvd
$ cd /media/dvd
$ vobcopy -o /media/plex/import
@denhamparry
denhamparry / README.md
Last active Feb 16, 2021
Hauppauge Digital TV Tuner for Xbox One - Ubuntu setup
View README.md

Hauppauge Digital TV Tuner for Xbox One - Ubuntu setup

Install

Open Terminal in Ubuntu The easiest way to open terminal is to right click on desktop and select Open Terminal. You can also click Ctrl+Alt+T on your keyboard.

In Terminal, type the following or copy and paste the following lines, one by one, then click enter.

$sudo add-apt-repository ppa:b-rad/kernel+mediatree+hauppauge