Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-06 00:20:13 +00:00
parent fc43dd50ef
commit 10dbf8b0c0
4 changed files with 44 additions and 11 deletions

View File

@@ -28,14 +28,14 @@ source: https://github.com/tldr-pages/tldr.git
`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}}`
- Sample crontab entry, which runs a command every 10 minutes:
- Sample cron job which runs a command every 10 minutes:
`*/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}}`

View File

@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
- 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:
`kaggle competitions list {{[-s|--search]}} {{search_term}}`
`kaggle {{[c|competitions]}} list {{[-s|--search]}} {{search_term}}`
- 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:
`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:
`kaggle datasets list {{[-s|--search]}} {{search_term}}`
`kaggle {{[d|datasets]}} list {{[-s|--search]}} {{search_term}}`
- 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:
`kaggle kernels list {{[-s|--search]}} {{search_term}}`
`kaggle {{[k|kernels]}} list {{[-s|--search]}} {{search_term}}`

33
tldr/kaggle-models Normal file
View 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`

View File

@@ -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:
`nix build -L {{.#pkg}}`
`nix build {{[-L|--print-build-logs]}} {{.#pkg}}`
- Build the default package from a flake in some directory: