Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
GSD

Lewis Denham-Parry denhamparry

🎯
GSD
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am denhamparry on github.
  • I am denhamparry (https://keybase.io/denhamparry) on keybase.
  • I have a public key ASD7MyPDGb8SU-498VRDIccXFBECQbdSU7aJ8CyyJ7eqlwo

To claim this, I am signing this object:

@denhamparry
denhamparry / CNW_Logo.jpg
Last active Mar 15, 2019
Proposal for CNW LiveStreams / Presentations
View PowershellCopy.ps1
Get-PSDrive
$sourceRoot = "C:\Media\Movies"
$destinationRoot = "D:\plex"
Copy-Item -Path $sourceRoot -Recurse -Destination $destinationRoot -Container
View UbuntuCopy.sh
#!/bin/bash
lsblk
sudo blkid
sudo fdisk -l
sudo mkdir /media/usb
sudo mount /dev/sdb1 /media/usb
@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
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
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 7, 2019
Ubuntu disk management
View README.md

Disk Management

$ df
$ du
$ ncdu
@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