m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Chrzanowski <martin@celo.org>2019-01-12 16:55:37 -0500
committerMartin Chrzanowski <martin@celo.org>2019-01-12 16:55:37 -0500
commit8feeb19278b475c1743d05a890b769d2e16b0336 (patch)
tree7e905b8421020566264c66b10de1d94324c63b5c
parent014e4bc2b61208a677ef0b50a220f1403b164bdc (diff)
parentf99bd96f3fb0b92f2e73498dd82571143587f393 (diff)
Merge branch 'master' of https://gitlab.com/m-chrzan/cheatsheets
-rw-r--r--cups.md17
-rw-r--r--gpg.md9
-rw-r--r--ranger.md16
-rw-r--r--ssh.md9
-rw-r--r--wget.md14
-rw-r--r--youtube-dl.md14
6 files changed, 79 insertions, 0 deletions
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<pages>
+
+## Resetting if `<printer> is not ready`
+
+ cupsenable <printer>
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 <file>
+
+### Decrypt
+
+ gpg --output <out-file> --decrypt <in-file>
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<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)
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 <keyname>
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 <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>