m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--certbot.md6
-rw-r--r--ffmpeg.md8
-rw-r--r--ledger.md6
-rw-r--r--pacman.md12
4 files changed, 31 insertions, 1 deletions
diff --git a/certbot.md b/certbot.md
new file mode 100644
index 0000000..5d8de41
--- /dev/null
+++ b/certbot.md
@@ -0,0 +1,6 @@
+# Free SSL certificates with Let's Encrypt
+
+## Multiple domains on one certificate
+
+ # Can be used alongside with e.g. `--nginx`
+ certbot -d domain1.tld,domain2.tld,...
diff --git a/ffmpeg.md b/ffmpeg.md
index 033c5e4..764c89e 100644
--- a/ffmpeg.md
+++ b/ffmpeg.md
@@ -24,6 +24,14 @@ Works for audio, too.
* `-b:a 192k`: specify audio bitrate to 192 kbps
* `-b:v 2M`: specify video bitrate to 2 mbps
+### Encoding
+
+H.265 is one of the top recommended formats, for size:quality ratio.
+
+ ffmpeg -i in.mp4 -vcodec libx265 -crf <value> out.mp4
+
+Reasonable `crf` values could be 24 to 30.
+
## Audio/video delay
ffmpeg -i "$input" -itsoffset <offset in seconds> -i "$input" -map 1:v -map 0:a -c:a copy -c:v libx264 "$output"
diff --git a/ledger.md b/ledger.md
index 9287d64..3101567 100644
--- a/ledger.md
+++ b/ledger.md
@@ -2,4 +2,8 @@
## Dates
-* `--beging/--end` (`-b/-e`): date bounds
+* `--begin/--end` (`-b/-e`): date bounds
+
+## List transactions
+
+ ledger print <account>
diff --git a/pacman.md b/pacman.md
index 133adfd..98a11d8 100644
--- a/pacman.md
+++ b/pacman.md
@@ -41,6 +41,18 @@ there and remove the .pacnew suffix)
By itself, outputs all installed packages.
+### Info
+
+Includes provided binaries/libraries, dependencies, installed size, etc.
+
+ pacman -Qi <package>
+
+
+Double info, includes more information, including packages that require (depend
+on) this one:
+
+ pacman -Sii <package>
+
### Browsing installed packages with `fzf`
pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'