Skip to content

Instantly share code, notes, and snippets.


Lewis Denham-Parry denhamparry

View GitHub Profile

Keybase proof

I hereby claim:

  • I am denhamparry on github.
  • I am denhamparry ( on keybase.
  • I have a public key ASD7MyPDGb8SU-498VRDIccXFBECQbdSU7aJ8CyyJ7eqlwo

To claim this, I am signing this object:

denhamparry / CNW_Logo.jpg
Last active Mar 15, 2019
Proposal for CNW LiveStreams / Presentations
View PowershellCopy.ps1
$sourceRoot = "C:\Media\Movies"
$destinationRoot = "D:\plex"
Copy-Item -Path $sourceRoot -Recurse -Destination $destinationRoot -Container
sudo blkid
sudo fdisk -l
sudo mkdir /media/usb
sudo mount /dev/sdb1 /media/usb
denhamparry /
Last active Jun 29, 2019
Copy DVD in Ubuntu
$ 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 /
Created Jul 2, 2019
Change welcome message in Ubuntu

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 /
Created Jul 3, 2019
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

denhamparry /
Created Jul 7, 2019
Ubuntu disk management

Disk Management

$ df
$ du
$ ncdu
denhamparry /
Created Jul 8, 2019
ssh returns “Bad owner or permissions on ~/.ssh/config”
$ chmod 600 ~/.ssh/config
$ chown $USER ~/.ssh/config