Live data from Hacker News

Ask HN: What simple tools or products are you most proud of making?

news.ycombinator.com

771–780 of 892 posts

Re: Ask HN: What simple tools or products are you most proud of making?

#771
Threw together a shell function to quickly initialise development environments.

https://github.com/jamesroutley/dev

It allows you to quickly switch between different development contexts by:

- cd'ing you to a particular directory - opening your text editor - setting environment variables - setting up VPNs - anything else that can be scripted

Re: Ask HN: What simple tools or products are you most proud of making?

#772

Earlier quoted context omitted.

> "were I in the market" > the market of dying is there something about your mortality that you'd like to tell us?

I don’t have a dog.

I genuinely laughed out loud at this in my office, thanks for making my day of copy changes better @goblin89

Re: Ask HN: What simple tools or products are you most proud of making?

#773

I built https://cronitor.io after having an important cron job fail silently for several days. When I mentioned this problem to a friend his first response was "we just had a major issue with cron failing silently at my work too". We decided to hack on it together, and we've since grown Cronitor from a tool built for our own needs into a small business with a couple hundred paying customers.

I found where I used to work that cron jobs usually failed because they weren't adequately tested, so I tried using MAILTO but it didn't do what I wanted, so started putting something like (it's been a while):

45 5 * * * /bin/bash -eux -C /path/to/real/cmd >> /var/log/somefile 2&>1 | mail -S "/path/to/real/cmd... at 10.2.3.4 failed with details in /var/log/somefile" to-address ...then test failures to make sure the email and everything worked as expected (like, mail might not be set up correctly on the box by default). And either overwrite /var/log/somefile with ">" instead of ">>" or use logrotate. Of course, the /path/to/real/cmd script, if a shell script, should have something like "set -eux" or at least "set -e" at the top (and be well tested), otherwise it won't always report failures and this has no chance of working.

I didn't (in mild use) see unreported failures after that, and it was really handy for problem diagnoses when something did go wrong thereafter.

But after any change I had to test carefully again every failure mode etc, because it seemed so easy to miss something that causes unexpected behavior. Maybe even had to wrap it in an "if" statement (single-line), "..else mail...".

It would be fun but time-consuming to automate those tests, maybe with shunit2 (or something named roughly like that), to rerun periodically and make sure ops didn't change the mail config to break this setup, or something.

I know that looks awful but I enjoyed it. It might just be easier to use your replacement. How did you advertise?

Re: Ask HN: What simple tools or products are you most proud of making?

#774
ImageTracer: It's a Public Domain raster image tracing and vectorizing library, outputting SVG.

JavaScript https://github.com/jankovicsandras/imagetracerjs or Java https://github.com/jankovicsandras/imagetracerjava or "Android" Java https://github.com/jankovicsandras/imagetracerandroid

Re: Ask HN: What simple tools or products are you most proud of making?

#775
post #563

Earlier quoted context omitted.

wget -qO shellshare http://get.shellshare.net && python shellshare Please don't tell people to do this. This is an idiom called "curl pipe sh"; you're asking people to run whatever code someone on their network decides to send them. As an absolute minimum, you should change that http to https , so that they're merely running whatever code YOU decide to send them; but even that doesn't quite fit with the "share your t…

What's a better alternative?

[deleted]

Re: Ask HN: What simple tools or products are you most proud of making?

#776
post #743

Earlier quoted context omitted.

Can you make a version of this that just texts my mom that "I'm okay". That'd be perfect. P.S: Yes I'm thirty. Y'all don't know Indian moms.

"- Text me when you arrive" 5 minutes later.. "- I arrived. No assassins encountered."

But mum, look, if anything has happened you'll get a bloody phone call. With this system my not texting just primes you to worry more, despite the far higher likelihood that I forgot than that I'm dead.

Literally the best result is that you start worrying I'm not ok a few hours before finding out for certain that I'm not. So let's assume success, and agree that in case of failure you're going to have a very bad day anyway and this doesn't really help mitigate anything at all.

(this does not work)

Re: Ask HN: What simple tools or products are you most proud of making?

#777
post #116

https://izuded.com (i.e., "iz u ded?") I made this because I adopted a puppy and realized that, if I got hit by a bus on a Friday, he could be stuck in his crate for days before anyone realized. Morbid, but useful. It texts you every X days and asks, "u ded?" -- if you don't click "naw" before X days pass, it'll notify your contacts. It's a portfolio project to show what I've learned in the realm of "serverless" arch…

You should do a Show HN for this.

Re: Ask HN: What simple tools or products are you most proud of making?

#778

Earlier quoted context omitted.

Out of band verification. When you're doing curl pipe sh, you're trusting the host and that's it. With packages, you can verify the trust against external services like keybase, check website archive for changed key ids, check signatures on the public key if the author is into things like web of trust. It won't protect you against someone being directly malicious, but it will against MitM, website hacks, etc. It also…

>Out of band verification. When you're doing curl pipe sh, you're trusting the host and that's it. With packages, you can verify the trust against external services like keybase, check website archive for changed key ids, check signatures on the public key if the author is into things like web of trust. Your grandma is pretty advanced.

> Your grandma is pretty advanced.

Grandma level: Grace Hopper.

Re: Ask HN: What simple tools or products are you most proud of making?

#779

I'm most proud of making Open Exchange Rates ( https://openexchangerates.org ), which grew out of a hobby project (and a desire to create a really simple API for something that had previously been annoyingly complex.) The basic JSON API request and response formats are unchanged since day 0, although we've added a few new features in response to customers' demands over the years.

Wow, nice, I'm looking into alternatives to OANDA to do simple ER requests.. And your comment is really in place for me.
Post reply on HN