Hacker Newsnew | past | comments | ask | show | jobs | submit | bndw's commentslogin

There is, it's called the Bitcoin Lightning Network.


dang, my bad. I did a pretty quick (and large) refactor this morning and must have broke it.

EDIT: it fetches historical games when the session is established. The bug is that after you complete the game, the call to renderStats is still using the old games list; it needs to refresh the list so it includes the game you just completed. I'll fix this over the weekend. Cheers!


Author here. I had this idea a couple of weeks ago and wanted to test it out. The code is written in Go and open source:

https://github.com/bndw/wordle


IIRC if the word for example has one letter 'e' when I type the answer with two 'e's and one is green the second should not be yellow.


I use a NAS, raspberry pi, and s3 with the following workflow:

Photos are imported from SD card using a script. This script creates a new directory, captures some metadata, copies the photos in and creates thumbnails. This directory is rsynced to the NAS then encrypted, compressed and sent to s3. Nightly, from another location a raspberry pi with a large encrypted disk rsyncs the entire NAS.

All viewing and editing of photos is done against the NAS, and any changes are picked up nightly by the pis. The s3 copy acts as an immutable original.


Awesome work, glad you guys are still at it.


Does Codespaces support offline development? Is an Internet connection now required 100% of the time to write code?


It's still a git repo in the end, so you can use all the usual tools to work with it locally.

You can also use https://code.visualstudio.com/docs/remote/containers to run an identical container locally to reproduce the environment, and then connect to it.


Is the server component running at api.ots.sniptt.com open source? I looked through the org's repositories and wasn't able to find it.


It is not at the moment but we are considering making the server + maybe infra repos public in the future, most likely when we've agreed on and implemented some sort of self-hosted option(s).

We will probably write a blog post or two about how we've designed the API + infra around it as there are some interesting topics to be covered.

One of the goals was to also have fun and experiment with a few approaches we've been wanting to use but could not on our daily jobs.

For reference, everything is on AWS and we are using AWS CDK (TypeScript), having moved away from serverless.com recently.

We are ONLY using managed services/resources which are "fully serverless" (API GW, WAF, Dynamo + Dynamo Streams, Lambda, EventBridge, ...) - to save cost, to minimise waste, to reduce ops, etc.

Hope this helps, happy to provide more details.


If anyone is curious like I was, here's a quick review of what the linked code does:

- Reads plaintext input from stdin

- Symmetrically encrypts the plaintext using a 32-byte [cryptographically] random generated key (AES-256 GCM)

- POSTs the ciphertext and expiry (default 24h) to https://api.ots.sniptt.com/secrets

- The server responds with a URL to view the secret via a response header

- Query string "?ref=cli&v=<version>" are appended to the secret URL

- The decryption key is base64 encoded and appended to the secret URL as a Fragment, "#<key>"

- The secret URL is printed to stdout


Hi, just for completeness - the decryption key is added to the secret URL as a fragment in the penultimate step.


Thanks for the correction, updated.


  a QR generator which will magically connect me to the WiFi with my password embedded in the QR somehow.
This is indeed what it does, but it also includes the plaintext password in case you want to connect a device that doesn't have a camera, like a PC. There's an open issue for adding a "hide password" option. You could also just cut off or scribble out the password on the print out.


Thank you for the kind words!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: