npm i -g @nestjs/cli
nest new tasks-api
npm run start:devnest g mo tasks| #!/bin/sh | |
| # Install brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # Install XCode 7.3 from the App Store (tested) | |
| # Install XCode command line tools | |
| xcode-select --install | |
| # Install CUDA toolkit 8.0 release candidate | |
| # Register and download from https://developer.nvidia.com/cuda-release-candidate-download | |
| # or this path from https://developer.nvidia.com/compute/cuda/8.0/rc/local_installers/cuda_8.0.29_mac-dmg | |
| # Select both the driver and the toolkit, no documentation necessary |
| git log --graph --oneline --full-history --all | |
| git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s" | |
| git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" |
| // I'm tired of extensions that automatically: | |
| // - show welcome pages / walkthroughs | |
| // - show release notes | |
| // - send telemetry | |
| // - recommend things | |
| // | |
| // This disables all of that stuff. | |
| // If you have more config, leave a comment so I can add it!! | |
| { |
| # See list of docker virtual machines on the local box | |
| $ docker-machine ls | |
| NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS | |
| default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1 | |
| # Note the host URL 192.168.99.100 - it will be used later! | |
| # Build an image from current folder under given image name | |
| $ docker build -t gleb/demo-app . |
| [flake8] | |
| per-file-ignores = | |
| # line too long | |
| *.py: E501, | |
| ################### PROGRAM ################################ | |
| # Specify the number of subprocesses that Flake8 will use to run checks in parallel. | |
| jobs = auto |
| [MASTER] | |
| # A comma-separated list of package or module names from where C extensions may | |
| # be loaded. Extensions are loading into the active Python interpreter and may | |
| # run arbitrary code. | |
| extension-pkg-allow-list= | |
| # A comma-separated list of package or module names from where C extensions may | |
| # be loaded. Extensions are loading into the active Python interpreter and may | |
| # run arbitrary code. (This is an alternative name to extension-pkg-allow-list |
| { | |
| "python.terminal.activateEnvironment": true, | |
| "python.defaultInterpreterPath": "${env:VIRTUAL_ENV}", | |
| "flake8.args": [ | |
| "--max-line-length=120", | |
| "--max-complexity=10", | |
| "--ignore=F401,F405,F811,S117", | |
| "--max-line-length=120", | |
| "--verbose" |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Testing ....", | |
| "type": "debugpy", | |
| "request": "launch", | |
| "program": "main.py", | |
| "cwd": "${workspaceFolder}", |
| { | |
| "recommendations": [ | |
| "ms-python.pylint", | |
| "ms-python.black-formatter", | |
| "ms-python.vscode-pylance" | |
| ] | |
| } |