Live data from Hacker News

Ask HN: What automation tools have you used to replace mundane activities?

news.ycombinator.com

81–90 of 234 posts

Re: Ask HN: What automation tools have you used to replace mundane activities?

#81
post #25

Earlier quoted context omitted.

What does this cost?

Costs me nothing. Some channels eventually reach their lifetime usefulness like a topic I was interested in and amassed some 500+ mentions of it on twitter, business news from 8 months ago about someone getting acquired etc. I can export the messages and delete the channel to avoid history archival. Only real cost would be the one or two times a year maintenance and improving bits and pieces every now and then.

I think the better question is how long did it take you to set this up initially?

Re: Ask HN: What automation tools have you used to replace mundane activities?

#82
I spend a lot of time with web automation

Especially for public library catalogues. There the webpage shows when the borrowed books are due, and you need to check it every week, or pay late fees. And you cannot set a bookmark, since you need to login first, which is tedious. So I automated it to renew all books and show me a warning.

And because that needs to run silently everyday, I decided to make it as fast as possible (and because I only had a single core cpu with less than 1gb ram). No browser, no javascript, no selenium, no python, no java. Only viable languages would be C or Pascal, and for memory safety I implemented everything in Pascal.

Because it is also tedious to build HTTP requests in native code and recompile it all the time, I then wrote a scripting language for it, all the webscraping is done in the script, but it is still fast because the processing is done in native code.

To read data from the HTML, I use pattern matching, e.g. + would read all links, and foo+ would read all links with text foo.

Nowadays I do not even visit public libraries anymore, but the automation tool has become an open-source project at http://www.videlibri.de/xidel.html .

I also started playing some browser games, but they are boring, so I stopped. But I want to stay in the highscore list, so I wrotes bot for them. Because they have anti cheat detections, you cannot send the http requests directly. For javascript based games, I wrote a bot with Greasemonkey. For flash games that does not work, so I have decompiled the flash file, added the automation functions to the flash, and then recompiled it.

Re: Ask HN: What automation tools have you used to replace mundane activities?

#83
Too many to list here, but one of my most useful ones is a Python script to help pay out affiliates.

It crawls through monthly CSV files provided by my payment gateways, finds sales and returns by a specific affiliate, calculates what I owe them and returns a dollar amount, a sales break down for each course, how to send it (paypal, wire, etc.) and who to send it to.

It's nice because it takes around 2 minutes to payout everyone each month with a very high confidence level in the results. Prior to the script, it was a stressful work flow with many chances of human error. I only did it once before automating it.

Another script I use helps me invoice my freelance clients each month. It's a Bash script and is open source https://github.com/nickjj/invoice. It saves me a ton of time every month since I can calculate how much I need to invoice folks in a few seconds with it.

Re: Ask HN: What automation tools have you used to replace mundane activities?

#84
I build a web site https://visalogy.com with help of a keyboard/mouse automation tool.

It was too simple to just automate and control my laptop with scrolling to certain web pages, xpath the elements, and copy-pasta data to a CSV file.

Nowadays, I use bash scripts to automate some scraping. Cron scripts in Travis CI are amazing, this https://visalogy.com web site practically runs by itself thanks to them.

Re: Ask HN: What automation tools have you used to replace mundane activities?

#85
post #80

I manage a Family Office and do monthly performance presentations with PowerPoint, the slides have an unique design, and updating them every month became extremely tedious and error prone. I was already looking for an excuse to learn Python and this was perfect. Instead of recreating the slides I created templates (just the last set of presentations) and update them with info directly queried from the database, using…

From the past 10 years of side projects, I can definitely confirm that the most important skill one could have is recognizing what can be automated, and especially, what is worth the effort of automating. - Your example is definitely a good one!

Re: Ask HN: What automation tools have you used to replace mundane activities?

#87
post #24

Ansible! I’ve been working on a “mail to cloud storage” project on the side for fun, but also as an excuse to learn Rust. As part of this effort, I decided to try out Ansible. Man, it is one great tool! For development, I have all of my server “groups” pointing to the same host, so my Ansible playbooks install and setup everything on a single machine. Makes testing much easier tbh.

I'm currently migrating a system at work to using Ansible and I'm absolutely in love with it.

My next project will be creating Ansible Playbooks for my workstation, so I can easily re-setup my Arch workstations on Desktop, Laptop, private and at work.

Re: Ask HN: What automation tools have you used to replace mundane activities?

#88

I run Home Assistant with Zigbee devices for automatic lighting at home: - switch on when I get home and sun is set - switch on when I'm home and the sun sets - switch on in the morning, full brightness, coldest color to help waking up (really helps me a lot and is not as stressful as an alarm clock) - automatically turn light off when I (my smartphone) leave home (not visible in the WLAN for 10 minutes) Will look in…

Interested why you use the coldest colour for waking up? I do the same, but use a sunrise simulation instead that goes from warm to cold.

Re: Ask HN: What automation tools have you used to replace mundane activities?

#90
post #86

auto delete certain messages from gmail after 30 days . i use filters to tag messages as "autodelete" and create a google script that runs periodically to delete them . It shouldn't be so hard to do something so simple.

I'm fairly certain this is how the "trash" in gmail works by default.

Anything that gets sent to there stays there for 30 days then is automatically deleted.

Post reply on HN