about summary refs log tree commit diff
path: root/content/til
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-28 13:08:40 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-28 13:08:40 +0700
commitcdee3ffab8ec76291ec4bba5370aafed1a1f47ed (patch)
tree9f23070b5d88e111594dc8fd2e602dd0a087733e /content/til
parentfd7c479383add732f2e855d6eaf3712f6742cac1 (diff)
downloadblog-cdee3ffab8ec76291ec4bba5370aafed1a1f47ed.tar.gz
Add TIL section
Diffstat (limited to 'content/til')
-rw-r--r--content/til/_index.fr.md8
-rw-r--r--content/til/_index.md7
-rw-r--r--content/til/css-exfil.md10
-rw-r--r--content/til/json-output-format.fr.md12
-rw-r--r--content/til/json-output-format.md15
-rw-r--r--content/til/vim-jp.fr.md14
-rw-r--r--content/til/vim-jp.md14
-rw-r--r--content/til/vim-paste-file.md8
8 files changed, 88 insertions, 0 deletions
diff --git a/content/til/_index.fr.md b/content/til/_index.fr.md
new file mode 100644
index 0000000..04e890b
--- /dev/null
+++ b/content/til/_index.fr.md
@@ -0,0 +1,8 @@
+---
+title: AJA
+translationKey: til
+---
+
+(Aujourd'hui J'ai Appris...)
+
+Voici les choses duquel j'apprends tous les jours.
diff --git a/content/til/_index.md b/content/til/_index.md
new file mode 100644
index 0000000..8808ccd
--- /dev/null
+++ b/content/til/_index.md
@@ -0,0 +1,7 @@
+---
+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
new file mode 100644
index 0000000..8cb09a4
--- /dev/null
+++ b/content/til/css-exfil.md
@@ -0,0 +1,10 @@
+---
+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/json-output-format.fr.md b/content/til/json-output-format.fr.md
new file mode 100644
index 0000000..ae77803
--- /dev/null
+++ b/content/til/json-output-format.fr.md
@@ -0,0 +1,12 @@
+---
+title: "AJA comment imprinter du JSON avec des couleurs"
+date: 2021-04-27T17:06:51+07:00
+translationKey: json-output-format
+tags: [bash, cli, json, trick]
+---
+
+On peut formatter du JSON avec des couleurs avec `jq` et le lire avec `less`:
+
+```bash
+<command> | jq -C | less -r
+```
diff --git a/content/til/json-output-format.md b/content/til/json-output-format.md
new file mode 100644
index 0000000..5bbc153
--- /dev/null
+++ b/content/til/json-output-format.md
@@ -0,0 +1,15 @@
+---
+title: "TIL: Formatting JSON Output"
+date: 2021-04-27T17:06:51+07:00
+translationKey: json-output-format
+tags: [bash, cli, json, trick]
+---
+
+TIL: Syntax-highlighted JSON output
+
+If you have some command that return (long) JSON, you can view it formatted
+with color with: 
+
+```bash
+<command> | jq -C | less -r
+```
diff --git a/content/til/vim-jp.fr.md b/content/til/vim-jp.fr.md
new file mode 100644
index 0000000..ecbadec
--- /dev/null
+++ b/content/til/vim-jp.fr.md
@@ -0,0 +1,14 @@
+---
+title: "AJA que on peut écrire le japonais avec vim"
+date: 2021-04-19T17:58:51+07:00
+translationKey: json-output-format
+tags: [vim, japanese, useless, hiragana, katakana]
+---
+
+On peut écrire du Hiragana and Katakana avec vim:
+Appuyer Ctrl+K puis écrire le nom du glyph en Romanji:
+
+- Hiragana: ^Kna → な
+- Katakana: ^KNa → ナ
+
+Les autres caractères: <http://vimdoc.sourceforge.net/htmldoc/digraph.html#digraph-table>
diff --git a/content/til/vim-jp.md b/content/til/vim-jp.md
new file mode 100644
index 0000000..033611c
--- /dev/null
+++ b/content/til/vim-jp.md
@@ -0,0 +1,14 @@
+---
+title: "TIL: You can type Hiragana and Katakana on vim"
+date: 2021-04-19T17:58:51+07:00
+translationKey: json-output-format
+tags: [vim, japanese, useless, hiragana, katakana]
+---
+
+You can type Hiragana and Katakana on vim:
+Type Ctrl+K then type the glyph name in Romanji
+
+- Hiragana: ^Kna → な
+- Katakana: ^KNa → ナ
+
+Full list: <http://vimdoc.sourceforge.net/htmldoc/digraph.html#digraph-table>
diff --git a/content/til/vim-paste-file.md b/content/til/vim-paste-file.md
new file mode 100644
index 0000000..712085e
--- /dev/null
+++ b/content/til/vim-paste-file.md
@@ -0,0 +1,8 @@
+---
+title: "TIL: Paste filename in vim"
+date: 2021-04-27T23:12:29+07:00
+translationKey: vim-paste-file
+tags: [vim, trick]
+---
+
+To paste the current file's name into itself, type Ctrl+R then %.