Skip to content

Instantly share code, notes, and snippets.

@Dobby89
Last active January 13, 2022 17:47
Show Gist options
  • Save Dobby89/bda6c666179ab506975e58ecd72741b9 to your computer and use it in GitHub Desktop.
Save Dobby89/bda6c666179ab506975e58ecd72741b9 to your computer and use it in GitHub Desktop.
Windows Terminal / Bash commands

Copy the output of the terminal directly into your clipboard (this works with Git Bash at least !)

<command> | clip

List all global NPM packages/modules

npm list -g --depth 0

Run serverless in debug mode

SLS_DEBUG=true serverless offline --stage dev

Copy one directory to another

robocopy <src_path> <dest_path> /E

Delete a folder which has loads of child directories which cannot be deleted using Window's File Explorer. Read more here: https://blog.bertvanlangen.com/articles/path-too-long-use-robocopy/

robocopy <path_to_empty_directory> <path_to_gigantic_directory> /purge

Create a symbolic link (Windows) From: https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ Run cmd as administrator

mklink /D <path from> <path to>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment