From c9d3e7d257a36f43317edd485bfc1d5e605f2dd6 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 18:09:59 -0500 Subject: [PATCH 1/7] added skicka --- pages/common/skicka.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/skicka.md diff --git a/pages/common/skicka.md b/pages/common/skicka.md new file mode 100644 index 0000000000..7958ed0c50 --- /dev/null +++ b/pages/common/skicka.md @@ -0,0 +1,27 @@ +# skicka + +> Command-line utility for 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}}` From fdaf29d920d68925e96780c2af0ada32493c9ff6 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 18:10:23 -0500 Subject: [PATCH 2/7] added lwp-request --- pages/common/lwp-request.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/lwp-request.md diff --git a/pages/common/lwp-request.md b/pages/common/lwp-request.md new file mode 100644 index 0000000000..468f8ae5ec --- /dev/null +++ b/pages/common/lwp-request.md @@ -0,0 +1,27 @@ +# lwp-request + +> Simple Perl-based command-line HTTP client. + +- 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}}` From 8cf1d291117cf2f46a84e323d12b9de6e21a807b Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 18:15:46 -0500 Subject: [PATCH 3/7] added youtube-dl Not so sure about the last example. I wanted to give an example of how youtube-dl allows you to very precisely filter a playlist, so I made up a sort of strange task. It might be better to just remove it though. --- pages/common/youtube-dl.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/youtube-dl.md diff --git a/pages/common/youtube-dl.md b/pages/common/youtube-dl.md new file mode 100644 index 0000000000..d9e04b4dd0 --- /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 as 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}}` From 78a2b886ea88392286cd6eabd0f45b97a6e68351 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 18:49:07 -0500 Subject: [PATCH 4/7] skicka: corrected example paths for consistency --- pages/common/skicka.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/skicka.md b/pages/common/skicka.md index 7958ed0c50..838a614e12 100644 --- a/pages/common/skicka.md +++ b/pages/common/skicka.md @@ -4,24 +4,24 @@ - Upload a file/folder to Google Drive: -`skicka upload {{/path/to/local}} {{/path/to/remote}}` +`skicka upload {{path/to/local}} {{path/to/remote}}` - Download a file/folder from Google Drive: -`skicka download {{/path/to/remote}} {{/path/to/local}}` +`skicka download {{path/to/remote}} {{path/to/local}}` - List files: -`skicka ls {{/path/to/folder}}` +`skicka ls {{path/to/folder}}` - Show amount of space used by children folders: -`skicka du {{/path/to/parent_folder}}` +`skicka du {{path/to/parent/folder}}` - Create a folder: -`skicka mkdir {{/path/to/folder}}` +`skicka mkdir {{path/to/folder}}` - Delete a file: -`skicka rm {{/path/to/file}}` +`skicka rm {{path/to/file}}` From 790a4234b9a4f49c43859e4b8093b63bc46972e6 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 18:56:49 -0500 Subject: [PATCH 5/7] youtube-dl: clearer description of mp3 example --- pages/common/youtube-dl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/youtube-dl.md b/pages/common/youtube-dl.md index d9e04b4dd0..3983f56ec9 100644 --- a/pages/common/youtube-dl.md +++ b/pages/common/youtube-dl.md @@ -6,7 +6,7 @@ `youtube-dl {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}` -- Download the audio from a video as an MP3: +- Download the audio from a video and convert it to an MP3: `youtube-dl -x --audio-format {{mp3}} {{url}}` From b2bb14450eb45eb3e85fe6060c509ebbdced4b90 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Fri, 22 Jan 2016 11:29:22 -0500 Subject: [PATCH 6/7] skicka: better description --- pages/common/skicka.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/skicka.md b/pages/common/skicka.md index 838a614e12..e75d8a6db7 100644 --- a/pages/common/skicka.md +++ b/pages/common/skicka.md @@ -1,6 +1,6 @@ # skicka -> Command-line utility for Google Drive. +> Manage your Google Drive. - Upload a file/folder to Google Drive: From 7e582eebf030655a49d5d9749c404c5d081957f7 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Sun, 24 Jan 2016 02:05:29 -0500 Subject: [PATCH 7/7] lwp-request: reference to libwww-perl --- pages/common/lwp-request.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/common/lwp-request.md b/pages/common/lwp-request.md index 468f8ae5ec..5d80b06aea 100644 --- a/pages/common/lwp-request.md +++ b/pages/common/lwp-request.md @@ -1,6 +1,7 @@ # lwp-request -> Simple Perl-based command-line HTTP client. +> Simple command-line HTTP client. +> Built with libwww-perl. - Make a simple GET request: