aboutsummaryrefslogtreecommitdiff
path: root/_tils
diff options
context:
space:
mode:
Diffstat (limited to '_tils')
-rw-r--r--_tils/2020-08-12-simple-filname-timestamp.md4
-rw-r--r--_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.md2
-rw-r--r--_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md7
-rw-r--r--_tils/2020-08-28-grep-online-repositories.md2
4 files changed, 8 insertions, 7 deletions
diff --git a/_tils/2020-08-12-simple-filname-timestamp.md b/_tils/2020-08-12-simple-filname-timestamp.md
index 7c112ff..2678088 100644
--- a/_tils/2020-08-12-simple-filname-timestamp.md
+++ b/_tils/2020-08-12-simple-filname-timestamp.md
@@ -5,7 +5,7 @@ layout: til
lang: en
ref: simple-filename-timestamp
---
-When writing Jekyll posts or creating logfiles with dates on them, I usually
+When writing Jekyll posts or creating log files with dates on them, I usually
struggle with finding a direct way of accomplishing that. There's a simple
solution: `date -I`.
@@ -14,7 +14,7 @@ solution: `date -I`.
cp post-template.md _posts/$(date -I)-post-slug.md
```
-Using this built-in GNU/Linux tool allows you to `touch $(date -I).md` to readly
+Using this built-in GNU/Linux tool allows you to `touch $(date -I).md` to readily
create a `2020-08-12.md` file.
I always had to read `man date` or search the web over and over, and after doing
diff --git a/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.md b/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.md
index d9181c3..bd8a072 100644
--- a/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.md
+++ b/_tils/2020-08-13-anchor-headers-and-code-lines-in-jekyll.md
@@ -47,7 +47,7 @@ I've derived my implementations from two "official"[^official] hooks,
[^official]: I don't know how official they are, I just assumed it because they
live in the same organization inside GitHub that Jekyll does.
-All I did was to wrap the header tag inside an `<a>`, and set the href of that
+All I did was to wrap the header tag inside an `<a>`, and set the `href` of that
`<a>` to the existing id of the header. Before the hook the HTML looks like:
```html
diff --git a/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md b/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md
index e42ce4f..8676fcb 100644
--- a/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md
+++ b/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md
@@ -54,9 +54,10 @@ specific, we need some extra parameters:
git --work-tree=<dir> checkout <my-commit> -- .
```
-There's an extra `-- .` at the end, which initally looks like we're sending
-morse signals to git, but we're actually saying to `git-checkout` which subdir
-of `<my-commit>` we want to look at. Which means we can do something like:
+There's an extra `-- .` at the end, which initially looks like we're sending
+Morse signals to git, but we're actually saying to `git-checkout` which
+sub directory of `<my-commit>` we want to look at. Which means we can do
+something like:
```shell
git --work-tree=<dir> checkout <my-commit> -- src/
diff --git a/_tils/2020-08-28-grep-online-repositories.md b/_tils/2020-08-28-grep-online-repositories.md
index f9ef114..7860df3 100644
--- a/_tils/2020-08-28-grep-online-repositories.md
+++ b/_tils/2020-08-28-grep-online-repositories.md
@@ -61,7 +61,7 @@ git grep "${REGEX_PATTERN}" "${@}"
```
It is a wrapper around `git grep` that downloads the repository when missing.
-Save in a file calle `git-search`, make the file executable and add it to your
+Save in a file called `git-search`, make the file executable and add it to your
path.
Overview: