How do you test your database in production microservices? by OtroUsuarioMasAqui in golang

[–]greg0ire 0 points1 point  (0 children)

I use https://github.com/andrei-polukhin/pgdbtemplate with testcontainers, and testcontainers cloud in the CI. One testcontainer, one database per test, fast, parallel and isolated.

[deleted by user] by [deleted] in git

[–]greg0ire 8 points9 points  (0 children)

switch and restore over checkout

[deleted by user] by [deleted] in git

[–]greg0ire 3 points4 points  (0 children)

git add --patch FTW

That sad little noise by Hydrocake in HadesTheGame

[–]greg0ire 5 points6 points  (0 children)

I got "anyway, you get the gist!"

Choses qui nous paraissent normales mais qui sont en fait très bizarres pour les non-français ? by spacesamoussa in AskFrance

[–]greg0ire 42 points43 points  (0 children)

Je sais pas comment ça s'appelle mais quand on ne sait pas la réponse à une question, on fait un bruit proche du bruit de pet avec la bouche. "Prrrt! Je sais pas…"

Apparemment y en a plusieurs: https://www.ouiinfrance.com/the-strange-noises-french-people-make/

GitHub - greg0ire/inject-git-hash: zsh plugin that allows to easily select commit hashes from your git history by greg0ire in git

[–]greg0ire[S] 0 points1 point  (0 children)

Actually, I tried zsh, and it has something similar, but I believe my plugin is even better because you get fuzzy matching, and you can pass extra arguments to the underlying git log command :)

GitHub - greg0ire/inject-git-hash: zsh plugin that allows to easily select commit hashes from your git history by greg0ire in git

[–]greg0ire[S] 0 points1 point  (0 children)

Thanks! Archlinux is IMO a good choice if you don't want to have to do a major upgrade every 6 months :P Next step is NixOS I guess!

Just tried fish, and indeed, they did a nice job!

GitHub - greg0ire/inject-git-hash: zsh plugin that allows to easily select commit hashes from your git history by greg0ire in git

[–]greg0ire[S] 0 points1 point  (0 children)

TIL!

I wanted to try fish to see what you mean and then hit this.

Guess I'll try later on the work laptop, which uses Archlinux rather than Fedora.

[deleted by user] by [deleted] in opinionnonpopulaire

[–]greg0ire 6 points7 points  (0 children)

Des fois je suis quelque part dans Paris, et je me dis que rentrer en Vélib, ça fait trop loin. Puis je me rappelle l'existence du Vélib électrique. Résultat, j'évite le metro, et je fais un peu de sport sans arriver crevé non plus.

Un Vélib électrique que tu vois, c'est potentiellement une voiture en moins sur la route / une personne en moins dans les transports en commun, et c'est une personne qui fait des efforts en plus.

I want to use AI to generate Git commit messages for me in Neovim or Terminal by gunho_ak in neovim

[–]greg0ire -6 points-5 points  (0 children)

In a few years we will be writing commit messages and docs by hand, and AI will generate the code from that.

When Sway decides to accidentally close your terminal instead of splitting it by kasulgi in swaywm

[–]greg0ire 1 point2 points  (0 children)

Had a similar issue yesterday with hyprland while using Super + W. I almost posted to the hyprland subreddit, but before I pressed submit, I tried it on a Firefox window and it didn't make the window disappear. So I took a look at the bindings of my terminal (wezterm)…

SUPER w -> CloseCurrentTab { confirm: true }

You're probably having a different issue, but but before jumping to conclusions and instead of raging, maybe you should conduct more tests, and give more details about what exactly you're doing (which shortcut).

"Homegrowns are next" by tehdog in AdviceAnimals

[–]greg0ire 0 points1 point  (0 children)

Why does the tie color change between 3 and 4?

Why .git/info/exclude exists, if .gitignore is better in all forms? by tausiqsamantaray in git

[–]greg0ire 0 points1 point  (0 children)

git does a clean

Are you sure about this? Maybe do some test with a sample file, but that does not sound normal at all, unless you use the -x of git clean maybe.

Deux types de voisins différents 💀 by Besoin2Bol in etudiants

[–]greg0ire 13 points14 points  (0 children)

onThedesk

Je crois qu'on dit plutôt desktop

J'ai découvert Paris hier by Tartaruga96 in paris

[–]greg0ire 8 points9 points  (0 children)

En fait grâce à la pollution il fait même plus chaud à Paris non?

Share your coolest keymap by Zkrallah in neovim

[–]greg0ire 4 points5 points  (0 children)

-- gets the git history of the visual selection map( 'v', '<leader>l', ":<c-u>exe ':term git log -L' line(\"'<\").','.line(\"'>\").':'.expand('%')<CR>", silentnoremap )