about summary refs log tree commit diff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/sw-notes/_index.fr.md7
-rw-r--r--content/sw-notes/_index.md8
-rw-r--r--content/sw-notes/devtool-theme.md13
-rw-r--r--content/sw-notes/ffmpeg-cut-video.md14
-rw-r--r--content/sw-notes/ffmpeg-remove-audio.md9
-rw-r--r--content/sw-notes/insert-unicode.md (renamed from content/til/insert-unicode.md)4
-rw-r--r--content/sw-notes/json-output-format.fr.md (renamed from content/til/json-output-format.fr.md)5
-rw-r--r--content/sw-notes/json-output-format.md (renamed from content/til/json-output-format.md)5
-rw-r--r--content/sw-notes/keepassxc-enable-desktop-integration.md10
-rw-r--r--content/sw-notes/nheko-plain-creds.md18
-rw-r--r--content/sw-notes/regex-unicode.md (renamed from content/til/regex-unicode.md)3
-rw-r--r--content/sw-notes/socks-proxy.md34
-rw-r--r--content/sw-notes/vim-jp.fr.md (renamed from content/til/vim-jp.fr.md)3
-rw-r--r--content/sw-notes/vim-jp.md (renamed from content/til/vim-jp.md)3
-rw-r--r--content/sw-notes/vim-paste-command.md11
-rw-r--r--content/sw-notes/vim-paste-file.md (renamed from content/til/vim-paste-file.md)3
-rw-r--r--content/til/_index.fr.md9
-rw-r--r--content/til/_index.md7
-rw-r--r--content/til/css-exfil.md10
-rw-r--r--content/til/default_light.pngbin172363 -> 0 bytes
-rw-r--r--content/til/devtool-theme.md13
-rw-r--r--content/til/emulate_dark.pngbin177040 -> 0 bytes
22 files changed, 140 insertions, 49 deletions
diff --git a/content/sw-notes/_index.fr.md b/content/sw-notes/_index.fr.md
new file mode 100644
index 0000000..d7b0783
--- /dev/null
+++ b/content/sw-notes/_index.fr.md
@@ -0,0 +1,7 @@
+---
+title: Notes d'usage des logiciels
+---
+
+Lire l'instruction pour utiliser un programme, ce n'est pas toujours simple.
+Parfois les pas sont très simples, mais les rechercher ça prend du temps et se
+souvenir d'eux, c'est trop fatiguant.  Alors, je les note ici.
diff --git a/content/sw-notes/_index.md b/content/sw-notes/_index.md
new file mode 100644
index 0000000..717b351
--- /dev/null
+++ b/content/sw-notes/_index.md
@@ -0,0 +1,8 @@
+---
+title: Software usage notes
+---
+
+Here are short notes on using some programs.  Reading manuals is not always
+intuitive or quick, even though the steps are so simple; so I collect them
+here.  Notes that are longer than a few lines are collected in the main blog
+instead.
diff --git a/content/sw-notes/devtool-theme.md b/content/sw-notes/devtool-theme.md
new file mode 100644
index 0000000..603ec1b
--- /dev/null
+++ b/content/sw-notes/devtool-theme.md
@@ -0,0 +1,13 @@
+---
+categories: [software, guide]
+title: "Emulate system theme with firefox's devtools"
+date: 2021-05-03T11:15:35+07:00
+tag: [firefox, css, theme]
+---
+
+Firefox's devtool provides you with a tool to emulate
+dark/light mode (probably Chrome does, too). It can be useful for front-end
+developers when they want to design a system-based theme switch.
+
+![My default theme, light theme](/images/default_light.png)
+![After choosing dark mode emulation](/images/emulate_dark.png)
diff --git a/content/sw-notes/ffmpeg-cut-video.md b/content/sw-notes/ffmpeg-cut-video.md
new file mode 100644
index 0000000..fb95f08
--- /dev/null
+++ b/content/sw-notes/ffmpeg-cut-video.md
@@ -0,0 +1,14 @@
+---
+title: "How to cut videos with ffmpeg"
+date: 2024-04-24
+translationKey: ffmpeg-cut-video
+categories: [software, guide]
+tags: [ffmpeg]
+---
+
+To cut video with ffmpeg, use the flag `-ss` for the beginning of the cut and
+`-to` for the end of the cut.  For example:
+
+```sh
+ffmpeg -i in.mp4 -ss 00:00:02 -to 00:00:14 out.mp4
+```
diff --git a/content/sw-notes/ffmpeg-remove-audio.md b/content/sw-notes/ffmpeg-remove-audio.md
new file mode 100644
index 0000000..f4c33f9
--- /dev/null
+++ b/content/sw-notes/ffmpeg-remove-audio.md
@@ -0,0 +1,9 @@
+---
+title: "How to remove audio from videos with ffmpeg"
+date: 2024-04-24
+translationKey: ffmpeg-remove-audio
+categories: [software, guide]
+tags: [ffmpeg]
+---
+
+To remove audio from video, pass `-an` flag to the command.
diff --git a/content/til/insert-unicode.md b/content/sw-notes/insert-unicode.md
index 0fd6b28..c897fc3 100644
--- a/content/til/insert-unicode.md
+++ b/content/sw-notes/insert-unicode.md
@@ -1,8 +1,8 @@
 ---
-title: "TIL How to insert unicode in vim"
+title: "How to insert unicode in vim"
 date: 2022-02-20
 lang: en
-categories: [ til ]
+categories: [software, guide]
 tags: [vim, how-to, unicode]
 translationKey: "vim-insert-unicode"
 ---
diff --git a/content/til/json-output-format.fr.md b/content/sw-notes/json-output-format.fr.md
index ae77803..798f0c9 100644
--- a/content/til/json-output-format.fr.md
+++ b/content/sw-notes/json-output-format.fr.md
@@ -1,8 +1,9 @@
 ---
-title: "AJA comment imprinter du JSON avec des couleurs"
+title: "Comment imprinter du JSON avec des couleurs avec jq"
 date: 2021-04-27T17:06:51+07:00
 translationKey: json-output-format
-tags: [bash, cli, json, trick]
+categories: [software, guide]
+tags: [jq, less, bash, cli, json]
 ---
 
 On peut formatter du JSON avec des couleurs avec `jq` et le lire avec `less`:
diff --git a/content/til/json-output-format.md b/content/sw-notes/json-output-format.md
index 5bbc153..e22cfbf 100644
--- a/content/til/json-output-format.md
+++ b/content/sw-notes/json-output-format.md
@@ -1,8 +1,9 @@
 ---
-title: "TIL: Formatting JSON Output"
+title: "Formatting JSON Output with jq"
 date: 2021-04-27T17:06:51+07:00
 translationKey: json-output-format
-tags: [bash, cli, json, trick]
+categories: [software, guide]
+tags: [bash, cli, json, jq, less]
 ---
 
 TIL: Syntax-highlighted JSON output
diff --git a/content/sw-notes/keepassxc-enable-desktop-integration.md b/content/sw-notes/keepassxc-enable-desktop-integration.md
new file mode 100644
index 0000000..01dc532
--- /dev/null
+++ b/content/sw-notes/keepassxc-enable-desktop-integration.md
@@ -0,0 +1,10 @@
+---
+title: "KeepassXC: how to enable desktop integration"
+date: 2024-04-24
+translationKey: keepassxc-desktop-integration
+categories: [software, guide]
+tags: [keepassxc]
+---
+
+Go to Setting > Secret Service Integration > Enable KeepassXC Freedesktop.org
+Secret Service integration.
diff --git a/content/sw-notes/nheko-plain-creds.md b/content/sw-notes/nheko-plain-creds.md
new file mode 100644
index 0000000..da331bd
--- /dev/null
+++ b/content/sw-notes/nheko-plain-creds.md
@@ -0,0 +1,18 @@
+---
+title: "Storing nheko credentials as plain text"
+date: 2024-04-24
+translationKey: nheko-plain-creds
+categories: [software, guide]
+tags: [nheko]
+---
+
+nheko requires a keyring (like GNOME keyring or keypassxc) to store encrypted
+password, which doesn't necessarily work, or probably you just don't want to
+use them, in which case you'd want to disable that.
+
+To do this, edit `.config/nheko/nheko.conf` and add the config:
+
+```ini
+[General]
+run_without_secure_secrets_service=true
+```
diff --git a/content/til/regex-unicode.md b/content/sw-notes/regex-unicode.md
index f2c7b94..97c28b8 100644
--- a/content/til/regex-unicode.md
+++ b/content/sw-notes/regex-unicode.md
@@ -1,7 +1,8 @@
 ---
-title: "TIL How to match Unicode in RegEx"
+title: "How to match Unicode in RegEx"
 date: 2022-02-13T16:32:53+07:00
 translationKey: regex-unicode
+categories: [software, guide]
 tags: [regex, "regular expression", unicode]
 ---
 
diff --git a/content/sw-notes/socks-proxy.md b/content/sw-notes/socks-proxy.md
new file mode 100644
index 0000000..c1accf0
--- /dev/null
+++ b/content/sw-notes/socks-proxy.md
@@ -0,0 +1,34 @@
+---
+title: "SOCKS Proxy via SSH"
+date: 2023-06-05
+lang: en
+categories: [software, guide]
+tags: [tips, guide, "SOCKS proxy"]
+translationKey: "socks-proxy"
+---
+
+[SOCKS (RFC 1928)][socks] is a protocol that can be, as said in the
+RFC itself, used for firewall traversal, or some other types of network
+blocking.
+
+If you have a remote server that you can <abbr>SSH</abbr> to, setting up a
+SOCKS connection is dead simple:
+
+```sh
+ssh -D [port] [host]
+```
+
+where `[host]` is the host name you specified in the <abbr>SSH</abbr> config
+file.
+
+How to get your software to direct its connection through this proxy depends on
+the program.  For example, in Firefox, you have to go to the setting and set it
+in the network settings---use your server's address and the port you used
+earlier.  In Chromium and similar forks, add
+`--proxy-server="socks5://host:port"` to the parameter in the command line.
+Read more on the instruction for [Firefox][guide-fox] and
+[Chromium][guide-chrom] on their respective websites.
+
+[socks]: https://www.rfc-editor.org/rfc/rfc1928
+[guide-fox]: https://support.mozilla.org/en-US/kb/connection-settings-firefox
+[guide-chrom]: https://www.chromium.org/developers/design-documents/network-stack/socks-proxy/
diff --git a/content/til/vim-jp.fr.md b/content/sw-notes/vim-jp.fr.md
index ed86d0f..d48aa79 100644
--- a/content/til/vim-jp.fr.md
+++ b/content/sw-notes/vim-jp.fr.md
@@ -1,7 +1,8 @@
 ---
-title: "AJA que on peut écrire le japonais avec vim"
+title: "Écrire le japonais avec vim"
 date: 2021-04-19T17:58:51+07:00
 translationKey: vim-jp
+categories: [software, guide]
 tags: [vim, japanese, useless, hiragana, katakana]
 ---
 
diff --git a/content/til/vim-jp.md b/content/sw-notes/vim-jp.md
index 5592824..54b3959 100644
--- a/content/til/vim-jp.md
+++ b/content/sw-notes/vim-jp.md
@@ -1,7 +1,8 @@
 ---
-title: "TIL: You can type Hiragana and Katakana on vim"
+title: "You can type Hiragana and Katakana on vim"
 date: 2021-04-19T17:58:51+07:00
 translationKey: vim-jp
+categories: [software, guide]
 tags: [vim, japanese, useless, hiragana, katakana]
 ---
 
diff --git a/content/sw-notes/vim-paste-command.md b/content/sw-notes/vim-paste-command.md
new file mode 100644
index 0000000..841d4be
--- /dev/null
+++ b/content/sw-notes/vim-paste-command.md
@@ -0,0 +1,11 @@
+---
+title: "Paste command output into vim"
+date: 2024-04-24
+translationKey: vim-paste-command
+categories: [software, guide]
+tags: [vim]
+---
+
+To paste the command output into vim, type `:r!<command>`.
+For example, to paste current date in ISO 8601 into vim, I can type:
+`r!date -I`.
diff --git a/content/til/vim-paste-file.md b/content/sw-notes/vim-paste-file.md
index 712085e..5d4bbd1 100644
--- a/content/til/vim-paste-file.md
+++ b/content/sw-notes/vim-paste-file.md
@@ -2,7 +2,8 @@
 title: "TIL: Paste filename in vim"
 date: 2021-04-27T23:12:29+07:00
 translationKey: vim-paste-file
-tags: [vim, trick]
+categories: [software, guide]
+tags: [vim]
 ---
 
 To paste the current file's name into itself, type Ctrl+R then %.
diff --git a/content/til/_index.fr.md b/content/til/_index.fr.md
deleted file mode 100644
index c331bf2..0000000
--- a/content/til/_index.fr.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: AJA
-translationKey: til
----
-
-(*Aujourd'hui J'ai Appris...* -- traduit de *Today I learned* en anglais.
-100 points d'Internet pour ce qui peut me donner une meilleur traduction.)
-
-Voici les choses duquel j'apprends tous les jours.
diff --git a/content/til/_index.md b/content/til/_index.md
deleted file mode 100644
index 8808ccd..0000000
--- a/content/til/_index.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: TIL
-lang: en
-translationKey: til
----
-
-These are lists of small tricks or fun trivia I learned.
diff --git a/content/til/css-exfil.md b/content/til/css-exfil.md
deleted file mode 100644
index 8cb09a4..0000000
--- a/content/til/css-exfil.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: "TIL: CSS can steal your data"
-date: 2021-02-06T23:06:51+07:00
-translationKey: css-exfil
-tags: [css, exfil, vulnerability, security]
----
-
-The vulnerability is called [CSS Exfil][exfil].
-
-[exfil]: https://www.mike-gualtieri.com/posts/stealing-data-with-css-attack-and-defense
diff --git a/content/til/default_light.png b/content/til/default_light.png
deleted file mode 100644
index bfe18fc..0000000
--- a/content/til/default_light.png
+++ /dev/null
Binary files differdiff --git a/content/til/devtool-theme.md b/content/til/devtool-theme.md
deleted file mode 100644
index 25d6d77..0000000
--- a/content/til/devtool-theme.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-categories: [til]
-title: "TIL: Devtool allows you to emulate system theme"
-date: 2021-05-03T11:15:35+07:00
-tag: [css, theme]
----
-
-Today I learned Firefox's devtool provides you with a tool to emulate
-dark/light mode (probably Chrome does, too). It can be useful for front-end
-developers when they want to design a system-based theme switch.
-
-![My default theme, light theme](/til/default_light.png)
-![After choosing dark mode emulation](/til/emulate_dark.png)
diff --git a/content/til/emulate_dark.png b/content/til/emulate_dark.png
deleted file mode 100644
index a45fa1c..0000000
--- a/content/til/emulate_dark.png
+++ /dev/null
Binary files differ