mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -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: <https://docs.jupyter.org/en/latest/>.
|
||||
> More information: <https://docs.jupyter.org/en/latest/use/jupyter-command.html>.
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# jupyter lab
|
||||
|
||||
> Interactive development environment for Jupyter notebooks.
|
||||
> More information: <https://jupyterlab.readthedocs.io/en/stable/>.
|
||||
> More information: <https://jupyterlab.readthedocs.io/en/stable/getting_started/starting.html>.
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -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: <https://manned.org/jupytext>.
|
||||
> More information: <https://jupytext.readthedocs.io/en/latest/using-cli.html>.
|
||||
|
||||
- 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`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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: <https://github.com/tighten/lambo#usage>.
|
||||
|
||||
- Create a new Laravel application:
|
||||
|
||||
37
tldr/ng-build
Normal file
37
tldr/ng-build
Normal file
@@ -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: <https://angular.dev/cli/build>.
|
||||
|
||||
- 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`
|
||||
25
tldr/ng-cache
Normal file
25
tldr/ng-cache
Normal file
@@ -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: <https://angular.dev/cli/cache>.
|
||||
|
||||
- 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`
|
||||
@@ -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: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-search.html>.
|
||||
|
||||
- Search `nixpkgs` for a package based on its name or description:
|
||||
|
||||
@@ -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: <https://www.gnu.org/software/bash/manual/bash.html#index-popd>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user