Skip to content

snippets of code that I use frequently but have a hard time remembering

Notifications You must be signed in to change notification settings

klodshanz/setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icons

Awesome

Design

Guides

SSH

Check fingerprint of local key for comparison with the registered keys on GitHub:

ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub

Start ssh-agent, add the key and check by listing available keys:

eval $(ssh-agent -s)
ssh-add ~/.ssh/id_github_dxc
ssh-add -l

Create bootable USB with Ubuntu (on Mac)

  • Erase the USB with mac DiskUtil (GUI) and select MS DOS (FAT)
  • download ubuntu ISO image and convert it to DMG with
    hdiutil convert -format UDRW -o ~/Downloads/ubuntu-18.04.1-desktop-amd64 ~/Downloads/ubuntu-18.04.1-desktop-amd64.iso
  • Identify the USB drive with diskutil list
  • Run diskutil unmountDisk /dev/disk2
  • Run sudo dd if=/Users/claus/Downloads/ubuntu-18.04.1-desktop-amd64.dmg of=/dev/rdisk1 bs=1m

About

snippets of code that I use frequently but have a hard time remembering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published