mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 06:54:43 +00:00
Update cheatsheets
This commit is contained in:
@@ -28,14 +28,14 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`crontab -r`
|
`crontab -r`
|
||||||
|
|
||||||
- Sample job which runs at 10:00 every day (* means any value):
|
- Sample cron job which runs at 10:00 every day (* means any value):
|
||||||
|
|
||||||
`0 10 * * * {{command_to_execute}}`
|
`0 10 * * * {{command_to_execute}}`
|
||||||
|
|
||||||
- Sample crontab entry, which runs a command every 10 minutes:
|
- Sample cron job which runs a command every 10 minutes:
|
||||||
|
|
||||||
`*/10 * * * * {{command_to_execute}}`
|
`*/10 * * * * {{command_to_execute}}`
|
||||||
|
|
||||||
- Sample crontab entry, which runs a certain script at 02:30 every Friday:
|
- Sample cron job which runs a certain script at 02:30 every Friday:
|
||||||
|
|
||||||
`30 2 * * Fri /{{path/to/script.sh}}`
|
`30 2 * * Fri /{{path/to/script.sh}}`
|
||||||
|
|||||||
14
tldr/kaggle
14
tldr/kaggle
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Download a specific file from a competition dataset:
|
- Download a specific file from a competition dataset:
|
||||||
|
|
||||||
`kaggle competitions download {{competition}} {{[-f|--file]}} {{path/to/file}}`
|
`kaggle {{[c|competitions]}} download {{competition}} {{[-f|--file]}} {{path/to/file}}`
|
||||||
|
|
||||||
- List competitions matching a search term:
|
- List competitions matching a search term:
|
||||||
|
|
||||||
`kaggle competitions list {{[-s|--search]}} {{search_term}}`
|
`kaggle {{[c|competitions]}} list {{[-s|--search]}} {{search_term}}`
|
||||||
|
|
||||||
- List files available for a specific competition:
|
- List files available for a specific competition:
|
||||||
|
|
||||||
`kaggle competitions files {{competition}}`
|
`kaggle {{[c|competitions]}} files {{competition}}`
|
||||||
|
|
||||||
- Submit a file to a competition with a message:
|
- Submit a file to a competition with a message:
|
||||||
|
|
||||||
`kaggle competitions submit {{competition}} {{[-f|--file]}} {{path/to/submission.csv}} {{[-m|--message]}} "{{message}}"`
|
`kaggle {{[c|competitions]}} submit {{competition}} {{[-f|--file]}} {{path/to/submission.csv}} {{[-m|--message]}} "{{message}}"`
|
||||||
|
|
||||||
- List datasets matching a search term:
|
- List datasets matching a search term:
|
||||||
|
|
||||||
`kaggle datasets list {{[-s|--search]}} {{search_term}}`
|
`kaggle {{[d|datasets]}} list {{[-s|--search]}} {{search_term}}`
|
||||||
|
|
||||||
- Download all files from a dataset:
|
- Download all files from a dataset:
|
||||||
|
|
||||||
`kaggle datasets download {{owner}}/{{dataset_name}}`
|
`kaggle {{[d|datasets]}} download {{owner}}/{{dataset_name}}`
|
||||||
|
|
||||||
- List kernels (notebooks) matching a search term:
|
- List kernels (notebooks) matching a search term:
|
||||||
|
|
||||||
`kaggle kernels list {{[-s|--search]}} {{search_term}}`
|
`kaggle {{[k|kernels]}} list {{[-s|--search]}} {{search_term}}`
|
||||||
|
|||||||
33
tldr/kaggle-models
Normal file
33
tldr/kaggle-models
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# kaggle models
|
||||||
|
|
||||||
|
> Manage Kaggle models.
|
||||||
|
> More information: <https://github.com/Kaggle/kaggle-api/blob/main/docs/README.md#models>.
|
||||||
|
|
||||||
|
- Get a model:
|
||||||
|
|
||||||
|
`kaggle {{[m|models]}} get "{{model_name}}"`
|
||||||
|
|
||||||
|
- List all models:
|
||||||
|
|
||||||
|
`kaggle {{[m|models]}} list`
|
||||||
|
|
||||||
|
- Initialize metadata file for model creation:
|
||||||
|
|
||||||
|
`kaggle {{[m|models]}} init`
|
||||||
|
|
||||||
|
- Create a new model:
|
||||||
|
|
||||||
|
`kaggle {{[m|models]}} create`
|
||||||
|
|
||||||
|
- Delete a model:
|
||||||
|
|
||||||
|
`kaggle {{[m|models]}} delete "{{model_name}}"`
|
||||||
|
|
||||||
|
- Update a model:
|
||||||
|
|
||||||
|
`kaggle {{[m|models]}} update`
|
||||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Build a package from a flake in the current directory, showing the build logs in the process:
|
- Build a package from a flake in the current directory, showing the build logs in the process:
|
||||||
|
|
||||||
`nix build -L {{.#pkg}}`
|
`nix build {{[-L|--print-build-logs]}} {{.#pkg}}`
|
||||||
|
|
||||||
- Build the default package from a flake in some directory:
|
- Build the default package from a flake in some directory:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user