diff options
-rw-r--r-- | cups.md | 17 | ||||
-rw-r--r-- | gpg.md | 9 | ||||
-rw-r--r-- | ranger.md | 16 | ||||
-rw-r--r-- | ssh.md | 9 | ||||
-rw-r--r-- | wget.md | 14 | ||||
-rw-r--r-- | youtube-dl.md | 14 |
6 files changed, 79 insertions, 0 deletions
@@ -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<pages> + +## Resetting if `<printer> is not ready` + + cupsenable <printer> @@ -0,0 +1,9 @@ +# GPG Crypto + +## Encrypt file with passphrase + + gpg --symmetric <file> + +### Decrypt + + gpg --output <out-file> --decrypt <in-file> @@ -5,3 +5,19 @@ :bulkrename Opens the selected filenames in vim for editing. + + +## Bookmarks + +Like in vim + +* `m<X>` - create bookmark X +* `` `<X> `` - jump to bookmark X + +## Tabs + +* `gn` - create new +* `gT`, `gt` - switch +* `gc` - close +* `uq` - restore tab +* `M-<n>` - go to nth tab (create new if not exists) @@ -0,0 +1,9 @@ +# SSH + +## Key generation + + ssh-keygen -t rsa -C "email@addres.com" -b 4096 + +Change password for key: + + ssh-keygen -p <keyname> @@ -0,0 +1,14 @@ +# Downloading with wget + +## --page-requisites + +Gets all files necessary to display given page (images, sounds, CSS, ...) + + wget -p <url> + +## Recursive + +Defaults to 5 levels deep. + + wget -r <url> + wget -r -l <depth> <url> 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 <url> + +## Lower quality + + youtube-dl -f "[filesize<{SIZE}M]" <url> + +## 720p + + youtube-dl -f "[height=720]" <url> + youtube-dl -f "[height=720]+bestaudio" <url> |