HNHacker News
TopNewBestAskShowJobs

fortunateregard

55 karma · joined January 13, 2022

submissionscomments
fortunateregard··on Hetzner switches to new billing model
I've had a similar experience where my account was banned despite providing all the info they requested (including my passport).

Hetzner was the only provider where I was banned despite providing everything I was asked for. I've deployed services on plenty of providers (AWS, GCP, Digital Ocean, Vultr, etc) without issue.

Apparently, this has been an on-going struggle for them. A few weeks ago they were even called out on an episode of the syntaxFM podcast for this behavior after one of the hosts had his account banned [0].

It's still a bit of a mystery to me honestly. Is their fraud detection so poor where they're forced to ban new sign-ups in this manner? How can Hetzner's competition tell that these accounts are legitimate (without ridiculous requirements such as passport) and Hetzner can't (even when provided with full home address, passport, etc)? I'm assuming Hetzner can't because they've seemingly developed a reputation for banning legitimate developers and the only reason I can think of where they'd be fine with that is if they actually have a very difficult time telling whether an account is legitimate or not.

[0]: https://twitter.com/stolinski/status/1750226126499139665

fortunateregard··on Show HN: Autolicious – AI-powered bookmark cataloging Chrome extension
That sounds awful. Can you export your bookmarks as csv or json? If so, you can use duckdb (or xsv) to clean any duplicates.

While you're at it, I'd recommend to consider uploading the new bookmarks to a dedicated bookmark manager and avoid having the browser manage your bookmarks. For folks who rely on bookmarks, dedicated bookmark managers offer great value (eg. auto-archiving a copy of every bookmark to combat link rot). I currently use Raindrop, but if I were to start fresh I'd go with Linkwarden instead.

fortunateregard··on NixOS Wiki – the unofficial user wiki
Here is the source on github in case you're still unable to access the page: https://github.com/ryan4yin/nixos-and-flakes-book
fortunateregard··on TypeScript NPM Packages Done Right
Link to full cheatsheet: https://www.totaltypescript.com/tsconfig-cheat-sheet
fortunateregard··on Ask HN: Sites like HN on other topics?
Also see this userscript to "Bring back the peace on Twitter": https://github.com/antfu/userscript-clean-twitter
fortunateregard··on NixOS Wiki – the unofficial user wiki
It would be useful if the wiki articles showed a 'last modified at' date. Articles like this [0] dominate search results, but it's not clear how outdated the info is.

In case anyone is looking for an up-to-date NixOS guide/cookbook, I've found lots of value in this [1] resource.

[0] - https://nixos.wiki/wiki/PulseAudio

[1] - https://nixos-and-flakes.thiscute.world/

fortunateregard··on The case for Nushell
Hover/go-to-definition seems more like a nice-to-have than a requirement. Either way, neovim support can be found here: https://github.com/LhKipp/nvim-nu
fortunateregard··on Film Review: BlackBerry
Margin Call
fortunateregard··on Tell HN: Service Workers === Browser Background Tasks
> PS - Why do you think this is an overkill solution?

Only because my use case is very trivial and does not require most of the features. On the other hand, it did get the job done on the first try so I can't really complain.

fortunateregard··on Tell HN: Service Workers === Browser Background Tasks
If you want to intercept and modify a incoming json response for some specific url pattern, would a service worker be a good way to do so?

To illustrate, assume I frequently browse a blog and want to trick my browser into thinking that I have "favorited" every post. It's trivial to write a for loop that iterates over response.json and sets `is_favorite = true`. But it's not as clear to me where this script should ideally live in order to have the logic always executed before the response is made available to the site.

