vvv

joined 2 years ago
[–] vvv@programming.dev 2 points 1 year ago (1 children)

Are you using PersistentVolumes? If your storage class supports it, looks like there's a volume snapshot concept you can use, have you looked into that?

[–] vvv@programming.dev 6 points 1 year ago (3 children)

Not sure what you're doing, but if we're talking about a bog standard service backed by a db, I don't think having automated reverts of that data is the best idea. you might lose something! That said, triggering a snapshot of your db as a step before deployment is a pretty reasonable idea.

Reverting a service back to a previous version should be straightforward enough, and any dedicated ci/cd tool should have an API to get you information from the last successful deploy, whether that is the actual artifact you're deploying, or a reference to a registry.

As you're probably entirely unsurprised by, there are a ton of ways to skin this cat. you might consider investing in preventative measures, testing your data migration in a lower environment, splitting out db change commits from service logic commits, doing some sort of blue/green or canary deployment.

I get fairly nerd-sniped when it comes to build pipelines so happy to talk more concretely if you'd like to provide some more details!

[–] vvv@programming.dev 2 points 1 year ago (1 children)

Not even Chrome is blocking some of the add-ons...

is that something you know for sure? or has Google quietly complied with similar requests, without making a statement like Mozilla has here?

[–] vvv@programming.dev 4 points 1 year ago

I do this with my xreal glasses sometimes when washing dishes or whatever. Connected to phone in my pocket with a desktop mode, set a black wallpaper, and drag the video into a corner.

It's nice for situations like that, where you're doing something with your hands and can't reasonably place a screen in a way where you wouldn't have to constantly strain your neck to look at it.

[–] vvv@programming.dev 4 points 1 year ago* (last edited 1 year ago)

I use these two vim plugins for the same functionality without leaving $EDITOR:

I've also started dabbling with using fzf in scripts for the team to use. Don't sleep on the --query and --select-1 flags!

[–] vvv@programming.dev 5 points 1 year ago* (last edited 1 year ago)

is that more or less cursed than cat image.img > /dev/whatever?

[–] vvv@programming.dev 8 points 1 year ago (4 children)

dd if=image.img of=/dev/disk/flashdrive is usually all you need

[–] vvv@programming.dev 6 points 1 year ago

Definitely not what you're talking about, but still: https://www.destroyallsoftware.com/talks/a-whole-new-world

[–] vvv@programming.dev 1 points 1 year ago

it could explicitly be a reasonable deterrent. if you double your price, but lose half your customers, you've made the same amount of money for half the work.

[–] vvv@programming.dev 6 points 1 year ago* (last edited 1 year ago) (3 children)

"Hi, I just sent the ransom payment to the Bitcoin address you provided.
"Now you'll unlock my data, right?
"...... right?"

[–] vvv@programming.dev 16 points 1 year ago (1 children)

just to give you the term to search for, these types of applications are called snippet managers. for example, https://snibox.github.io/

there's a ton of them around. I don't have a particular one that I recommend, since it's not something I use in my workflow.

[–] vvv@programming.dev 57 points 1 year ago (1 children)

grep -r exists and is even more faster and doesn't require passing around file names.

grep -r --include='*.txt' 'somename' .
view more: ‹ prev next ›