diff --git a/tldr/jupyter b/tldr/jupyter index 22420476..64dc7457 100644 --- a/tldr/jupyter +++ b/tldr/jupyter @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Web application to create and share documents that contain code, visualizations, and notes. > Primarily used for data analysis, scientific computing, and machine learning. -> More information: . +> More information: . - Start a Jupyter notebook server in the current directory: @@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git - Open a specific Jupyter notebook: -`jupyter notebook {{example.ipynb}}` +`jupyter notebook {{path/to/file}}.ipynb` - Export a specific Jupyter notebook into another format: -`jupyter nbconvert --to {{html|markdown|pdf|script}} {{example.ipynb}}` +`jupyter nbconvert --to {{html|markdown|pdf|script|...}} {{path/to/file}}.ipynb` - Start a server on a specific port: diff --git a/tldr/jupyter-lab b/tldr/jupyter-lab index 220c0998..a2981245 100644 --- a/tldr/jupyter-lab +++ b/tldr/jupyter-lab @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # jupyter lab > Interactive development environment for Jupyter notebooks. -> More information: . +> More information: . - Start JupyterLab: @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Open a specific notebook: -`jupyter lab {{path/to/notebook.ipynb}}` +`jupyter lab {{path/to/notebook}}.ipynb` - Start JupyterLab in a specific directory: diff --git a/tldr/jupytext b/tldr/jupytext index f87afc8c..212d2277 100644 --- a/tldr/jupytext +++ b/tldr/jupytext @@ -6,28 +6,28 @@ source: https://github.com/tldr-pages/tldr.git # jupytext > Convert Jupyter notebooks to plain text documents, and back again. -> More information: . +> More information: . - Turn a notebook into a paired `.ipynb`/`.py` notebook: -`jupytext --set-formats ipynb,py {{notebook.ipynb}}` +`jupytext --set-formats ipynb,py {{path/to/notebook}}.ipynb` - Convert a notebook to a `.py` file: -`jupytext --to py {{notebook.ipynb}}` +`jupytext --to py {{path/to/notebook}}.ipynb` - Convert a `.py` file to a notebook with no outputs: -`jupytext --to notebook {{notebook.py}}` +`jupytext --to notebook {{path/to/notebook}}.py` - Convert a `.md` file to a notebook and run it: -`jupytext --to notebook --execute {{notebook.md}}` +`jupytext --to notebook --execute {{path/to/notebook}}.md` - Update the input cells in a notebook and preserve outputs and metadata: -`jupytext --update --to notebook {{notebook.py}}` +`jupytext --update --to notebook {{path/to/notebook.py}}` - Update all paired representations of a notebook: -`jupytext {{[-s|--sync]}} {{notebook.ipynb}}` +`jupytext {{[-s|--sync]}} {{path/to/notebook}}.ipynb` diff --git a/tldr/kubectl b/tldr/kubectl index afb4cd21..0d873e91 100644 --- a/tldr/kubectl +++ b/tldr/kubectl @@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git - List information about a resource with more details: -`kubectl get {{pod|service|deployment|ingress|...}} {{[-o|--output]}} wide` +`kubectl get {{pods|service|deployment|ingress|...}} {{[-o|--output]}} wide` - Update specified pod with the label `unhealthy` and the value `true`: @@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Display resource (CPU/Memory/Storage) usage of nodes or pods: -`kubectl top {{pods|node}}` +`kubectl top {{pods|nodes}}` - Print the address of the master and cluster services: diff --git a/tldr/lambo b/tldr/lambo index 2ed76662..aa0dc39e 100644 --- a/tldr/lambo +++ b/tldr/lambo @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # lambo > A super-powered `laravel new` for Laravel and Valet. -> See also: `lambo new`. +> Some subcommands such as `new` have their own usage documentation. > More information: . - Create a new Laravel application: diff --git a/tldr/ng-build b/tldr/ng-build new file mode 100644 index 00000000..590fcddd --- /dev/null +++ b/tldr/ng-build @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ng build + +> Compile an Angular application or library into an output directory named `dist/`. +> More information: . + +- Build an Angular application or library: + +`ng {{[b|build]}}` + +- Specify the output path relative to the workspace root: + +`ng {{[b|build]}} --output-path {{path/to/directory}}` + +- Enable Ahead-of-Time (AOT) compilation: + +`ng {{[b|build]}} --aot` + +- Show build progress in the console: + +`ng {{[b|build]}} --progress` + +- Display additional verbose output during the build: + +`ng {{[b|build]}} --verbose` + +- Automatically clear the terminal screen during rebuilds: + +`ng {{[b|build]}} --clear-screen` + +- Rebuild automatically when source files change: + +`ng {{[b|build]}} --watch` diff --git a/tldr/ng-cache b/tldr/ng-cache new file mode 100644 index 00000000..d5944c1c --- /dev/null +++ b/tldr/ng-cache @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ng cache + +> Configure the persistent disk cache and retrieve cache statistics. +> More information: . + +- Delete the persistent disk cache: + +`ng cache clean` + +- Disable the persistent disk cache for all projects in the workspace: + +`ng cache {{[off|disable]}}` + +- Enable the persistent disk cache for all projects in the workspace: + +`ng cache {{[on|enable]}}` + +- Print persistent disk cache configuration and statistics: + +`ng cache info` diff --git a/tldr/nix-search b/tldr/nix-search index a1fbac71..658935a3 100644 --- a/tldr/nix-search +++ b/tldr/nix-search @@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git # nix search > Search for packages in a Nix flake. -> See also: `nix flake`. > More information: . - Search `nixpkgs` for a package based on its name or description: diff --git a/tldr/popd b/tldr/popd index 7591ceb6..960d1716 100644 --- a/tldr/popd +++ b/tldr/popd @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # popd -> Remove a directory placed on the directory stack via the pushd shell built-in. +> Remove a directory placed on the directory stack via the `pushd` shell built-in. > See also: `pushd`, `dirs`. > More information: .