Your comment made me think about whether I can replace my overkill solution (https://requestly.io/) with something lightweight.

fortunateregard··on NixOS RFC 136 approved: A plan to stabilize the new CLI and Flakes incrementally
> I can speak new instances of my environment into existence

You're not kidding. I used nixos-anywhere [1] for the first time the other day. You can point it to any linux host and it will partition, format, and supplant the target's existing OS with your nixOS config, all with a single command. Incredible.

[1] https://github.com/numtide/nixos-anywhere

fortunateregard··on NixOS RFC 136 approved: A plan to stabilize the new CLI and Flakes incrementally
> How do you use Nix on a project, any tips?

Combining nix with direnv is a popular combo for dev environments. Example: https://determinate.systems/posts/nix-direnv

If you haven't worked with nix before, the quick start here is a good place to start https://zero-to-nix.com/

fortunateregard··on 20 Years of Vim
https://github.com/m4xshen/hardtime.nvim

https://github.com/takac/vim-hardtime

fortunateregard··on The Future of the Vim Project
What is it that prevents the rest of the vim community from adopting neovim? From what I can observe, a great deal already have. But for the folks holding out, what is it that outweighs all that neovim has to offer?
fortunateregard··on Sourcegraph is no longer open source
I'm not sure. What?

Is there a reasonably legitimate reason to stop using this?

fortunateregard··on Sourcegraph is no longer open source
The button on the browser just navigates to the URL `git-peek://https://github.com/name/repo`. How your system handles this git-peek protocol is completely up to you. While the git-peek package does offer to setup a handler for this custom git-peek protocol, I went ahead and set it up manually. Now, my system calls this bash script whenever it encounters the git-peek protocol:

  #!/usr/bin/env bash
  # Expects a single argument: git-peek://<path>
  # Example: git-peek://https://github.com/Jarred-Sumner/peek
  kitty --single-instance --detach -e zsh -c "source ~/.zshrc; git peek $1"
You can set it up to do anything you like.
fortunateregard··on Sourcegraph is no longer open source
Yesterday I found out about git-peek (https://github.com/Jarred-Sumner/git-peek). Instead of describing how satisfying it is to use, here is a GIF: https://imgur.com/a/cT8zAha

It uses a temp directory, and deletes it when you close your editor.

fortunateregard··on Thoughts on Svelte(Kit), one year and 3B requests later
Rich Harris demo'd an upcoming "shallow routing" feature a few weeks ago: https://youtu.be/HdkJTOTY-Js?t=419

around the 7:00 min mark

fortunateregard··on Ask HN: Advice on starting a YouTube channel?
Or drag this bookmarklet to your bookmarks bar.

  javascript: (() => { document.getElementsByTagName('video')[0].playbackRate = prompt("Set video speed multiplier:", "3"); })();
fortunateregard··on Vim Keybindings Everywhere – The Ultimate List
I like Vimium. Besides the basic stuff, my favorites are:

`yt` yank (duplicate) a tab

`W` detach tab to new window

fortunateregard··on Vim Keybindings Everywhere – The Ultimate List
Also see vim-like-pile[1]

[1] https://vim.reversed.top/

fortunateregard··on Vim Keybindings Everywhere – The Ultimate List
In that case give firenvim[1] a try. It uses your existing config (keymaps, plugins, autocmds, etc).

[1] https://github.com/glacambre/firenvim

fortunateregard··on Kysely: TypeScript SQL Query Builder
Safeql[1] can also be a good middleground. Adds type checking to prisma raw queries.

[1] https://safeql.dev/compatibility/prisma.html

fortunateregard··on Getting Started with Tmux
This sounds silly when I say it out loud, but reaching for the number row always felt like a chore. Of course, when I had to input numbers, I'd still have to reach for the number row. But when numbers were optional, say for vim bindings that take a `[count]`, I opted to look for alternatives instead.

A few months ago however, I bought a moonlander keyboard. Now, I've got one of it's keys that, when held, maps the right side to a full traditional numpad. Typing numbers is much more seamless now. Besides numbers, other keys that always broke my flow (looking at you right curly brace) are much easier to type.

Just thought I'd share as it really elevated my overall typing/vim experience.

fortunateregard··on AWS us-west-2 issues
On an unrelated note, I opened this url in a new tab, took a quick look, then came back to read the comments.

A few minutes after I hear the fans on my pc start ramping up. Sure enough, I open the system monitor and see chrome going crazy on my CPU. In chrome, I open the task manager, then click sort by CPU. The entry at the top of the list reads:

> subframe: facebook[dot]com

I get taken to the open downdetector.com tab after double clicking the entry. After closing the tab everything goes back to normal.

Does anyone know why or what downdetector/facebook would do that requires 100% of my CPU's resources?

PS. I have ublock origin installed. My cpu is an i9-12900K.