mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-01 11:38:00 +01:00
Merge pull request #703 from oxguy3/download-tools
Added download tools
This commit is contained in:
commit
787919b264
3 changed files with 78 additions and 0 deletions
28
pages/common/lwp-request.md
Normal file
28
pages/common/lwp-request.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# lwp-request
|
||||
|
||||
> Simple command-line HTTP client.
|
||||
> Built with libwww-perl.
|
||||
|
||||
- Make a simple GET request:
|
||||
|
||||
`lwp-request -m GET {{http://example.com/some/path}}`
|
||||
|
||||
- Upload a file with a POST request:
|
||||
|
||||
`cat {{/path/to/file}} | lwp-request -m POST {{http://example.com/some/path}}`
|
||||
|
||||
- Make a request with a custom user agent:
|
||||
|
||||
`lwp-request -H 'User-Agent: {{user_agent}} -m {{METHOD}} {{http://example.com/some/path}}`
|
||||
|
||||
- Make a request with HTTP authentication:
|
||||
|
||||
`lwp-request -C {{username}}:{{password}} -m {{METHOD}} {{http://example.com/some/path}}`
|
||||
|
||||
- Make a request and print request headers:
|
||||
|
||||
`lwp-request -U -m {{METHOD}} {{http://example.com/some/path}}`
|
||||
|
||||
- Make a request and print response headers and status chain:
|
||||
|
||||
`lwp-request -E -m {{METHOD}} {{http://example.com/some/path}}`
|
27
pages/common/skicka.md
Normal file
27
pages/common/skicka.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# skicka
|
||||
|
||||
> Manage your Google Drive.
|
||||
|
||||
- Upload a file/folder to Google Drive:
|
||||
|
||||
`skicka upload {{path/to/local}} {{path/to/remote}}`
|
||||
|
||||
- Download a file/folder from Google Drive:
|
||||
|
||||
`skicka download {{path/to/remote}} {{path/to/local}}`
|
||||
|
||||
- List files:
|
||||
|
||||
`skicka ls {{path/to/folder}}`
|
||||
|
||||
- Show amount of space used by children folders:
|
||||
|
||||
`skicka du {{path/to/parent/folder}}`
|
||||
|
||||
- Create a folder:
|
||||
|
||||
`skicka mkdir {{path/to/folder}}`
|
||||
|
||||
- Delete a file:
|
||||
|
||||
`skicka rm {{path/to/file}}`
|
23
pages/common/youtube-dl.md
Normal file
23
pages/common/youtube-dl.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# youtube-dl
|
||||
|
||||
> Download videos from YouTube and other websites.
|
||||
|
||||
- Download a video or playlist:
|
||||
|
||||
`youtube-dl {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}`
|
||||
|
||||
- Download the audio from a video and convert it to an MP3:
|
||||
|
||||
`youtube-dl -x --audio-format {{mp3}} {{url}}`
|
||||
|
||||
- Download video(s) as MP4 files with custom filenames:
|
||||
|
||||
`youtube-dl --format {{mp4}} --output {{"%(title) by %(uploader) on %(upload_date) in %(playlist).%(ext)"}} {{url}}`
|
||||
|
||||
- Download a video and save its description, metadata, annotations, subtitles, and thumbnail:
|
||||
|
||||
`youtube-dl --write-description --write-info-json --write-annotations --write-sub --write-thumbnail {{url}}`
|
||||
|
||||
- From a playlist, download all "Let's Play" videos that aren't marked "NSFW" or age-restricted for 7 year-olds:
|
||||
|
||||
`youtube-dl --match-title {{"let's play"}} --age-limit {{7}} --reject-title {{"nsfw"}} {{playlist_url}}`
|
Loading…
Reference in a new issue