Moonrise2473

joined 2 years ago
[–] [email protected] 1 points 1 week ago

questo il mio docker-compose.yml:

networks:
   cloudflared:
     external: true
   postgres:
     external: true

 services:
   museum:
     environment:
       - "ENTE_CREDENTIALS_FILE=/credentials.yaml"
     image: "ghcr.io/ente-io/server"
     networks:
       - "postgres"
       - "cloudflared"
     restart: "unless-stopped"
     volumes:
       - "/mnt/ssd/docker/ente/credentials.yaml:/credentials.yaml:ro"
       - "/mnt/ssd/docker/ente/custom-logs:/var/logs"
       - "/mnt/ssd/docker/ente/data:/data:ro"
       - "/mnt/ssd/docker/ente/museum.yaml:/museum.yaml:ro"

   photo-backup:
     image: "ente-photo-backup:latest"
     network_mode: "bridge"
     restart: "unless-stopped"
     volumes:
       - "/mnt/ssd/docker/ente/cli-data:/cli-data"
       - "/mnt/ssd/docker/ente/config.yaml:/config.yaml"
       - "/mnt/ssd/docker/ente/ente:/ente"
       - "/mnt/hdd/Backups/ente:/backup"

   postgresente:
     environment:
       - "POSTGRES_USER=pguser"
       - "POSTGRES_PASSWORD=pgpass"
       - "POSTGRES_DB=ente_db"
     image: "postgres:15"
     networks:
       - "postgres"
     restart: "unless-stopped"
     volumes:
       - "/mnt/ssd/docker/ente/postgres-data:/var/lib/postgresql/data"

   web-build:
     image: "ente-web-builder:latest"
     network_mode: "bridge"
     restart: "unless-stopped"
     volumes:
       - "/mnt/ssd/docker/caddy/ente-web:/output"
       - "/mnt/ssd/docker/ente/build-web.sh:/build-web.sh"

note:

  1. all'epoca il client web non lo facevano preconfezionato in una pratica immagine docker ma era "che ci vuole basta compilarlo da soli con node" - quindi feci un'immagine locale ente-web-builder che chiamo tutte le domeniche per rifarmi la compilazione, poi la servo con caddy. Ho accidentalmente eliminato il Dockerfile, quindi devo fare un po' di reverse engineering per capire cosa ho fatto l'anno scorso. Si può usare la loro immagine docker che però se ho capito bene usa node serve - un po' assurdo usare node per hostare delle pagine statiche. Da maniaco dell'efficienza lo rifeci con Caddy.

  2. photo-backup è un'immagine docker fatta da me che tutte le domeniche usa ente-cli per scaricare il backup di tutte le foto di tutti gli utenti. Ho accidentalmente eliminato il Dockerfile quindi devo fare un po' di reverse engineering per capire cosa feci l'anno scorso

  3. supponendo che il client web lo si pubblichi su photo.example.com,

  4. bisogna creare museum.yaml e scriverci

apps:
      public-albums:  "https://photo.example.com/"
e poi le key encryption, hash, jwt secret, i dati smtp, e poi volendo quali id utenti sono admin
  1. supponendo che museum lo si pubblichi su api.example.com,

  2. bisogna creare config.yaml e scriverci

endpoint:
      api: "https://api.example.com/"
  1. non uso minio ma un server s3 esterno, questo va configurato in credentials.yml

in pratica sono questi 4 componenti:

  1. museum: sono le API che fanno parlare le app web e android/ios/windows/linux col database e col server s3
  2. postgres: contiene le path su s3 di ogni immagine (da fare backup frequenti)
  3. web: sono pagine statiche html+javascript che mostrano le immagini disponibili sul server. Opzionale, volendo uno può anche usare solo le app
  4. minio: è un server s3 compatibile che mantiene tutti i dati. Si può anche usare garage o server di altri. Personalmente uso b2 di backblaze.

backup strategy:

  1. prima copio tutte le immagini di tutti gli utenti con ente-cli - le ritrovo tutte decriptate in jpg normali esattamente come furono caricate
  2. poi copio il contenuto del bucket s3 (che è criptato e quindi di per sé non è che sia utilissimo, è che in caso di disastro il recupero è più veloce non dovendo ricominciare da zero dal backup delle immagini sfuse)
  3. poi faccio il backup di postgres che contiene le chiavi di criptazione di ogni immagine contenuta nel bucket s3 (quindi se fai il backup del bucket ma senza postgres, è solo uno spreco di spazio, perché non lo puoi decrittare - anche qui è per velocizzare un eventuale recupero dopo disastro)
