Whenever the bot has gone down (I turned off the home server or whatever) my friends complain, so I know the bot is fulfilling its purpose :)
Ask HN: Have you created programs for only your personal use?
211–220 of 671 posts
Re: Ask HN: Have you created programs for only your personal use?
#212Hundreds! 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 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?
with open('/dev/urandom', 'rb') as f:
return base64.urlsafe_b64encode(f.read(12))Re: Ask HN: Have you created programs for only your personal use?
#213Power on / off home theater device and set inputs Power projector on / off and set inputs Make calls to both at the same time working together Call AppleScripts to control music playing through the stereo from a connected Mac mini
I also built a tool for a friend in Bash and AppleScript. It watches a list of his favorite streamers and then calls to the Downie video download app to begin recording their streams. He runs it on a headless Mac mini checking each person in the list every two minutes.
Of all the things I've made for myself or others, these are the two that would most resemble a user-facing GUIable end-product.
edit: a letter
Re: Ask HN: Have you created programs for only your personal use?
#214Hundreds! 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…
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 crop video
- A few that I can't remember the purpose of... and can't tell from reading the source
Re: Ask HN: Have you created programs for only your personal use?
#215I do have other things as well, some on GitHub some not. A scraper to notify me when a local gym booking website changes for a time I’m interested in. A bridge between a BroadLink RM4 and HomeKit for some fans [1] - I wanted to avoid home-assistant. A script to grab my power consumption data. A shim to make gpg-agent compatible with launchd’s socket activation protocol [2].
[0] - https://github.com/benpye/wsl-ssh-pageant
Re: Ask HN: Have you created programs for only your personal use?
#216Hundreds! 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 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?
cat /usr/share/dict | shuf -n 4 | tr '\n' '-'
(inb4 unnecessary use of `cat`)Re: Ask HN: Have you created programs for only your personal use?
#217My Python CLI tool can read data from different sources & do my job. For example, it can read data from excel using Pandas, & then open Chrome, go to a web site, do login, fill forms, submit payments, etc using Pyautogui. In some cases it uses email & cronjobs to start executing automatically.
In another example, it uses Tesseract OCR to convert PDF to text files, & interactively convert them to CSV files that can be imported to any Accounting software.