diff --git a/config/_default/config.toml b/config/_default/config.toml index c15a345..85e906b 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -12,3 +12,4 @@ summaryLength = 0 [outputs] home = ["HTML", "RSS", "JSON"] +theme = 'nostyleplease' diff --git a/config/_default/module.toml b/config/_default/module.toml index 03049d0..13a8b29 100644 --- a/config/_default/module.toml +++ b/config/_default/module.toml @@ -1,2 +1,2 @@ [[imports]] -path = "github.com/jpanther/congo/v2" +path = "github.com/hanwenguo/hugo-theme-nostyleplease" diff --git a/config/_default/params.toml b/config/_default/params.tomlx similarity index 100% rename from config/_default/params.toml rename to config/_default/params.tomlx diff --git a/content/posts/awesome-foss-tooling.md b/content/posts/awesome-foss-tooling.md index b785a53..4f98195 100644 --- a/content/posts/awesome-foss-tooling.md +++ b/content/posts/awesome-foss-tooling.md @@ -12,16 +12,9 @@ some awesome FOSS tooling. # Invidious (YouTube alternative) -{{< figure - src="https://invidious.io/invidious-colored-vector.svg" - alt="Invidious logo" - width="20%" - height="20%" - caption="Official logo of [Invidious](https://invidious.io)" - default=true - >}} +![Invidious logo](https://invidious.io/invidious-colored-vector.svg) -{{< button href="https://invidious.io" target="_blank" >}}Source{{< /button >}} +Source[^1] Invidious is an open source alternative front-end to YouTube. @@ -30,16 +23,9 @@ check the available instances https://docs.invidious.io/instances/ # Nitter (Twitter alternative) -{{< figure - src="https://raw.githubusercontent.com/zedeus/nitter/master/public/logo.png" - alt="Nitter logo" - width="20%" - height="20%" - caption="Official logo of [Nitter](https://github.com/zedeus/nitter)" - default=true - >}} +![Nitter logo](https://raw.githubusercontent.com/zedeus/nitter/master/public/logo.png) -{{< button href="https://github.com/zedeus/nitter" target="_blank" >}}Source{{< /button >}} +Source[^2] Alternative Twitter front-end. @@ -52,31 +38,17 @@ an instance from this list https://github.com/xnaas/nitter-instances # PeerTube (YouTube alternative) -{{< figure - src="https://joinpeertube.org/img/brand.png" - alt="PeerTube logo" - width="20%" - height="20%" - caption="Official logo of [PeerTube](https://joinpeertube.org)" - default=true - >}} +![PeerTube logo](https://joinpeertube.org/img/brand.png) -{{< button href="https://joinpeertube.org" target="_blank" >}}Source{{< /button >}} +Source[^3] free and decentralized alternative to video platforms # Mastodon (Twitter alternative) -{{< figure - src="https://joinmastodon.org/static/media/logo_full.97822390.svg" - alt="Mastodon logo" - width="20%" - height="20%" - caption="Official logo of [Mastodon](https://joinmastodon.org)" - default=true - >}} +![Mastodon logo](https://joinmastodon.org/static/media/logo_full.97822390.svg) -{{< button href="https://joinmastodon.org" target="_blank" >}}Source{{< /button >}} +Source[^4] Mastodon isn’t a single website like Twitter or Facebook, it's a network of thousands of servers operated by different organizations and individuals that @@ -86,16 +58,9 @@ There are lots of instances https://joinmastodon.org/communities # Pixelfed (Instagram alternative) -{{< figure - src="https://pixelfed.org/img/logo.svg" - alt="Pixelfed logo" - width="20%" - height="20%" - caption="Official logo of [Pixelfed](https://pixelfed.org)" - default=true - >}} +![Pixelfed logo](https://pixelfed.org/img/logo.svg) -{{< button href="https://pixelfed.org" target="_blank" >}}Source{{< /button >}} +Source[^5] A federated free and ethical photo sharing platform. @@ -103,31 +68,24 @@ Instances: https://fedidb.org/software/pixelfed # Codeberg (GitHub alternative) -{{< figure - src="https://codeberg.org/assets/img/logo.svg" - alt="Codeberg logo" - width="20%" - height="20%" - caption="Official logo of [Codeberg](https://codeberg.org)" - default=true - >}} +![Codeberg logo](https://codeberg.org/assets/img/logo.svg) -{{< button href="https://codeberg.org" target="_blank" >}}Source{{< /button >}} +Source[^6] -Free git hosting platform with no tracking. They use [Woodpecker CI](https://woodpecker-ci.org) -for CI/CD pipelines. They're built on top of [gitea](https://gitea.io/en-us/) -which in [`v1.17.0` have layed the foundation for federation][1], which means +Free git hosting platform with no tracking. They use Woodpecker CI[^7] +for CI/CD pipelines. They're built on top of gitea[^8] +which in `v1.17.0` have layed the foundation for federation[^9], which means it will allow instances to communicate with each other in the future. # Codeberg pages (GitHub Pages alternative) -{{< button href="https://codeberg.page" target="_blank" >}}Source{{< /button >}} +Source[^10] Here's my blog configuration to get you started https://codeberg.org/dminca/pages # Bibliogram (Instagram alternative) -{{< button href="https://sr.ht/~cadence/bibliogram/" target="_blank" >}}Source{{< /button >}} +Source[^11] Bibliogram is an alternative front-end for Instagram. Bibliogram works without browser JavaScript, has no ads or tracking, and @@ -139,24 +97,39 @@ Lists of instances: # Proxitok (TikTok alternative) -{{< button href="https://github.com/pablouser1/ProxiTok" target="_blank" >}}Source{{< /button >}} +Source[^12] Instances: * https://github.com/pablouser1/ProxiTok/wiki/Public-instances # Teddit (Reddit alternative) -{{< button href="https://codeberg.org/teddit/teddit" target="_blank" >}}Source{{< /button >}} +Source[^13] Instances: * https://codeberg.org/teddit/teddit#instances # Rimgo (Imgur alternative) -{{< button href="https://codeberg.org/video-prize-ranch/rimgo" target="_blank" >}}Source{{< /button >}} +Source[^14] Instances: * https://codeberg.org/video-prize-ranch/rimgo#instances - -[1]: https://blog.gitea.io/2022/07/gitea-1.17.0-is-released/ +--- +{data-content = "footnotes"} + +[^1]: https://invidious.io +[^2]: https://github.com/zedeus/nitter +[^3]: https://joinpeertube.org +[^4]: https://joinmastodon.org +[^5]: https://pixelfed.org +[^6]: https://codeberg.org +[^7]: https://woodpecker-ci.org +[^8]: https://gitea.io/en-us/ +[^9]: https://blog.gitea.io/2022/07/gitea-1.17.0-is-released/ +[^10]: https://codeberg.page +[^11]: https://sr.ht/~cadence/bibliogram/ +[^12]: https://github.com/pablouser1/ProxiTok +[^13]: https://codeberg.org/teddit/teddit +[^14]: https://codeberg.org/video-prize-ranch/rimgo diff --git a/content/posts/fish-shell-tips-and-tricks.md b/content/posts/fish-shell-tips-and-tricks.md index 696e1ca..fba5bfa 100644 --- a/content/posts/fish-shell-tips-and-tricks.md +++ b/content/posts/fish-shell-tips-and-tricks.md @@ -12,14 +12,14 @@ categories: [] I'll update this page with anything new πŸ†• I find about `fish-shell` 🐟 # Autosuggestions -Bumped into [this one here][1] +Bumped into this one here[^1] Apparently, after you enable some new completions you can run `fish_update_completions` and `fish` parses man pages for possible commands and switches. # Setting an alias 'the right way' without slowing down your shell -{{< button href="https://github.com/jorgebucaran/cookbook.fish#how-do-i-define-an-alias-in-fish" target="_blank" >}}Source{{< /button >}} +Source[^6] Aliases created with `alias` will not be available in new shell sessions. If you want them to persist, use @@ -34,8 +34,8 @@ Using `alias` inside `~/.config/fish/config.fish` will slow down your shell start as each alias/function will be eagerly loaded. To persist aliases across shell sessions, use `alias -s`, which will create a -[`function`][3] and save it to `~/.config/fish/functions`. This takes advantage -of fish function [lazy-loading / autoloading][4] mechanism. +`function`[^2] and save it to `~/.config/fish/functions`. This takes advantage +of fish function lazy-loading / autoloading[^3] mechanism. # Fish shell cheatsheet @@ -94,7 +94,7 @@ history delete --case-sensitive --exact 'foo' # Check if variable is set -{{< button href="https://fishshell.com/docs/current/cmds/set.html?highlight=set" target="_blank" >}}Source{{< /button >}} +Source[^4] Test if an environment variable or a local variable from the script was set @@ -108,7 +108,7 @@ end # Check if file exists -{{< button href="https://fishshell.com/docs/current/cmds/test.html?highlight=test" target="_blank" >}}Source{{< /button >}} +Source[^5] ```fish if test -e /bin/test @@ -118,7 +118,12 @@ else end ``` - -[1]: https://mvolkmann.github.io/fish-article/#Autosuggestions -[3]: https://fishshell.com/docs/current/cmds/function.html -[4]: https://fishshell.com/docs/current/tutorial.html#autoloading-functions +--- +{data-content = "footnotes"} + +[^1]: https://mvolkmann.github.io/fish-article/#Autosuggestions +[^2]: https://fishshell.com/docs/current/cmds/function.html +[^3]: https://fishshell.com/docs/current/tutorial.html#autoloading-functions +[^4]: https://fishshell.com/docs/current/cmds/set.html?highlight=set +[^5]: https://fishshell.com/docs/current/cmds/test.html?highlight=test +[^6]: https://github.com/jorgebucaran/cookbook.fish#how-do-i-define-an-alias-in-fish diff --git a/content/posts/improving-your-web-experience.md b/content/posts/improving-your-web-experience.md index 322b803..f958506 100644 --- a/content/posts/improving-your-web-experience.md +++ b/content/posts/improving-your-web-experience.md @@ -29,7 +29,7 @@ That's a question with many edges. I think the real questions should be: If the answer to the above questions is **No** then you know what **privacy** is about by this point. -{{< peertube src="https://media.zat.im/videos/embed/35badfed-5322-48ac-b5c1-71b1ad88262e" >}} +- https://media.zat.im/videos/embed/35badfed-5322-48ac-b5c1-71b1ad88262e # Improving your Web surfing experience @@ -38,34 +38,49 @@ currently the only way we have full control, is to block ads, pop-ups and tracki ## Privacy redirect (browser extension) -{{< button href="https://github.com/SimonBrazell/privacy-redirect" target="_blank" >}}Source{{< /button >}} +Source[^1] -Supported by {{< icon "firefox" >}} {{< icon "chrome" >}} {{< icon "edge" >}} +Supported by +- firefox +- chrome +- edge ## uBlock Origin (browser extension) -{{< button href="https://github.com/gorhill/uBlock" target="_blank" >}}Source{{< /button >}} +Source[^2] -Supported by {{< icon "firefox" >}} {{< icon "chrome" >}} {{< icon "edge" >}} {{< icon "opera" >}} +Supported by +- firefox +- chrome +- edge +- opera ## Privacy Redirect for Safari (€ 1.99 browser extension) -{{< button href="https://github.com/smmr-software/privacy-redirect-safari" target="_blank" >}}Source{{< /button >}} +Source[^3] -Supported by {{< icon "safari" >}} {{< icon "apple" >}} +Supported by +- safari +- apple ## Newpipe (Android app) -{{< button href="https://newpipe.net" target="_blank" >}}Source{{< /button >}} +https://newpipe.netSource[^4] -Supported by {{< icon "android" >}} +Supported by +- android ## Freetube (Desktop app) -{{< button href="https://freetubeapp.io" target="_blank" >}}Source{{< /button >}} +Source[^5] -Supported by {{< icon "windows" >}} {{< icon "apple" >}} {{< icon "ubuntu" >}} -{{< icon "fedora" >}} {{< icon "flatpak" >}} {{< icon "linux" >}} +Supported by +- windows +- apple +- ubuntu +- fedora +- flatpak +- linux # Detox your home WiFi LAN @@ -74,19 +89,29 @@ some also install a heatsink. There are many opinions on heatsink's efficiency. To keep things simple, just get a RPI3 kit, it contains everything you need to boot your OS. -Flash [raspbian](https://www.raspbian.org) on the MicroSD card and continue to -install and setup [PiHole](https://pi-hole.net). +Flash raspbian[^6] on the MicroSD card and continue to +install and setup PiHole[^7]. Here are a few useful AdLists: * https://oisd.nl * https://github.com/Perflyst/PiHoleBlocklist -{{< alert "lightbulb" >}} -Not possible to block YouTube ads. Unfortunately they use a shitty strategy with +> Not possible to block YouTube ads. Unfortunately they use a shitty strategy with a ton of domains and subdomains which is impossible to come up with a capture-all pattern. But the above browser extensions help you circumvent that -- it's currently the only solution. -{{< /alert >}} Thus you'll have no more ads on your whole WiFi LAN so you can peacefully read those news articles without any pesky attention grabbers. + +--- +{data-content = "footnotes"} + +[^1]: https://github.com/SimonBrazell/privacy-redirect +[^2]: https://github.com/gorhill/uBlock +[^3]: https://github.com/smmr-software/privacy-redirect-safari +[^4]: https://newpipe.net +[^5]: https://freetubeapp.io +[^6]: https://www.raspbian.org +[^7]: https://pi-hole.net + diff --git a/content/posts/kubernetes-tips.md b/content/posts/kubernetes-tips.md index da9dd76..0b7ac9b 100644 --- a/content/posts/kubernetes-tips.md +++ b/content/posts/kubernetes-tips.md @@ -6,10 +6,6 @@ description: "Mostly command line hacks to speedup workflow" tags: [ kubernetes, tips, til ] --- -{{< badge >}} -Further tips will follow! -{{< /badge >}} - # Fetch revisions for a `StatefulSet` Revisions for `StatefulSet` & `DaemonSet` are stored in `ControllerRevision` @@ -19,7 +15,7 @@ objects. kubectl get controllerrevisions --all-namespaces ``` -These revisions allow [rolling back][1] `StatefulSet` by running +These revisions allow rolling back[^1] `StatefulSet` by running ```sh kubectl rollout undo @@ -27,7 +23,7 @@ kubectl rollout undo Different from `Deployment` which capture the state in `ReplicaSet` -kudos [Sheogorath](https://shivering-isles.com/til/2024/01/statefulset-revisions) +kudos Sheogorath[^2] # Get events for a certain Pod @@ -41,10 +37,8 @@ kubectl get events --field-selector involvedObject.name= kubectl get events --field-selector involvedObject.kind=,involvedObject.name= ``` -{{< alert "circle-info" >}} * resource-name could be `Pod`, `Job`, `CronJob` etc. * object-name the name of resource -{{< /alert >}} # Delete a PVC stuck in "Terminating" state @@ -62,18 +56,16 @@ the removal of finalizer field. kubectl patch pvc -p '{"metadata":{"finalizers":null}}' ``` -{{< button href="https://github.com/kubernetes/kubernetes/issues/69697" target="_blank" >}}Source{{< /button >}} +Source[^3] -Also kudos [Dean Lewis](https://veducate.co.uk/kubernetes-pvc-terminating/) +Also kudos Dean Lewis[^4] # Delete a Pod stuck in "Terminating" state -{{< alert "triangle-exclamation" >}} -This is a dangerous operation. Be prepared in case you might corrupt the ETCD +> This is a dangerous operation. Be prepared in case you might corrupt the ETCD database and have a backup. These resources might be in handy: - https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#replacing-a-failed-etcd-member - https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#securing-communication -{{< /alert >}} If you did everything in order to delete a Pod, meaning delete its dependencies @@ -111,5 +103,10 @@ ETCDCTL_API=3 etcdctl --endpoints=https://10.11.68.181:2379,https://10.11.68.226 del "/registry/pods/default/oops-im-stuck-1234" ``` -[1]: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-undo-em- +--- +{data-content = "footnotes"} +[^1]: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-undo-em- +[^2]: https://shivering-isles.com/til/2024/01/statefulset-revisions +[^3]: https://github.com/kubernetes/kubernetes/issues/69697 +[^4]: https://veducate.co.uk/kubernetes-pvc-terminating/ diff --git a/content/posts/make-alternatives-for-go.md b/content/posts/make-alternatives-for-go.md index 0e5bf47..dce0a01 100644 --- a/content/posts/make-alternatives-for-go.md +++ b/content/posts/make-alternatives-for-go.md @@ -11,41 +11,32 @@ but how about `Go`? Sure, it's minimalistic, you can just do `go build` and you're done, but if you want to fine-tune something that one-liner turns into a Bratwurst 🌭 -[I've asked around][2] on the [#go-lang:matrix.org][1] room which alternatives exist +[I've asked around][^2] on the [#go-lang:matrix.org][^1] room which alternatives exist and got 2 tools so far. # Task -{{< figure - src="https://taskfile.dev/img/logo.svg" - alt="Taskfile logo" - width="20%" - height="20%" - caption="Official logo of [Taskfile](https://taskfile.dev)" - default=true - >}} +[Official logo of Taskfile](https://taskfile.dev/img/logo.svg) Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make. -{{< button href="https://taskfile.dev" target="_blank" >}} Source {{< /button >}} +Source[^3] # Mage -{{< figure - src="https://magefile.org/images/gary.svg" - alt="Mage logo" - width="20%" - height="20%" - caption="Official logo of [Mage](https://magefile.org)" - default=true - >}} +![Official logo of Mage](https://magefile.org/images/gary.svg) Mage is a make/rake-like build tool using Go. You write plain-old go functions, and Mage automatically uses them as Makefile-like runnable targets. -{{< button href="https://magefile.org" target="_blank" >}}Source{{< /button >}} +Source[^4] +--- +{data-content = "footnotes"} + +[^1]: https://matrix.to/#/#go-lang:matrix.org +[^2]: https://matrix.to/#/!iupBrYlVdqKLEkWtDs:tapenet.org/$ANxnsmi8HzVIYz1vY3ngsnUKocLf4mCxhKalo8KEagQ?via=matrix.org&via=tchncs.de&via=privacytools.io +[^3]: https://taskfile.dev +[^4]: https://magefile.org -[1]: https://matrix.to/#/#go-lang:matrix.org -[2]: https://matrix.to/#/!iupBrYlVdqKLEkWtDs:tapenet.org/$ANxnsmi8HzVIYz1vY3ngsnUKocLf4mCxhKalo8KEagQ?via=matrix.org&via=tchncs.de&via=privacytools.io diff --git a/content/posts/moved-from-zsh-to-fish.md b/content/posts/moved-from-zsh-to-fish.md index 6f4ed8c..78a8405 100644 --- a/content/posts/moved-from-zsh-to-fish.md +++ b/content/posts/moved-from-zsh-to-fish.md @@ -17,12 +17,10 @@ any issues whatsoever, but those were written 6mo. or even +1 years ago and as you already know, a lot can change in the Tech/IT/Software domain in that amount of time and when it does it breaks some shits. -{{< alert "lightbulb" >}} -This is only valid for Apple Silicon Macs, +> This is only valid for Apple Silicon Macs, the Intel-based Macs will just install the package in its ordinary place ( `/usr/local/bin/fish` ). The installation was ran on M1 Mac with MacOS Monterey 12.5. -{{< /alert >}} # Initial install diff --git a/content/posts/moved-to-codeberg-pages.md b/content/posts/moved-to-codeberg-pages.md index b4f373f..75f4c9b 100644 --- a/content/posts/moved-to-codeberg-pages.md +++ b/content/posts/moved-to-codeberg-pages.md @@ -10,38 +10,22 @@ categories: [] ## Add deprecation notice -{{< figure - src="/gh03.png" - alt="Add deprecation notice in README.md" - caption="Let your audience know where you moved" - >}} - -Commit and [push it to your repo](https://github.com/dminca/dminca.github.io/commit/3f7244785acc93a47f849999fca78e4d19f522c3) +Commit and push it to your repo[^1] ## Archive repo -{{< alert "lightbulb" >}} -It may be possible that before archiving you'd have to toggle Pages off. +> It may be possible that before archiving you'd have to toggle Pages off. Unfortunately I can't see that option anymore since I've disabled it already. If that's the case and you find the option in repo Settings be sure to do that prior to archiving it. -{{< /alert >}} - -{{< figure - src="/gh04.png" - alt="Archive the repository" - caption="Archive your repo to disable Pages" - >}} # Create Codeberg repo -Head over to [codeberg.org](https://codeberg.org) and create **an empty repo** called `pages`, +Head over to codeberg.org[^2] and create **an empty repo** called `pages`, you can follow the instructions from https://codeberg.page -{{< alert "triangle-exclamation" >}} -Remember that your `main`/`master` branch is where you'll store the generated +> Remember that your `main`/`master` branch is where you'll store the generated website only. No markdown, no hugo files nothing. Only the result of site build. -{{< /alert >}} Keep the repository empty for now, we'll come back to it later. @@ -67,10 +51,9 @@ cp -vr ../public/** . # commit and push git add . ; git commit -m 'initial commit'; git push -u origin main ``` -{{< alert "circle-info" >}} -Replace `` with your codeberg username. Just set the Codeberg repo as the + +> Replace `` with your codeberg username. Just set the Codeberg repo as the main remote. -{{< /alert >}} The `public/` dir is where your website is dumped after `hugo` build, depending on your installation some may have it in `docs/` dir. Adjust this accordingly. @@ -80,31 +63,29 @@ no importance as long as the repo settings point to it then your website will work perfectly fine. # Automate building your site + Let's automate the above steps because repetitive tasks are not worth to be done by humans but rather by :robot: + ## Request Woodpecker CI access -Head over to [codeberg-ci/request-access](https://codeberg.org/Codeberg-CI/request-access) -and [request Woodpecker CI access](https://codeberg.org/Codeberg-CI/request-access/issues/new). +Head over to codeberg-ci/request-access[^3] +and request Woodpecker CI access[^4] -You could also [donate to Codeberg](https://codeberg.org/Codeberg/org/src/branch/main/Imprint.md#sepa-iban-for-donations) to support them paying for the infra. +You could also donate to Codeberg[^5] to support them paying for the infra. ## Configure pipeline -{{< alert "lightbulb" >}} -You should have received your CI access to proceed with these steps. -{{< /alert >}} +> You should have received your CI access to proceed with these steps. We basically have to replicate the above steps in your CI and we do that by creating a file at repository root level `.woodpecker.yml` -You can check out mine as an example [.woodpecker.yml](https://codeberg.org/dminca/pages/src/branch/hugo/.woodpecker.yml) +You can check out mine as an example `.woodpecker.yml`[^6]. -{{< alert "triangle-exclamation" >}} -Mine is configured with `master` (lines 18,20,26) as the main branch. Adjust this accordingly. -{{< /alert >}} +> Mine is configured with `master` (lines 18,20,26) as the main branch. Adjust this accordingly. -{{< highlight python "linenos=table,hl_lines=12 18 20 26,linenostart=1" >}} +```yml pipeline: build: image: klakegg/hugo:0.101.0-ext-alpine-onbuild @@ -134,9 +115,9 @@ pipeline: when: event: push branch: hugo -{{< / highlight >}} +``` -This pipeline was inspired from [codeberg.org/Codeberg-CI/examples](https://codeberg.org/Codeberg-CI/examples/src/branch/main/Hugo/hugo.yml). +This pipeline was inspired from codeberg.org/Codeberg-CI/examples[^7]. For the CI runner to have push access to the repo @@ -147,18 +128,32 @@ to the repo And that's all! Congratulations, you've successfully migrated from GH Pages to Codeberg Pages. -You can brag on their matrix channel [#codeberg.org:matrix.org](https://matrix.to/#/#codeberg.org:matrix.org) that you're all set-up. +You can brag on their matrix channel #codeberg.org:matrix.org[^8] that you're all set-up. # Bonus tips -* Store your assets (ie. pictures, pdfs) with [`git-lfs`](https://git-lfs.github.com) +* Store your assets (ie. pictures, pdfs) with `git-lfs`[^9] so that your repo doesn't become more sluggish. I've configured mine for pictures -[.gitattributes](https://codeberg.org/dminca/pages/src/branch/hugo/.gitattributes), also -you can check the [README.md](https://codeberg.org/dminca/pages/src/branch/hugo/README.md) for `git lfs` initial instructions -* ignore build directory on your `hugo` branch, [for example](https://codeberg.org/dminca/pages/compare/f6791243ca942e940b7d71bdc3bb6ac031c8620e..3411f60c15a112af70760ba7f64e79fd5900bd3f) +.gitattributes[^10], also +you can check the README.md[^11] for `git lfs` initial instructions +* ignore build directory on your `hugo` branch, for example[^12] -{{< alert "lightbulb" >}} -Ignoring the build dir in your `hugo` branch will help keeping your commit +> Ignoring the build dir in your `hugo` branch will help keeping your commit history sane and in the event of introducing new content you won't have to commit a whole chunk of HTML, CSS and all other unrelated stuff, just your markdown file containing your blog post. -{{< /alert >}} + +--- +{data-content = "footnotes"} + +[^1]: https://github.com/dminca/dminca.github.io/commit/3f7244785acc93a47f849999fca78e4d19f522c3 +[^2]: https://codeberg.org +[^3]: https://codeberg.org/Codeberg-CI/request-access +[^4]: https://codeberg.org/Codeberg-CI/request-access/issues/new +[^5]: https://codeberg.org/Codeberg/org/src/branch/main/Imprint.md#sepa-iban-for-donations +[^6]: https://codeberg.org/dminca/pages/src/branch/hugo/.woodpecker.yml +[^7]: https://codeberg.org/Codeberg-CI/examples/src/branch/main/Hugo/hugo.yml +[^8]: https://matrix.to/#/#codeberg.org:matrix.org +[^9]: https://git-lfs.github.com +[^10]: https://codeberg.org/dminca/pages/src/branch/hugo/.gitattributes +[^11]: https://codeberg.org/dminca/pages/src/branch/hugo/README.md +[^12]: https://codeberg.org/dminca/pages/compare/f6791243ca942e940b7d71bdc3bb6ac031c8620e..3411f60c15a112af70760ba7f64e79fd5900bd3f diff --git a/content/posts/pi-hole-settings.md b/content/posts/pi-hole-settings.md index d50d5df..846a00b 100644 --- a/content/posts/pi-hole-settings.md +++ b/content/posts/pi-hole-settings.md @@ -46,8 +46,7 @@ happening again. 1. DHCP lease time: `1d` 1. check **Advertise DNS server multiple times** -{{< alert "lightbulb" >}} -**Advertise DNS server multiple times** is needed here otherwise during +> **Advertise DNS server multiple times** is needed here otherwise during DSL outages you'll suffer DNS issues, meaning if you try pinging the PiHole station you'll get @@ -57,8 +56,6 @@ ping: sendto: No route to host ``` There's no point to discuss what'll `nc -zv x.x.x.x 22` return. -{{< /alert >}} - # Modem (router) settings @@ -79,11 +76,9 @@ There's no point to discuss what'll `nc -zv x.x.x.x 22` return. 1. uncheck **DHCP-Server aktivieren** -{{< alert "triangle-exclamation" >}} -**DHCP-Server aktivieren** needs to be disabled because PiHole acts as DHCPv4 +> **DHCP-Server aktivieren** needs to be disabled because PiHole acts as DHCPv4 server. This is needed in order to have **client hostnames** shown in PiHole dashboard. -{{< /alert >}} # F.A.Q. diff --git a/content/posts/vim-for-hackers.md b/content/posts/vim-for-hackers.md index b745f8e..8b13087 100644 --- a/content/posts/vim-for-hackers.md +++ b/content/posts/vim-for-hackers.md @@ -8,10 +8,8 @@ tags: - tips --- -{{< lead >}} -`vim` is a double edged sword. Use it properly and you'll see the benefits, +> `vim` is a double edged sword. Use it properly and you'll see the benefits, don't use it properly and it's just going to cause more pain and sorrow. -{{< /lead >}} Handy vim cheatsheet: https://vim.rtorr.com @@ -29,9 +27,7 @@ append a comma at the end ``` -{{< alert "lightbulb" >}} -`'<,'>` assumes you selected text aka _visual select_ -{{< /alert >}} +> `'<,'>` assumes you selected text aka _visual select_ ```vim :'<,'>norm A, @@ -187,8 +183,6 @@ Ever had those pesky trailing whitespaces? How about those on a newline? Well, t ```vim :%s/\s\+$//e ``` -{{< alert "lightbulb" >}} -In a search,`\s` finds whitespace (a space or a tab), and `\+` finds one or more occurrences. +> In a search,`\s` finds whitespace (a space or a tab), and `\+` finds one or more occurrences. The following command deletes any trailing whitespace at the end of each line. If no trailing whitespace is found no change occurs, and the `e` flag means no error is displayed -{{< /alert >}} diff --git a/go.mod b/go.mod index 5070893..2d8a9f1 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,7 @@ module github.com/dminca/dminca.github.io go 1.18 -require github.com/jpanther/congo/v2 v2.12.2 // indirect +require ( + github.com/hanwenguo/hugo-theme-nostyleplease v0.0.0-20250120053207-cfbfe4e8ed13 // indirect + github.com/jpanther/congo/v2 v2.12.2 // indirect +) diff --git a/go.sum b/go.sum index 987e141..f1174ec 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ +github.com/hanwenguo/hugo-theme-nostyleplease v0.0.0-20250120053207-cfbfe4e8ed13 h1:zuaL/pxZcCxq6P7vmgJIcdBQALGVGSgn8JrHOoz8Ps0= +github.com/hanwenguo/hugo-theme-nostyleplease v0.0.0-20250120053207-cfbfe4e8ed13/go.mod h1:7MmCdJmDLYnE8hMLIX2lUpRayUHR/U81+HS1l0Q3TnU= github.com/jpanther/congo/v2 v2.12.2 h1:dr7oI/as+g+FJ6zVLZ3LSVOSRlsJjSsvTO6YP4zbOsQ= github.com/jpanther/congo/v2 v2.12.2/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M=