[–] [email protected] 1 points 1 week ago (4 children)

Ora guardo un attimo i docker compose yml che avevo fatto perché il nuovo metodo "esegui questo script scaricato da internet" semplifica tutto al punto in cui secondo me rende le cose più complicate, specialmente se si vuole pubblicare il servizio online, secondo me, visto che sono quattro servizi che devono essere esposti, le api a :8080, un server S3 a :3200 (possibile usare anche altri pre esistenti tipo idrive o B2), la pagina web statica a :3000 (possibile hostarla su GitHub Pages o altri server) e il database post gres. Io ho messo tutto in una rete docker separata e ci accedo via cloudflare tunnel. E non uso i volumi docker per facilitate il backup

[–] [email protected] 1 points 1 week ago (1 children)

Lo fai da localhost, giusto? Non da app

[–] [email protected] 1 points 1 week ago (8 children)

Il primo account creato viene automaticamente promosso ad admin

E siccome all'inizio probabilmente il server SMTP non è configurato, il codice di verifica email si trova nei log (docker log nome container)

[–] [email protected] 1 points 1 week ago (10 children)

permette le istanze private, c'è da fare tipo 6 tap sul banner di login mi pare, tipo come si abilita la modalità developer in android

[–] [email protected] 3 points 1 week ago

Metal piece with many pointy pieces and neodymium magnets in a microwave? The sparks will damage the item and the oven. And won't melt the plastic

[–] [email protected] 1 points 1 week ago

Ah right, I set many remindme but my account is gone

[–] [email protected] 1 points 1 week ago (12 children)

Secondo me si, usa pochissime risorse su server

[–] [email protected] 3 points 1 week ago

Xitter investors got scammed and there was no way that xitter would be able to pay 1 billion per year in interest. Better having someone else holding the bag

[–] [email protected] 17 points 1 week ago (2 children)

Russia can't even easily annex confining countries with lots of roads and rails, how they would even try to get to Greenland with all those NATO countries in the middle.

China would even need to circumnavigate the Americas to reach it

I feel there's another dictatorship that's more dangerous than those two

[–] [email protected] 8 points 1 week ago

Now I understood why a few weeks ago it was said that xitter was back to the old ultra overvalued valuation even with less revenue and less users. Because he found some other idiots to pay for it hoping to hit big when and if does an IPO

 

Even if the ducks killed weren't from a protected species, anyone in Italy is required to have a hunting permit, even on private lands. This permit is almost impossible to get for a foreigner because it's an exam with a lot of extremely specific questions in Italian

 

1000 euro di penale di partenza anticipata su un soggiorno già pagato in anticipo (un decimo di quello) mi pare fuori dal mondo

Se uno va via prima pur avendo già pagato interamente con formula non rimborsabile, per l'albergo dovrebbe essere una pacchia, no? La stanza si libera prima e vieni pagato per un servizio non usufruito

C'è qualcosa che mi sfugge?

 

There's a new snapshot button in the web ui but then... how to access them? And with snapshot it looks like "differential save state" and not full backup, right?

I was unable to find any kind of documentation on this

 

4 euro a bonifico???

Possono fare questo? In teoria l'intenzione del legislatore era quella di ottenere l'effetto contrario

 

While in the past doing a reprint of a book, movie or game was expensive and wasn't worth if something wasn't popular, now selling something on a digital store has only a small initial cost (writing descriptions and graphics) and after that there's nothing more. So why publishers are giving up on free money?

