Recent submissions

Comment · 5 months ago
Sorry, which library feature?
Comment · 7 months ago
> Private by default > Your wiki and archive live on your machine. Nothing is stored remotely.

Sure, the wiki is private. However, in the process your data is being uploaded straight to an AI company. Of course local LLMs exist but that’s seemingly not supported here and I think the statement on privacy could be clearer.

Comment · 1 year ago
@dang, I think it’s fair to say this is a scam post.
Comment · 1 year ago
Looks really well done, nice!
Comment · 2 years ago
Comment · 2 years ago
Have you tried doing `find . -name '*.cstemp' -exec rm {} +`? This provides as many arguments (filenames) as possible to the executed command (rm) rather than the `\;` which executes the command per file. This provides a massive speed improvement.
Comment · 2 years ago
I’m also interested in your usage/workflow.
Comment · 2 years ago
Happy it was helpful! Neglected to mention that your entry with the password will be stored in the shell history. You can prefix a space and have those commands (prefixed with a space) to be ignored in shell history. Alternative is to use `read` to pass the password in and hide the input. I can rewrite it for you if that’ll help.
Comment · 2 years ago
I have a simple workflow I use for ENV vars. Another comment noted a script written which likely does more but I haven’t fully read the code. Here’s my simple workflow in case someone is interested.

Create a DB in MacOS keychain called envs:

  security create-keychain -P envs
Then use these shell functions:

  which get-env
  get-env () {
     security find-generic-password -s "$1" -w envs
   }

  which add-env
  add-env () {
      security add-generic-password -a "$USER" -s "$1" -w "$2" envs
   }
Then add one via:

  add-env ENVNAME SECRET
Example using it:

  ENVVAR=“$(get-env ENVNAME)” ./script.sh
Comment · 2 years ago
There is [vulnhub](https://www.vulnhub.com/). There was another one that started with an “e” (it had Linux and code challenges too (e.g. here is the C code, exploit privilege escalation)). I remember a few years ago the site went down and a mirror was stood up under a different domain. Don’t have those links unfortunately.

Edit. Found it:

- What it used to be: https://web.archive.org/web/20180202211058/https://exploit-e...

- Mirror: https://exploit.education/

- Also can be downloaded at vulnhub: https://www.vulnhub.com/series/exploit-exercises,11/

Comment · 4 years ago
This looks interesting. Thanks for posting!
Comment · 4 years ago
Comment · 4 years ago
I wonder if Trilium Notes and the journal functionality would address your needs. You can use tags and backlink to other related notes if you wanted to. You can view notes in a standard hierarchy structure or view a note map.

You can take it a step further if that doesn't completely address your needs by customizing it. The journal button is just a note with a script (with a specific tag). It's highly customizable.

You can export your notes (all, or get granular with some or a single note) as HTML or Markdown or OPML.

Comment · 5 years ago
Do you have a link or model for the NAS case?
Comment · 5 years ago
When invoking `sudo`, you're escalating privileges on the command followed but that doesn't apply to the redirection of output (`>`). So it's saying permission denied to write to the files. You'll need to do something like `curl | sudo tee /path/to/file`. Same with `echo`.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton