[-] vvv@programming.dev 1 points 11 hours ago

that's a good call actually. I got pretty hung up on domain objects being mostly data classes, but one approach is to have them perform business logic themselves.

[-] vvv@programming.dev 7 points 11 hours ago

Not a security scientist, but in my interpretation, it's the "categories" of the factors that matter. Ideally, you use some two of three of:

  • something (only) you know - generally represented by passwords
  • something (only) you have - most commonly represented by some device. you prove that you have the device by providing a token only that device can generate.
  • something (only) you are - generally represented by biometrics

the goal then is maintaining the "only"s.

if you tell someone your password, or they see you type it in, or they beat it out of you with a wrench, it's no longer something "only" you know, and it is compromised.

if you use the same password on two websites, and one website is compromised, the password is compromised.

OTPs from a key fob or yubikey or something are similarly compromised if the device that provides them is left out in public/lost/stolen/beaten out of you with a wrench.

biometrics are again, are compromised if it's not "only" you with access to them - someone scans you face while you're asleep, or smashes your finger off with their wrench.

having multiple factors in the same category, like having two passwords, or two otp tokens, or two finger prints, doesn't significantly improve security. if you give up one thing you remember, it's likely you'll give up more. if one fob from your keychain is stolen, the second fob on that keychain is of no additional help.

you can start shifting what categories these things represent though.

if you write down your password in a notebook or a spreadsheet, they become thing you have.

OTPs can become something you know if you remember the secret used to generate them.

knowing many different things is hard, so you can put them in a password vault. the password vault is then something you have, which can be protected by something you know. so although your OTPs and passwords are in one place, you still require two factors to get access to them.

you still need to protect your "only"s though. and don't put yourself in situations where people with wrenches want your secrets.

[-] vvv@programming.dev 4 points 13 hours ago

I use passwordstore.org/ as my password manager, including for my otp codes. It's backed by a git repo. I get a backup of it on every device it is cloned to.

[-] vvv@programming.dev 4 points 3 days ago

(often abbreviated BS)

[-] vvv@programming.dev 1 points 3 days ago

Thanks for that, I think Engines is winning in my mind so far!

15

Somewhere between API resources, queue workers, repositories, clients and serializers there is a class of ... classes/modules that does the needful. Gun-to-my-head, I would call them "services" but I'm looking for a less overloaded term. Maybe capabilities? Controllers? Pick a term from the business domain? What do you call them?

[-] vvv@programming.dev 19 points 4 days ago

Be careful, if you get a .pizza, you are only legally allowed to spend the donations on pizza.

[-] vvv@programming.dev 12 points 6 days ago

Further, in terms of safety, having a large display built into your dash showing you navigation is much better than a small device you jerryrig onto a vent or something. It's easier to see via your peripheral vision, and won't put you in a situation where you need to go find it off of the floor when it falls off.

[-] vvv@programming.dev 15 points 1 week ago

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 8 points 1 week ago

I can't believe they didn't with go with BatShIt. it's right there! they were SO close!

[-] vvv@programming.dev 57 points 2 weeks ago

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

grep -r --include='*.txt' 'somename' .
[-] vvv@programming.dev 2 points 3 weeks ago

I just started using this at $jorb. Check out their "ui-mode" is all I'm going to say about that.

[-] vvv@programming.dev 5 points 3 weeks ago

Better than that, git config supports conditional includes, based on a repo URL or path on disk. So you can have a gitconfig per organization or whatever, which specifies an sshCommand and thus an ssh key.

80
submitted 2 months ago* (last edited 2 months ago) by vvv@programming.dev to c/selfhosted@lemmy.world

Hi! I'm swapping my daily android phone for the nth time today and going through my set-up "check-list". As apps are updating/installing, I thought I'd check in with the hive-mind, what are you all doing to make the process easier? Maybe you know of a way to self-host some sort of android profile server? I'll post my process + list of goals & gripes below and if you have any tips or suggestions about what I can do better, I'd love to hear them!!

Current Process

  • flash clean rom
  • walk through the setup process
  • enable developer mode + adb
  • go through default app list disabling/uninstalling crap i don't want
  • use 'fdroidcl' to install all my fdroid apps
  • adb push a gpg private key to import into OpenKeychain
  • generate a ssh keypair in Password Store, put public key on my server via ConnectBot, clone passwords repo
  • log into firefox sync
  • log into joplin
  • configure fairmail
  • configure davx
  • log in to google account
  • download play store apps I was missing
  • go through apps one by one, logging in to accounts + doing configuration
  • deal with fucking whatsapp
  • hold old phone + new phone side by side and made sure i got everything

Goals & Gripes

App Installation

fdroidcl helps a LOT here, i can have a list of my minimal required packages - password management solution, browser, and notes get installed and it solves a lot of bootstrapping problems for me. I never need to do the dance of opening chrome, downloading fdroid, giving chrome install permissions, installing fdroid, etc.

that said, it is /slow/ and obviously limited to installing apps from fdroid repositories. maybe the slowness i can solve with self-hosting an fdroid repo, but i'm still stuck with having to install a bunch of apps manually either through aurora store, or play store.

App configuration

If i could push in arbitrary app configurations i would be sooooo happy. certain apps have config export/import, like my launcher, but that's far from all of them. i've tried a number of "backup" options, like Titanium, but obviously they don't work without root and don't always work /with/ root, especially going across devices. I've vaguely considered using Appium for this but ... ehhhh.

De-googling

Okay, so I can probably solve the apk problem somehow... I can solve the contacts sync... but I really like android auto, and that's a non-starter without a system google account afaik.

Whatsapp

i've never once managed to successfully move whatsapp to another device and not lose my chat history. it starts restoring from a backup, fails, and kicks me into being logged in without any chance of a restore.

Edit: oh and if you have any suggestion that'd make me not hate re-pairing wearos watch... 🥺

44
My carryonable 3d printer (blog.ofvlad.xyz)
submitted 9 months ago by vvv@programming.dev to c/3dprinting@lemmy.world

I've posted this to reddit before, but the post has gotten lost among an automod flurry. I've got some longer travel coming up and this thing has been on my mind again, so I'm looking for some suggestions!

23
submitted 11 months ago by vvv@programming.dev to c/asklemmy@lemmy.ml

An example: https://www.thenextdroid.com/topics/tutorials/root/. This Ellis Gibson person. Very good with the find/replace button.

Maybe you know of a browser extension to hide all these?

view more: next ›

vvv

joined 1 year ago