I thought to those delisting reasons:

  1. Artificial scarcity. The publisher wants to artificially drive more sales by saying that's a limited time sale. For example that collection that included sm64. super Mario Galaxy and super Mario sunshine on switch. The greedy publisher essentially said "you only have 6 months to get this game, act now" and people immediately acted like "wow, better pay $60 for this collection of 3 old games, otherwise they'll be gone forever!” otherwise they would have been like "uhm, i liked super Mario sunshine but $60 for a 20 years old game? I'll think about that"

  2. Rights issues. For books the translation rights are often granted for a limited time; same for music in games; or if it's using a certain third party intellectual property. Publisher might decide that the cost for renewing the license is too high compared to projected sales, while the copyright owner instead still wants an unrealistic amount of money in a lump sum instead of just royalties. Example is Capcom DuckTales remastered, delisted because Disney is Disney.

  3. Not worth their time. Those sales need to be reported to governments to pay taxes and for a few sales, small publishers might prefer to close business rather to pay all the accounting overhead. Who's going to buy Microsoft Encarta 99?

  4. Controversial content: there are many instances of something that was funny decades ago but now is unacceptable. Publisher doesn't want to be associated with that anymore

  5. Compatibility issues. That game relied on a specific Windows XP quirk, assumed to always run as admin, writing their saves on system32, and doesn't work on anything newer. The code has been lost and they fired all the devs two weeks after the launch, so they're unable to patch it.

In all those cases (maybe except 5), the publisher and the copyright owners decided together to give up their product, so it should be legally allowed to pirate those products.

If I want to read a book that has been pulled from digital stores and is out of print, the only way to do is:

  1. Piracy (publisher gets $0 from me)
  2. Library (publisher gets $0 from me)
  3. Buying it from an ebay scalper that has a "near mint" edition for $100 (publisher gets $0 from me)

And say that I really want to play super Mario sunshine. Now the only way is to buy it used, even if they ported it to their latest game console and it would literally cost them nothing to continue selling it. But if I buy it used, Nintendo gets the exact same amount of money that they would if I downloaded it with an "illegal" torrent.

In short: they don't want the money for their IP? Then people that want to enjoy that IP should be legally allowed to get it for free

8
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

I have one code for this https://www.gog.com/en/game/duck_paradox

someone has better reflex than mine and wants to play this?

 

In my (European) country now we can have a digital copy of the driving license on the phone. It specifically says that it's valid to be presented to law enforcement officers during a check.

I saw amazed in the beginning. They went from limited beta testing to full scale nationwide launch in just two months. Unbelievable. And I even thought "wow this is so convenient I won't need to take the wallet with me anymore". I installed the government app and signed up with my government id and I got my digital driving license.

Then yesterday I got stopped by a random roadblock check and police asked me my id card. I was eager to immediately try the new app and show them the digital version, but then because music was playing via Bluetooth and I didn't want to pause it, i just gave the real one.

They took it and went back to their patrol for a full five minutes while they were doing background checks on me.

That means if I used the digital version, they would had unlimited access to all my digital life. Photos, emails, chats, from decades ago.

What are you are going to do, you expect that they just scan the qr code on the window, but they take the phone from your hand. Are you going to complain raising doubts? Or even say "wait I pin the app with a lock so you can't see the content?"

"I have nothing to hide" but surely when searching for some keywords something is going to pop-up. Maybe you did some ironic statement and now they want to know more about that.

And this is a godsend for the secret services. They no longer need to buy zero day exploits for infecting their targets, they can just cosplay as a patrol and have the victim hand the unlocked phone, for easy malware installation

Immediately uninstalled the government app, went back to traditional documents.

 

and because i'm a lazy ass i didn't read the specs but just read the search engine result.

I also assumed that because 6 years ago i bought a $50 hp envy and it had wifi, this much expensive one is also going to have it

Result: that $250 printer doesn't actually have wifi

 

There's a certain "people's republic" where they introduced a new government signature on all android apps. For "safety", as they "check" the apps for you 😉

more of this ICP scam

For now it can be bypassed after three pages of scary warnings but in the future?

Maybe it could be a big reason of why they're liking harmony os that much, you don't need to manually approve android apps if android apps are completely unsupported

 

I hate this scale, it says low battery and shuts off after just 3 months of sitting in the drawer. It infuriates me that there's still a lot of energy in the battery, I can use that in remote controls with no issues

If there's enough battery to say "low battery", then there's enough battery to show the measurements!

 

I went to install gsam battery monitor on a new phone and it looks like it has been delisted recently.

Does anyone has more info on that? It was a staple on my phones since almost a decade...

Any alternative that shows a graph with rate of charge/discharge?

view more: ‹ prev next ›