Lurker News
I'm thinking of tiny projects along the lines of single-function tools like domainr. But also game-changing ebooks, newsletters, courses.

Comments (868) 410 threads

Earlier comments
jtreminio2 replies#
https://puphpet.com

I started working with VMs several years ago, manually setting up a Virtualbox image. It would take around 30 minutes, and whenever I'd screw something up I'd have to delete it and redo the whole thing. Sometimes I'd fat-finger a command and have to start the process all over again.
Once I got tired of that I started to look into Vagrant, which recommended using a tool like Puppet or Chef. That led me down the rabbit hole of learning Puppet, which made me want to have a GUI to be able to easily change some choices around without having to mess with the code itself.
So I created a simple HTML form with drop downs and buttons and released it thinking that maybe 10 people or so would find it useful.
Almost 4,000,000 servers created later, and I'm quite happy with how it's been received!

jspaetzel#
Great tool! Made it much easier for me to get started with puppet & vagrant
rstarback#
I use this frequently at work! :D
cperciva4 replies#
The simple tool I'm most proud of is spiped. If you have two systems which need to be able to talk over TCP without worrying about evilness on the network between them, spiped is the answer.

The simple tool which has probably had the largest impact is bsdiff -- now found used in hundreds of millions of devices -- but I'm not particularly proud of it because it was a quick hack and horrible code written by a C novice.
The non-simple product which I'm most proud of is Tarsnap, of course; I've spent a decade of my life on it, and don't expect to stop any time soon.

danielhunt#
https://tankardapp.com

Ludicrously simple but I rely on it and use it every single day for Dev (and real) purposes
<3 single purpose apps
edit the app I use for HN (MiniHack) seems to have mistakenly replied to the first reply instead of the root
Sorry for comment sniping!

JoshTriplett1 reply#
> The simple tool which has probably had the largest impact is bsdiff -- now found used in hundreds of millions of devices

In your thesis, you mention an updated algorithm that produces smaller patches. Do you have any code available that implements that algorithm?

cperciva#
Some of that, and some further improvements, made their way into https://github.com/cperciva/bsdiff . But I don't think anyone is using that new code; the company which was paying for me to work on it decided not to continue with that project before I had a chance to finish polishing the work.
justinsaccount1 reply#
That reminds me, I keep meaning to look into seeing how hard it would be to add a reverse mode to spiped.

Right now it acts like a ssh -L tunnel, but doesn't have a mode where it acts like ssh -R, right?

cperciva1 reply#
Those are really the same thing, considering that you run a copy of spiped on each side.
justinsaccount1 reply#
Oh? Maybe it's just that the documentation specifically mentions ssh -L but not ssh -R. Can you do something like run spiped on a machine behind NAT or on a dynamic ip address to create a reverse tunnel via a publicly reachable host?

Continue this thread — 1 reply

meerkatyen#
thank you for spiped. Surprised at how often I find myself using it
augustflanagan3 replies#
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.

josho4 replies#
As someone about to write a cron job, what ways do you see Cron fail?

My assumption is that cron is robust and reliable, it's the job script itself that may fail silently and need monitoring, yes?

augustflanagan#
Yeah, I'd say your assumption is correct. However, other common ways that I've seen cron "fail" is for the cron entry to being installed in the wrong user's crontab, the permissions on a script changing such that it can't be executed, temporarily disabling or removing a cron job and forgetting to re-enable it, etc.
SteveNuts1 reply#
The most common failure I've seen is when people forget to use full paths in cron.

bash instead of /bin/bash (or similar)

wagmo#
There's other weirdness in cron-land too. Cron will completely ignore files containing "." .
Procrastes#
My favorite is forgetting a newline at the end of the crontab. I always put a warning at the bottom of my crontabs.

# Always end with a newline!

yogeshnachnani#
The cron process can be killed by the oom_killer, resulting in missed crons. This may be aggrevated If the cron service is never respawned later.
lcall1 reply#
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 < tail /var/log/somefile
...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?

lcall#
In case anyone ever reads that, too late for me to edit but: file 2&>1 | mail -S ...should be: file 2&>1 || mail -S ...or more likely the wrapped "if" mentioned.
lcall#
A personal knowledge organizer at http://onemodel.org/ (AGPL). Highly efficient at managing lists; like an org-mode that uses postgres and is more efficient and flexible in some ways. I use it heavily, daily, to manage checklists/tasks and notes on many subjects. No mobile or mouse support currently, but about everything one needs to know is on the screen at any given time. It's something like really fast mind maps but (currently) keyboard-driven and handles very large amounts of interlinked data. Data can be somewhat structured, as there is a feature that lets you clone then modify template entities.

I see it as the beginning of a platform to change how individuals (or mankind) manage knowledge overall. I'm now working on exploiting the internals for collaboration (linking instances, sharing data, subscribing to each others' data, mobile, etc).
For current org-mode or evernote users: The app has export (& finicky import) features to convert anything to (or from) an indented plain-text outline. The FAQs have links to a discussion of a more detailed comparison with org-mode that seemed somewhat well-received at the time (the link is on this page which also discusses evernote: http://onemodel.org/1/e-9223372036854614741.html ).
Feedback or participation are appreciated. If one has any interest at all, I suggest signing up for the (~monthly?) announcements list at least. More details are at the web site, including some FAQs.

Load more comments