Comments

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Dirk, to asklemmy in What can a senior desktop support tech do who is burned out?
@Dirk@lemmy.ml avatar

With Docker and Linux you could check the opportunities in the field of IT operations.

Dirk, to memes in Guten Tag Everybody
@Dirk@lemmy.ml avatar

So many? That’s amazing!

Dirk, to memes in pwetty pwease
@Dirk@lemmy.ml avatar

Casual reminder that staffing and scheduling is the manager’s job

Quoted for emphasis and affirmation.

Dirk, (edited ) to linux in What's the best way to have a .bashrc that I can use throughout systems?
@Dirk@lemmy.ml avatar

I personally use yadm

I just use some code and Git.


<span style="color:#323232;">if [ ! -z "$PS1" ]; then
</span><span style="color:#323232;">    repo="${XDG_CONFIG_HOME}/dotfiles/"
</span><span style="color:#323232;">    br='origin/main'
</span><span style="color:#323232;">
</span><span style="color:#323232;">    title="e[1me[31mn ░▒▓e[7m    %s    e[27m▓▒░e[0mnn%snn"
</span><span style="color:#323232;">    status="$(git --git-dir="$repo" --work-tree="$HOME" status -s)"
</span><span style="color:#323232;">    diff=$(git --git-dir="$repo" --work-tree="$HOME" diff --stat --cached $br)
</span><span style="color:#323232;">
</span><span style="color:#323232;">    [ -n "$status" ] && printf "$title" "Uncommited changes!" "$status"
</span><span style="color:#323232;">    [ -n "$diff" ] && printf "$title" "Not yet pushed commits!" "$diff"
</span><span style="color:#323232;">
</span><span style="color:#323232;">    unset title status diff br
</span><span style="color:#323232;">    alias dotfiles="/usr/bin/git --git-dir=$repo --work-tree=$HOME"
</span><span style="color:#323232;">fi
</span>

The code runs when it’s an interactive shell with a PS1 prompt and just checks if any of the tracked files have changed or if there are commits that are not pushed. By configuration I ignore all untracked files. If something has changed or wasn’t pushed it always prints an annoying message.

Whenever I want to do something I use dotfiles … instead of git …, everything else works the same.

Dirk, to memes in I'm tired, Boss
@Dirk@lemmy.ml avatar

How dare you!

Dirk, to memes in This IS my final form
@Dirk@lemmy.ml avatar

Did someone say Cobol?

Dirk, to memes in Trust me
@Dirk@lemmy.ml avatar
Dirk, to asklemmy in So how does lemmy make money?
@Dirk@lemmy.ml avatar

the lemmy.world guy had to upgrade servers at least twice during the boom

It’s their fault, though. You could either throw money at it to gain more and more power over users, or you embrace the federation and disable new registration at a certain amount of users.

Dirk, to asklemmy in What are Lemmy's unwritten rules?
@Dirk@lemmy.ml avatar

The general public on Lemmy.

Dirk, to linux in What are some interesting devices powered by Linux?
@Dirk@lemmy.ml avatar

So we can download the sources?

Dirk, to selfhosted in Alternative github frontends?
@Dirk@lemmy.ml avatar

+1 for Forgejo. Runs butter smooth even on not so high-end machines. You can even mirror your GitHub repos.

Plus: It is not owned by a for-profit organization.

Dirk, to memes in most normal wikipedia photo
@Dirk@lemmy.ml avatar

Sweet and creamy!

Dirk, to asklemmy in What password manager do you recommend?
@Dirk@lemmy.ml avatar

Since you don’t want to selfhost anyway just use the one built-in to your browser. Nowadays you can set up synch with a password

Dirk, to linux in What happens when Linus dies/retires?
@Dirk@lemmy.ml avatar

[everyone liked that]

Dirk, to memes in screaming into the void...
@Dirk@lemmy.ml avatar

Skeletons are pretty cool though.

Then you might be excited to hear that there is at least one skeleton inside your body for your whole life.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #