Live data from Hacker News

Ask HN: Tools you have made for yourself?

news.ycombinator.com

271–280 of 458 posts

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

#271
post #37

I am currently learning SQL/Python, I often just wanted to know the headers and how many rows are in a CSV file, so I just wrote a small Python script for it. import csv import readline readline.set_completer_delims(' \t\n=') readline.parse_and_bind("tab: complete") def csvOpen(file): with open(file, "r", newline='', encoding='utf-8-sig') as csvfile: reader = csv.reader(csvfile) i = next(reader) dRows = sum(1 for lin…

This can be done using two lines of Bash - `head -n 1 ` to get headers - `wc -l ` to count number of rows

Not really, not if the CSV contains quoted newlines.

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

#272

Recently I released a webapp to fix a problem I faced. I can paste any image from my clipboard (mostly screenshot in my case) to get its base64 version so I can integrate it directly in any markdown: https://paste64.vercel.app/ It was also an excuse to try out Svelte with TypeScript: https://github.com/aloisdg/paste64

Seems like a fun learning project, but in the real world it's very counterproductive. You can obtain the base64 representation of the current clipboard contents very quickly using a single terminal shell command.

We must have very different definitions of "counterproductive". Sure, if you have mental space to remember the commands to generate the base64 via a terminal then more power to you. For the rest of us that would rather store a bookmark and/or might not always have access to a *nix environment for running shell commands this seems like a great solution. Either way it is far from "counterproductive".

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

#274
post #264

I wrote a command line journal called 'did' that shows me what I did on this day over the last five years (like a 5 year diary). I enter a ton of items every day which all end up in text files. Only items including an asterisk will be repeated back to me in future years. Inspired by: https://news.ycombinator.com/item?id=17538697

Do you have it public somewhere?

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

#275
post #43

== killUnusedTerminalsAndBC.sh == This kills off any open bc instances I have, and then any open rxvts I have which aren't running another program After a day or so I can easilly have 100+ rxvts in the background, some of which are running vim, some sshed into other servers, but many of which are just old windows I ran to do something briefly but never killed off == another config differ == Someone else on the team h…

At least rxvt can run in daemon mode so you don't pay a full penalty for each instance, but it's still a bit OTT. Why not tmux for your ad-hoc terminals. Less likely to forget about them and they're easily managed.

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

#276
Brandon Sanderson, my favorite writer, keeps some progress bars in his website to let the fan know what he's working on. Unfortunately, those progress bars aren't visible in mobile devices. So I made a website for myself to keep tabs on them. And also for the other fans. Link: https://bransan.vercel.app

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

#277

Made something really similar to apple's recently unveiled "universal control," but from Windows -> Mac. Lets me have the mouse wander off the side of the screen if "pushed hard" and it "pops out" on the mac. It has some issues with modifiers sticking and it's hard-coded to my network IPs and screen resolutions, PLUS it requires an unrelated tool I made to actually build the thing; it's on my "open source someday" li…

Synergy does this really well https://symless.com/synergy

And barrier is a fork of synergy before it went quasi-open source that actually works!

https://github.com/debauchee/barrier

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

#279

Recently I released a webapp to fix a problem I faced. I can paste any image from my clipboard (mostly screenshot in my case) to get its base64 version so I can integrate it directly in any markdown: https://paste64.vercel.app/ It was also an excuse to try out Svelte with TypeScript: https://github.com/aloisdg/paste64

Seems like a fun learning project, but in the real world it's very counterproductive. You can obtain the base64 representation of the current clipboard contents very quickly using a single terminal shell command.

This is an incredibly weird reply. "Very counterproductive"?

You hit ctrl+v and click a button using the app, that is roughly equally, if not more, convenient than switching to a terminal and entering a command.

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

#280
post #267

A couple years ago I moved somewhere where my only internet option is satellite (HughesNet). The data caps are pretty low (50 GB per month) but if you use data on the “bonus zone” (midnight to 8am IIRC) you get an additional 50GB quota, so I wrote a tool that lets me queue up YouTube videos to download in the middle of the night. It’s a pretty simple collection of scripts that shell out to youtube-dl. I wrote it in T…

There’s a lot of anecdotal evidence that starlink isn’t ready for prime time. If you have trees, forget about it.
Post reply on HN