Better HN
topnewbestaskshowjobs
Log inSign up

viktorelofsson

148 karma · joined Oct 1, 2014 (12y ago) · 50 submissions

viktor [at] viktorelofsson.se
Submissions

comment 4y ago · link · parent

Not really true - v0.20 of PicoTorrent [1] was released with BitTorrent v2 support on the same day as libtorrent released support for v2 torrents. I think this predates BiglyBT 2.5 with v2 [2] support with about two weeks.

[1] https://github.com/picotorrent/picotorrent/releases/tag/v0.2...

[2] https://biglybt.tumblr.com/post/629947579144290304/2500-rele...

comment 4y ago · link · parent

BitTorrent v2 has been officially supported in PicoTorrent since the same date as the featured blog post from libtorrent :)

comment 5y ago · link · parent

Of course I can :) Thanks for pointing it out!

comment 5y ago · link · parent

Hello HN!

Today we officially launch our first SaaS - Shellhook, a service to turn any shell command into a HTTP API.

We've been working on it on late nights and weekends for almost a year, with some breaks here and there. It's built on top of .NET for (almost) all hosted services while the CLI is written in Go. The backend services consists of a little bit of Postgres and a little bit of RabbitMQ.

How it works (basic edition): - the CLI connects to a WebSocket with a unique user token and waits. - the incoming API takes the request, matches it to one or more connected CLI clients, and distributes the input to their WebSocket connections. - each CLI client takes the input and executes whatever command the user specified when starting while having the HTTP POST body in the standard input, and then returns the output back on the WebSocket. - the WebSocket service then makes sure the incoming API request gets the CLI output from all clients as a structured JSON response.

It's a little bit more involved due to supporting load balancing etc, but I'm happy to answer any questions either about using Shellhook or how it's built!

Also, even though it's free to try - if you do choose to subscribe, feel free to use coupon code HN50 to get 50% off forever.

5.

Show HN: Shellhook – turn any shell command into a HTTP API(shellhook.com ↗)

9 points · by viktorelofsson · 5y ago · 4 comments

comment 6y ago · link · parent

That's really valuable, thank you!

comment 6y ago · link · parent

I'm using wxWidgets, so it's the Win32 API at the lowest layer. For accessibility I want to make it support the NVDA screen reader which I think would make it support other readers as well :)

comment 6y ago · link · parent

There are two libraries called libtorrent - Rasterbar-libtorrent (the one in this discussion, made by arvidn) and rakshasa-libtorrent (made by rakshasa).

comment 6y ago · link · parent

If you want to try a client with v2 (and v1+v2 hybrid) support, I've just released PicoTorrent v0.20 [0] based on Rasterbar-libtorrent 2.0 :)

[0] https://github.com/picotorrent/picotorrent/releases/tag/v0.2...

comment 7y ago · link · parent

Thanks for the information! It's given me a positive outlook on a second trial for the Win32 API stuff :)

comment 7y ago · link · parent

Sure! Two examples where the Win32 API and/or my knowledge of it falls short,

  * Layout management. There's no "easy" way of managing dialog layouts (letting controls expand/shrink on resize etc).
  * Custom controls (e.g a tree-list-view) are clunky to write.
I'd much rather write PicoTorrent on top of the pure Win32 APIs, which I did in the beginning. It then evolved and when I valued time against frameworks, frameworks won, and saved me time :)

You can hit me up at the email in my profile if you want to discuss further!

comment 7y ago · link · parent

(Author here) I haven't listed the specific features from Rasterbar-libtorrent but I'll make sure to do that in an upcoming update, to make it clearer. It supports DHT, PeX and LSD as well as various proxies (SOCKS4, SOCKS5, HTTP).

The first few versions actually had the vanilla Rasterbar-libtorrent peer ID and user agent, and in v0.5 users could opt-in to use PicoTorrent peer ID and user agent, and a few versions after that I made that the default.

I've been in contact with as many private trackers I could find and it's an ongoing effort to discuss with them what they require for whitelisting.

