From 96894363d54a2e73a5205e16bbd06a2df3922319 Mon Sep 17 00:00:00 2001 From: Ayo Reis Date: Sat, 20 Sep 2025 00:19:12 +0100 Subject: [PATCH] Write Git rewording post and improve FFmpeg post --- index.html | 49 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index f96180f..e737f37 100644 --- a/index.html +++ b/index.html @@ -37,7 +37,7 @@ background-color: #f77ee5; } - :where(h2, h3, p, pre, ul):not(:first-child) { + :where(h2, p, pre, ul):not(:first-child) { margin-top: 0.5lh; } @@ -67,6 +67,7 @@ } code { + text-transform: none; color: white; background-color: black; } @@ -76,32 +77,58 @@ padding-top: 64px; border-top: 4px dashed black; - > article > header > h3 { - margin-top: 0; + > article { + &:not(:first-child) { + margin-top: 64px; + } + + > header > h2 { + margin-top: 0; + } } } -

Hey there, I'm Ayo!

+

Hey there! I'm Ayo ^w^

Here are some projects I'm working on: git.ayoreis.com.

-

(the background colour is #f77ee5 btw :3)

+

(the background colour is #f77ee5 btw)

-

(updated )

-

Speed up video in FFmpeg

+

+

Reword old Git commits

-
ffmpeg -i input.mkv -r 60 -vf "setpts=PTS/60" -an output.mp4
+
git rebase -i --committer-date-is-author-date HEAD~n
+git push --force
+ +
    +
  • rebase modifies history in a few ways, such as rewording commits
  • +
  • -i (short for --interactive) lets you chose specific commits to reword
  • +
  • --committer-date-is-author-date (optional) keeps original date instead of updating it
  • +
  • HEAD~n reference, current branch n commits back
  • +
+ +

Force pushing is needed since history is modified, will cause trouble if you work with other people.

+
+ +
+
+

(last updated )

+

Speed up video in FFmpeg

+
+
ffmpeg -i input.mkv -vf "setpts=PTS/60" -r 60 -an output.mp4
+

(Some of the following options link to further information.)

+
  • -i input.mkv input file
  • -
  • -r 60 frame rate
  • -
  • -vf "setpts=PTS/60" video filter, set presentation timespamp
  • -
  • -an no audio (unless you speed up audio too, the output's length will stay the same)
  • +
  • -vf (short for --filter:v) video filter, "setpts=PTS/60" set presentation timespamp
  • +
  • -r 60 frame rate
  • +
  • -an no audio (unless you speed up audio too, the output's length will stay the same)
  • output.mp4 output file and format
-- 2.49.0