Enjoy the detours!

100DaysToOffload

The more I use git worktree, the more use cases I find. But what is git worktree? Basically, it takes a copy of your project and creates a new folder with the copy. So that you can work in parallel on the same project, without the need to stash or commit your current changes.

A good use case is, for example, when you are working on feature X and your boss found a bug in your application which needs to be fixed as soon as possible. You tell your boss: “No problem, I'll fix it right away”. You don't need to close your editor, stop the dev server or stash your changes. With git worktree you create a copy of your project into a new branch. Now you can work in parallel on both branches, without juggling with unsaved files.

One new use case, I've found, was while working on a client's project. Usually, we need a VPN to get data into the local dev server. My plan was, to have Storybook running and the main site on localhost, to compare components. The task here was, to rewrite the components from Styled-Components to Linaria CSS. Unfortunately, the VPN had connection issues and I required a different way. So, I've created a new worktree and ran a second Storybook server. Now I was able to compare the components because I had the new files running on one server and the old files on a second. 🥳

To get have an easier life working with git worktree, I've created some git aliases:

[alias]
    ....
    wt = worktree
    wa = worktree add
    wr = worktree remove
    wl = worktree list
    ...

65 of #100DaysToOffload

#log #git #dev

Thoughts? Discuss...

For the fifth time, I'm watching RPO, third this year. The last time I saw it, was also together with my wife. And surprisingly, she loved the movie too. Which I never expected. 😅

Before watching the movie for the first time, I've read the book. One of the few books I have inhaled and read in every free minute. (One of the other one is The Martian, where I also love the movie). Maybe it's not the best book from a professional standpoint, but it makes me happy, and this is what counts.

The same goes for the movie. It's not the best of its kind, but I just love watching it and letting it drag me into it's world. Every time I see it on my screen, I feel the urge to watch it. Like today. One of those rare times when I can just lie on the couch and watch, without feeling the guild of not being productive. 😎


64 of #100DaysToOffload

#log

Thoughts? Discuss...

This post is nothing special, no details or something, just a post that I'm happy with being done. The move was just a simple rewrite of the styles. No fancy tools used. Just transferred the styles one by one. So you could stop reading here. 😅

Weiterlesen...

For the last 2 years, I've worked on a MacBook for my clients and private projects. And I think I can finally compare the feeling of working with the MB and other Notebooks. Around 2015, I've bought my first ThinkPad, a T450s from Lenovo and used it for ~6 years (Before that, I was using a Schenker XMG Gaming Notebook, which was not the best for client work. Big and clumsy). I was happy with it and my Arch Linux installation. The only thing what bothered me, was the memory limit of 12gb. So I decided to buy the next ThinkPad, a T490s. That was the end of 2019 and the start of 2020. Which I then used until I bought the MacBook. The best thing was, that the Arch Linux installation was the same as on the T450s, I just moved the data onto a new bigger SSD.

Weiterlesen...

I thought of trying a little series and showing off some neovim plugins I use on a daily basis.

To start somewhere, I'll go alphabetically with autopairs.lua.

Config

return {
	"windwp/nvim-autopairs",
	opts = {
		fast_wrap = {
			highlight = "IncSearch",
		}, -- setup function and press <M-e> to use fast_wrap
		check_ts = true,
		map_c_h = true,
	},
}

For autopairs, I like it if it doesn't get in my way, and autopairs.lua does a good job here. The feature I love the most is fast_wrap. You simply hit <M-e and it will ask you where you want to wrap it. Simple and clean. :)

That's it. A plugin I wish would be shipped with Neovim already.


61 of #100DaysToOffload

#log #neovim

Thoughts? Discuss...

I’ve bought me a Christmas present, a refurbished steamdeck and it arrived today. After unpacking and putting in the charging cable, I’ve started the deck. Sadly, I’m stuck in an installation problem, and I’m unable to complete the setup. 😢

Read more...

Some days ago, my GitHub Copilot subscription ended, and I decided to switch to another paid auto-completion service.

Overall, I was ok with what GH Copilot delivered. But I heard a lot about the new kids in town and wanted to explore them. I was split between Codium and Supermaven and decided for Supermaven after their announcement that they will join Cursor.

Weiterlesen...

Yesterday on 14/12/24, we went to these 3 fantastic bands. And there was also Chelsea Grin, which we watched from the background.

Vitriol, their bass player had quit the tour before, so it was more of a duet. I felt a bit sorry for them, but they did an excellent job. In the last two songs, the guitar players' string has torn and while the drummer continued to play, the guitar player changed to another guitar. I wish they had a full line up and were not the first band on this evening. Despite everything, we had a lot of fun with them. 🤘

Despised Icon, last time I've seen them was at the sucks’n’summer 2010 festival. 14 years ago. What a long time. So much has happened since then. Also for the band. They split up for 4 years and made 2 records which I love and listen to regularly. Besides one song they did not play, I was completely satisfied with the Setlist. They even played Retina, one of my favorite songs of all their records. ❤️ I hope they will play more shows in Germany in the future. Maybe they release a record in 2025 and go on a big tour. Who knows? 🤷 I'd be all for it.

Weiterlesen...

tldr: Season 1 was a masterpiece and hard to beat. Season 2 was good in its own way and I had a good time with it. The difference is that S2 didn't catch me as emotionally as S1.

Weiterlesen...

Standing with my barefoot sandals in a stream of water, on stones.

Today is a typical Friday. Instead of slowing down and preparing for the weekend, my Fridays tend to be extra stressful. Everything collides with everything. Normally, on a Friday. I would say that Thursdays are the calmest here.

I had countless meetings today. So besides of working out and preparing a new feature for a client, I was unable to get done more. I've looked into #AdventOfTypescript, googled some things but then, I was out. Today's topic was good, and I wanted to know more about it and how it is solved, but I had no energy for it.

Apart from work on my notebook and clients, I've ordered some wood for our cellar to make some boxes to hide cables and heating pipes. It will arrive next Tuesday. I'm a bit excited. Later, a friend came by and inspected our stairs. They are +30 years old and in some places rotten. I feared that I have to replace one whole stair stringer. But I'm lucky. I need to replace only around 10-15 cm. 🥳

On Monday, our floor impact protection will arrive. Made of rubber cork, a beautiful material. So, my holidays look like I will be putting the pieces of the puzzle together.

Let's see if I will find time for the #AdventOfCode puzzles or my side projects. And I'm officially done with #AdventOfTypescript for 2024. Ah, also I've ordered a refurbished steamdeck, to add more on my plate for stuff I have no time for. 😅


56 of #100DaysToOffload

#log

Thoughts? Discuss...