comment 7y ago · link · parent

Author here - the readme is a bit outdated, sorry about that :) wxWidgets is a hard dependency since a few versions back.

comment 7y ago · link · parent

Hi! Author here. The name has been with us since the beginning, and the first few versions were actually quite small. Since then, features and other things have made things grow (mostly in file size). Since I'm a lone developer, the hardships of working with the Win32 API has made me base PicoTorrent on wxWidgets, which is why the file size is what it is.

I still try to keep it slim, fast and clean in overall usage :)

comment 8y ago · link · parent

Hi HN! I've been working with ElasticSearch the last few days and got tired of elasticdump being slow when dumping data to disk, so I wrote Blaze.

It dumps indexes to disk fast. It dumps them in a format compatible with the ElasticSearch Bulk API so it's easy to put the data back as well.

Please try it out and let me know what you think!

16.

Show HN: Blaze – a blazing fast ElasticSearch data exporter(github.com ↗)

3 points · by viktorelofsson · 8y ago · 1 comment

comment 8y ago · link · parent

Hi HN! Author here. I've been working on this BitTorrent client for a while now and would like some feedback!

It's a Node.js based BitTorrent client aimed at technical users looking for a powerful server (or seedbox) setup.

It uses native Rasterbar-libtorrent bindings and I'm providing pre-built binaries in the NPM package for linux-x64 and linux-arm (for Raspberry Pi setups). Installing on Windows or OSX is currently unsupported, but is in the works. Sorry for this.

18.

Show HN: Porla – a programmable BitTorrent client for servers and seedboxes(github.com ↗)

1 points · by viktorelofsson · 8y ago · 1 comment

comment 8y ago · link · parent

Shameless self promotion: I did something similar a while back, available at https://cryptob.in

Haven’t had the time to publish the sources, but I didn’t obfuscate the JS (where all the interesting and important stuff is happening)

I like your idea with the file uploads.

The “Copy To Clipboard” link in Chrome shows a puzzle icon overlay to activate Adobe Flash.

comment 9y ago · link · parent

I took your advice from the other comment and started using TweetNaCl.js which had some pretty good endorsements :)

I’ll definitely check out some more sources on crypto in general. Thanks for the input, really!

comment 9y ago · link · parent

Thanks! It’s mostly Bootstrap so I shouldn’t really take credit :)

Have a look at https://github.com/picotorrent/picotorrent for one of the more popular projects I run!

comment 9y ago · link · parent

Yes, that would probably make sense for the browsers that supports it. Which seems to be mostly everyone except IE.

It will be fixed in the next update!

comment 9y ago · link · parent

I've implemented all points that @tptacek mentioned (except the web extension, that will be a future update), and will also activate HSTS when I feel comfortable with the server setup.

I switched from CryptoJS to TweetNaCl which seemed fit to purpose, and also moved all CDN depencencies locally as well as removed Google Analytics :)

comment 9y ago · link · parent

Also - regarding your second #1, are we talking about something like a Chrome extension?

comment 9y ago · link · parent

Thanks for the feedback! I will definitely address your points, and I really appreciate the constructive criticism :)

26.

Show HN: Cryptob.in – A snippet share tool with client-side encryption(cryptob.in ↗)

19 points · by viktorelofsson · 9y ago · 12 comments

comment 9y ago · link · parent

> With our Just Walk Out Shopping experience, simply use the Amazon Go app to enter the store, take the products you want, and go! No lines, no checkout. (No, seriously.)

Yes, seems like you check-in with an app.

comment 10y ago · link · parent

Also discussed here, https://news.ycombinator.com/item?id=12914188

comment 10y ago · link · parent

My guess is so it makes it harder to fingerprint people. If I remember correctly the advice is to not resize the browser window, etc.

comment 10y ago · link · parent

Yes, and then you have Hadouken (https://github.com/hadouken/hadouken), another BitTorrent client of mine (though server oriented) :)
12