# Windows

  • Alt+Tab switch windows
  • Ctrl+Shift+W close windows

# Unix / Linux

  • Ctrl+A move to start of line
  • Ctrl+E move to end of line
  • Ctrl+U clear command
  • touch fileName.txt create file
  • pwd print working directory
  • mkdir fileName && cd $_ make directory & cd into it
  • sudo passwd root change root password, switch root for username

# Create bootable USB using dd command

List all connected devices using df or dmesg

$ df
$ sudo dmesg

Unmount the usb device

$ sudo umount /dev/sda

Format drive

$sudo mkfs.vfat /dev/sda

Command to create bootable USB image from .iso file

$ sudo dd if=/Downloads/name-of-iso.iso of=/dev/sda bs=1M status=progress

# Visual Studio Code

  • Code . open folder in VSCODE from terminal
  • Ctrl+Shift+E view explorer
  • Ctrl+Shift+G view source control
  • Ctrl+` toggle terminal
  • Ctrl+P open file
  • Ctrl+Tab switch tabs
  • Alt+(number) switch to tabs 1-9
  • Ctrl+F4 close Tab
  • Ctrl+S save file
  • Ctrl+, settings

# Settings.json

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "editor.formatOnPaste": false,
  "beautify.language": {
    "css": ["css", "less", "scss"],
    "html": ["htm", "html"]
  },
  "eslint.validate": ["javascript", "javascriptreact", "vue"],
  "editor.linkedEditing": true
}

# Extensions

  1. Live Server
    • Alt+L Toggle server
  2. ESLint
  3. Javascript (ES6) code snippets
  4. Beautify
  5. Vetur - Vue.js support
  6. Vim
  7. Code Spell Checker
  8. Gitlens
  9. npm Intellisense
  10. Prettier
  11. Vue VSCode Snippets
  12. Bracket Pair Colorizer2

# Thinkpad

  • Fn+Spacebar Keyboard lights
  • Fn+D Toggle screen privacy

# Windows 10

  1. wsl2
  2. Windows Terminal
  3. Node.js
    1. Install nvm
    2. sudo apt-get install curl
    3. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
    4. Restart terminal and verify installation with command -v vnm...should return 'nvm' or 'command not found'
    5. List Node version nvm ls
    6. Install current release of Node.js nvm install node or latest LTS release nvm install node --lts
    7. Verify Node.js version node --version or npm version nvm --version

# References

Last Updated: 2/15/2021, 4:35:09 PM