Skip to content

Instantly share code, notes, and snippets.

@tcapelle
Last active November 8, 2023 16:59
Show Gist options
  • Save tcapelle/91f1be740075fb6baa18598ec33b10c8 to your computer and use it in GitHub Desktop.
Save tcapelle/91f1be740075fb6baa18598ec33b10c8 to your computer and use it in GitHub Desktop.
Useful Command and more

Linux

Setup

When setting up a fresh VM.

sudo apt update
sudo apt-get install vim tmux wget

Commands

  • Kill all running programs. Most of the time I will do:
ps -aux | grep "program"

to search for specific stuff, and then to kill -9 "pid", but if you have multiple instances, you can just use pkill:

pkill -f "program"

Docker

Setup

I need to write this up...

Usage

To use docker with GPU, so you will need the flag --gpus all when running the container. You can alias some of this:

# add to your `~/.bashrc`
alias drun="docker run -ti --rm --gpus all"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment