diff --git a/pages/common/lwp-request.md b/pages/common/lwp-request.md new file mode 100644 index 0000000000..5d80b06aea --- /dev/null +++ b/pages/common/lwp-request.md @@ -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}}` diff --git a/pages/common/skicka.md b/pages/common/skicka.md new file mode 100644 index 0000000000..e75d8a6db7 --- /dev/null +++ b/pages/common/skicka.md @@ -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}}` diff --git a/pages/common/youtube-dl.md b/pages/common/youtube-dl.md new file mode 100644 index 0000000000..3983f56ec9 --- /dev/null +++ b/pages/common/youtube-dl.md @@ -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}}`