Live data from Hacker News

Ask HN: Tools you have made for yourself?

news.ycombinator.com

61–70 of 458 posts

Re: Ask HN: Tools you have made for yourself?

#61
I built a redis AOF rewriting toolchain to undelete keys at specific points in time because I was working with people who picked a storage engine without consistency guarantees without understanding the consequences. The tool will trace the lifecycle of a key through the AOF and all events attached to it so you can pick an event to “undo”. The output is a bunch of commands to recreate the key in the state you need it in.

I’m not publishing the source because it’s extremely dangerous and not very well tested. In the wrong (or right but with misunderstood intention) hands it can make your day worse.

It works by iterating through the AOF, filtering all commands related to the interesting key and replaying all commands except matching ones into a standalone instance of redis. Then it dumps the key that is left.

Re: Ask HN: Tools you have made for yourself?

#65
I bought a Remarkable2 tablet, and love it. Unfortunately, there is no way to easily consume email on it (email newsletters, which don't require any responses). I built a service that gives me a unique email I can sign up with, which then packages the email body into an epub that I can read.

Re: Ask HN: Tools you have made for yourself?

#66
Here's a shell script template that helps parse command-line options and informs its users of any missing commands that are required to run the script successfully:

https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdow...

Example script that includes the template:

https://github.com/DaveJarvis/keenwrite/blob/master/installe...

A more recent version of the script template is available at:

https://github.com/DaveJarvis/keenwrite/blob/master/scripts/...

Re: Ask HN: Tools you have made for yourself?

#67

Not small, but myopic in a way. I've been tinkering on and off with my own programming language for the last couple of years: http://www.adama-lang.org/ The key motivation is dealing with the complexities of managing all the state between people as they play a game with a strong boundary for privacy. I am debating what my next steps are with what I've learned. Do I focus on growing things around it, or do I abandon y…

Do you have a community of people to bounce ideas off of? BoardGameGeek perhaps? Other niche language developers? Sounds cool. Feel free to ping me if I can help. I've made a few board games and computer games. (Contact info in my profile)

Re: Ask HN: Tools you have made for yourself?

#68
post #63

My IT guys at work somehow keep disabling the show hidden files and folders feature in windows 10. So I wrote a program that checks every 5minutes and turns it back on lol

You could update it to report when it had to actually switch it back, and perhaps find the source of the problem.

Re: Ask HN: Tools you have made for yourself?

#69
Not sure whether this meets your "definition of a tool" but I started tracking my investments publicly a couple of years ago here

https://docs.google.com/spreadsheets/d/1tBrZEMFK9XNWxiqOxE8o...

The GoogleFinance Function has been a great way to help me "visualize progress" in a very different way compared to default visualizations provided by stock brokers

I have also tried to keep track of analytics more manually but hope to find some time to automate later (if you wanna help, lmk :)).

Basic metrics like the following: Hit Rate: % of investments that had a profit / Loss Rate: % of investments that had a loss / Size of Avg Winner / Size of Avg Loser / Expected Value of Investments / Win to Loss Ratio / Avg Holding Period / Opportunity cost analysis (eg: what is the stock price say 12-24 months after I sell?)

These basic things would help the individual investor get a lot more insight than they can easily get today.

Re: Ask HN: Tools you have made for yourself?

#70
A small Todo git repo. Well, it started as a simple git repo with a text file, but now it has a web front end, and a lambda/cron thingie that can automatically add tasks based off a description of frequency. For me, having a todo task list I can use wherever I have a shell or browser means I'll actually use the dang thing. One of these days I'll clean up the code and put it somewhere public, I suspect others might find it useful.

The other thing I've done that I'm sure lots of people have done: A small git repo that has some random tools I've made from time to time. I put it in my path on any machine I use frequently, so I have my little toolbox handy. One of the tools in my toolbox spits out a command line to download and run any other tool without writing it to disk, or needing any credentials locally, so I can paste the runner on a machine I'm on, but don't want to copy all the tools or otherwise setup. That can be handy, and prevents me from polluting any machine I touch.

Post reply on HN