Earlier quoted context omitted.
has it been more than a year? How does Jimmy feel about going first on Dec 31 (day 365) and Jan 1 (day 1)?
I guess it could be change to count whether if the number of days since Jan 1, 1970 up to today has been odd or even...
Ask HN: Have you created programs for only your personal use?
321–330 of 671 posts
Re: Ask HN: Have you created programs for only your personal use?
#322I've also written a crapload of data processing apps to scrape through or convert various data I've acquired from places.
If I can save 10 minutes of drudgery by spending an hour writing a python or go app, guaranteed I've done it
Re: Ask HN: Have you created programs for only your personal use?
#323https://verhovs.ky/unicode-debugger/
https://github.com/verhovsky/unicode-debugger
It's probably not completely correct and there's probably issues stemming from the fact that text in web browsers is UTF-16 not UTF-8, but I've used it to quickly figure out that someone's input wasn't being parsed correctly because the spaces were actually non-breaking spaces for example. It can be used for noticing when some text has a letter that looks the same but is actually a different letter than you think (homoglyph attack) or to see what makes up an emoji.
Re: Ask HN: Have you created programs for only your personal use?
#324I've created a multithreaded python daemon which every 5 minutes scrapes all currently online cammers on chaturbate and streams to file the ones I've marked as favorites. I've got a text file with tags for each favorited streamer so I can change which ones are being downloaded depending on mood.
Re: Ask HN: Have you created programs for only your personal use?
#325Re: Ask HN: Have you created programs for only your personal use?
#326Earlier quoted context omitted.
I guess it could be change to count whether if the number of days since Jan 1, 1970 up to today has been odd or even...
Probably since otherwise you’d just need a calendar or somehow know the date which most people do without custom code
Re: Ask HN: Have you created programs for only your personal use?
#327Hundreds! Doesn't everyone? Most of them are just bash scripts, many of which have now reached a complexity so high that I wish I'd started writing them in a different language but it's too late now. The majority of the rest are Python. Off the top of my head, the most used ones are: * A replacement front-end for "tar" and various compressors * A script to synchronize my music library to a compressed version for play…
> * A replacement front-end for "ffmpeg", see above I have one of these too... It's kind of frightening how hard ffmpeg is to use without some kind of custom frontend. I have probably dozens of bash/python scripts to invoke ffmpeg for different common tasks. - One to extract audio - One to extract all the individual streams from a container - A couple different transcoding scripts - One specifically for gifs - One to…
If you can remember 3 or 4 things you can do most stuff without looking anything up, however:
-i -> input file
-vcodec / -acodec -> video and audio codec; "copy" specifies copying the input stream
-vn / -an / -sn -> disable the video / audio / subtitles in the output file
-ss / -t -> specify the start time and length of the conversion from the input file
So, just by looking at the above, you can easily see how to extract audio (or any individual stream). For gifs specifically I would recommend using gifski which has much better results anyway. For cropping, I don't find the `-vf crop` syntax too bad.Re: Ask HN: Have you created programs for only your personal use?
#328I wrote a scraper for various dating websites that would automatically generate activity on my behalf according to several empirical criteria (very simple stuff, no ML!), so that I could minimize the amount of time spent manually fishing. It worked amazingly well, it got me hundreds (yes, 100+) of dates, incredible dating stories and a lifetime of memories, all in a semi-automated way without me requiring to “swipe r…
Re: Ask HN: Have you created programs for only your personal use?
#329I started by matching it to the solar elevation, but ultimately I like it more just on a fixed schedule. I've also programmed it to make a more dramatic warm shift near bedtime, and to fade up a bedroom light when it's time to wake up.
Due to the inevitability of scope creep this system also now tracks the charging status and position of my robot vacuum, and I'm working to expand it to collect the 15-minute-interval usage data from my electric provider's website.
Re: Ask HN: Have you created programs for only your personal use?
#330Earlier quoted context omitted.
> A secure-but-readable password generator I love pronounceable passwords, but there's research indicating that such generators typically produce lower than expected entropy. Do you mind sharing what algorithm you use?
Something like cat /usr/share/dict | shuf -n 4 | tr '\n' '-' (inb4 unnecessary use of `cat`)