Skip to content

Instantly share code, notes, and snippets.

@baobuiquang
Last active August 29, 2024 02:17
Show Gist options
  • Save baobuiquang/18f58e85ce94f1d98933173c1d52d378 to your computer and use it in GitHub Desktop.
Save baobuiquang/18f58e85ce94f1d98933173c1d52d378 to your computer and use it in GitHub Desktop.
CMD Quickcodes
# Python
call py --version
# Virtual Environment
call py -m venv venv
call venv\Scripts\activate
call py -m pip install -U pip
call py run.py
# Install dependencies
call pip freeze > requirements.txt
call pip install -r requirements.txt
# Serve HTTP server
call py -m http.server --directory path/to/directory 9999 --bind 127.0.0.1
# Keep cmd open
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment