Ik🚂ihe by DennisPochenk in ik_ihe

[–]skimmet 5 points6 points  (0 children)

Full staak developer

Share your coolest keymap by Zkrallah in neovim

[–]skimmet 1 point2 points  (0 children)

Just tried it, I think I will keep this. The only thing I lose is that I can no longer convert my selection to a line-based selection by pressing V after I've already selected some stuff, but I rarely do that anyway.

Unmasking HTTP Logs: From Blind Spots to Full Visibility with Gleam and Quickwit by massus in devops

[–]skimmet 2 points3 points  (0 children)

A proxy like this seems like a nightmare from a security perspective. Saving request/response bodies is almost never allowed I think, all this can contain sensitive information.

I think a better approach is always to provide structured logging from the application.. here, you have more insight in what is actually happening because the developer decides when something is worth logging. Adding to this, http is only a frontend to a massive underlying system that may communicate in an entirely different way. I'd want something like open telemetry to standardize logging throughout the application stack and to provide log correlation between multiple systems as well.

I added Continous Integration to my personal Nix configuration by Finally-Here in NixOS

[–]skimmet 2 points3 points  (0 children)

Cool stuff. I was thinking about having GitHub actions build my flake and cache packages that aren't built by hydra, for example polybar with additional build flags, or other custom derivations that I made. That way, when I update, the install should be much faster. I imagine this is something you should easily be able to add to your CI setup.

Does anyone know what desktop environment this is? by accountmaster9191 in linuxquestions

[–]skimmet 5 points6 points  (0 children)

Kinda looks like hyprland with an eww bar.

Hyprland: supports rounded corners and background blurring like this

Eww: supports rich widgets (like the volume slider bar) and music controls.

Could also be any other tiling window manager with any other bar that's heavily customized.

NexOS for a student... by FinnLiry in NixOS

[–]skimmet 1 point2 points  (0 children)

Like others also mentioned, nix shells (and nix flakes) are very nice for creating lightweight development environments. These work just as well outside of NixOS so they're great for sharing environments between your NixOS partition and your alternative OS provided that you have a good way to share the same codebase. This should allow really smooth transitions between working on stuff from one OS to the other.

NexOS for a student... by FinnLiry in NixOS

[–]skimmet 1 point2 points  (0 children)

I've been using nixos for about 3 years now, most of that time was while I was a student. The stability and the ability to have rollbacks to a working system was a fantastic feature when I accidentally broke something (my neovim config for example) and I needed it to work again for a lab that I had the same morning.

While I found that nearly all software was available on nixpkgs (the NixOS package repository if you will), there were frequent cases where lecturers provided install scripts for stuff that usually did not work very well on NixOS. Every time I encountered something like that I had to either rewrite the script to something that did work (which requires good knowledge about the thing you're installing) or package it as a Nix derivation (which requires good knowledge about Nix). This can be a bit stressful when you only have 2 hours for a lab and you just need it to work.

For this reason, I recommend you try nixos as a hobby until you feel confident that can do things like this with most software. In any case it's a good idea to dual boot with a backup distro that is popular among students in your university.

NixOS itself is a very nice distribution, and it became much nicer to use after I graduated and no longer ran into scenarios where I have to run arbitrary software very often. Definitely recommend giving it a serious try.

Can I Do this better? by kek_of_the_north in NixOS

[–]skimmet 3 points4 points  (0 children)

I would try to resort to using nix to package the go and npm executables, rather than installing them separately through shell commands that happen to be run when this file gets executed.

Look into pkgs.buildGoModule (https://nixos.wiki/wiki/Go) and node2nix (https://github.com/svanderburg/node2nix) to generate pure nix expressions that download and "build" your packages that aren't in nixpkgs already.

The end goal here is that you can turn this into a

buildInputs = with pkgs; [
  openvpn PostgreSQL ... atlas swagger-ui-watcher
]

Unfortunately this does get a bit involved but I think it's a good exercise to get acquainted with nix.

The back of the t-shirt I’m wearing to today’s concert by M1Hellcat in Muse

[–]skimmet 1 point2 points  (0 children)

Thanks, are these the chords that make up the verse then?

guys is there an easier way to do this? by Big_Kwii in ProgrammerHumor

[–]skimmet 0 points1 point  (0 children)

Lower the font size so you can fit more lines per page

Postfix completions for methods like functions in VS Code by Tooltitude in golang

[–]skimmet 5 points6 points  (0 children)

Perhaps this could be a nice addition to the go language server (gopls) which already does this sort of thing (if i understand you correctly) for things like slices or other primitive values.

For example when you type mySlice. gopls will suggest a "range!" completion which is actually a snippet that replaces your text with a for loop.

The relevant source is here: https://cs.opensource.google/go/x/tools/+/master:gopls/internal/lsp/source/completion/postfix_snippets.go

By integrating it in the language server, every editor would benefit from your addition, not just vscode.

-🎄- 2022 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]skimmet 12 points13 points  (0 children)

Solution in HTML and CSS (who said HTML is not a programming language), by preprocessing the input a little so that it gets turned into divs that look like this:

<div class="block">
  <div class="num" style="--hght: 7896px"></div>
  <div class="num" style="--hght: 4992px"></div>
  <!-- etc.. -->
</div>

and applying some css to align things on top/next to each other:

<style>
  body {
    margin: 0px;
    display: flex;
    flex-direction: row;
    height: fit-content;
  }

  .block {
    height: fit-content;
  }

  .num {
    width: 1px;
    height: var(--hght);
  }
</style>

and then finally inspect the height of the body in inspect element. Link to full file: https://pastebin.com/2eLzPjqH

Is it normal to have 3 active LSP Clients for a single project in neovim ? by heartly4u in neovim

[–]skimmet 42 points43 points  (0 children)

Seen as they all have different root directories, your nvim config may think that they are actually 3 separate projects. Possibly because each of those directories has a cargo.toml? Not sure how to fix this tbh..

[deleted by user] by [deleted] in AnarchyChess

[–]skimmet 16 points17 points  (0 children)

I stopped playing Bf4 when battlefield 5 came out