From 962ff11e01f80524989aada1f0404f290f9032d3 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 23 Nov 2018 21:29:50 -0500 Subject: Add CUPS --- cups.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cups.md diff --git a/cups.md b/cups.md new file mode 100644 index 0000000..bae0953 --- /dev/null +++ b/cups.md @@ -0,0 +1,17 @@ +# Printing with CUPS + +## Two sided + + -o sides=two-sided-long-edge + +## Two pages per page + + -o number-up=2 + +## Page list + + -P + +## Resetting if ` is not ready` + + cupsenable -- cgit v1.2.3 From d9127dc03a9680389c3fc098d2bc1928fe97bc59 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 23 Nov 2018 21:30:21 -0500 Subject: Add GPG --- gpg.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gpg.md diff --git a/gpg.md b/gpg.md new file mode 100644 index 0000000..2956dab --- /dev/null +++ b/gpg.md @@ -0,0 +1,9 @@ +# GPG Crypto + +## Encrypt file with passphrase + + gpg --symmetric + +### Decrypt + + gpg --output --decrypt -- cgit v1.2.3 From 474c139cf2347d93d8ae5664592c295f2169ba47 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 23 Nov 2018 21:30:46 -0500 Subject: Add SSH --- ssh.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ssh.md diff --git a/ssh.md b/ssh.md new file mode 100644 index 0000000..f1d762b --- /dev/null +++ b/ssh.md @@ -0,0 +1,9 @@ +# SSH + +## Key generation + + ssh-keygen -t rsa -C "email@addres.com" -b 4096 + +Change password for key: + + ssh-keygen -p -- cgit v1.2.3 From bce520c059476dd5af2bbb1edeae8d746dc8b6a2 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 23 Nov 2018 21:31:07 -0500 Subject: Add wget --- wget.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 wget.md diff --git a/wget.md b/wget.md new file mode 100644 index 0000000..4221bbc --- /dev/null +++ b/wget.md @@ -0,0 +1,14 @@ +# Downloading with wget + +## --page-requisites + +Gets all files necessary to display given page (images, sounds, CSS, ...) + + wget -p + +## Recursive + +Defaults to 5 levels deep. + + wget -r + wget -r -l -- cgit v1.2.3 From 26383d49667caffb8a930f4cf67a10b4cfa81a39 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 23 Nov 2018 21:31:52 -0500 Subject: Add youtube-dl --- youtube-dl.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 youtube-dl.md diff --git a/youtube-dl.md b/youtube-dl.md new file mode 100644 index 0000000..0e2dfb1 --- /dev/null +++ b/youtube-dl.md @@ -0,0 +1,14 @@ +# youtube-dl + +## Only audio + + youtube-dl -x + +## Lower quality + + youtube-dl -f "[filesize<{SIZE}M]" + +## 720p + + youtube-dl -f "[height=720]" + youtube-dl -f "[height=720]+bestaudio" -- cgit v1.2.3 From f99bd96f3fb0b92f2e73498dd82571143587f393 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 23 Nov 2018 21:40:30 -0500 Subject: Add ranger bookmarks and tabs --- ranger.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ranger.md b/ranger.md index 139aa8b..8754fd4 100644 --- a/ranger.md +++ b/ranger.md @@ -5,3 +5,19 @@ :bulkrename Opens the selected filenames in vim for editing. + + +## Bookmarks + +Like in vim + +* `m` - create bookmark X +* `` ` `` - jump to bookmark X + +## Tabs + +* `gn` - create new +* `gT`, `gt` - switch +* `gc` - close +* `uq` - restore tab +* `M-` - go to nth tab (create new if not exists) -- cgit v1.2.3