Deploy .NET 6 Web Application With GitHub Actions To Self-Hosted Linux Machine (Virtual Private Server, Raspberry Pi, etc.)
This great article taught me how to use github actions to deploy my side project to my cheap VPS. Many thanks to the author!
This great article taught me how to use github actions to deploy my side project to my cheap VPS. Many thanks to the author!
Yesterday, I need to replace a string ClassName
with List<ClassName>
many times in a few files, and the ClassName varies. Manually doing it again and again is tedious and mistake prone, which is what I hate. Here's the solution
@a
@@
The feeling is so good to let a computer do what you want it to do!
and here's the Reference where I learnt how to use vim macro. TL;DR;
Instead of pressing backspace repeatedly, press ESC
then Backspace
.
Don't you want more? here's some
Ctrl + k
Ctrl + u
Ctrl + a
Want a full list?
You can simply click the title of this blog to check the reference.
The key is the dotall modifier (?s)
. It helped out me today!
by the way, my final match expression is
rg --pcre2 -U '(?s)\.Initialise\([^,]+,\s*([^,]+),\s*\1(?:,true|false)?\);'
rg is a so fast and so powerful tool in my daily use, I love it!
docker network ls
then
docker network rm networkname