Skip to main content

Posts tagged with #Bash

Recent Posts (Page 1)

Photo by Roman Synkevych via Unsplash

Bash Function to Remove Github Ghost Notifications

Every now and then my inbox in Github shows x total unread updates without having actual updates. When I click on it, there are no unread notifications. This is a known issue and it’s been around for a while. The notifications are called “ghost notifications” and they are not visible in the UI.

Photo by Roman Synkevych via Unsplash

Git stashes for ADHDers

If you are like me you probably typed more than once git stash and meant git stash list while working on many different things at the same time. If not, then feel free to go somewhere else and don’t waste your time here :]

Refactoring Gohugo Aliases

Refactoring Gohugo Aliases

GoHugo’s documentation recently started to show functions and methods with their “real” name, instead of the alias used in the GoHugo codebase. Did you for instance knew that apply is actually collections.Apply and append is collections.Append? Knowing these exact names seems to be important to me, because I think it’s easier to understand what functions are connected and what features are available.

Versions of versions

Howto get the next semver version number in a bash script

In my projects, I often encounter situations where I need to update the version number of the project before making a release. I follow the Semantic Versioning (Semver) standard for versioning. In this blog post, I’ll demonstrate how to retrieve the next Semver version number using a Bash script.

Photo by Roman Synkevych via Unsplash

Git's missing status Hook

Despite its many advantages and nifty features of Git, there’s one feature it lacks: a status hook. In Git, hooks are scripts that I can execute automatically at specific points during the version control process. These hooks perform custom actions, such as running tests, enforcing coding standards, or sending notifications, at various stages like pre-commit, post-commit, and post-merge.

Photo by Vincent van Zalinge via Unsplash

Changes to Hugo's debugging abilities on the CLI

Hugo in version 0.114.0 finally introduced the changes I wrote about a while back. The hugo command on the CLI now dropped the –log and –verboseLog flags and deprecated the –verbose and –debug flags. Instead, it now uses the –logLevel as an indicator of verbosity.

Back to top
Back Forward