5 ms·
Programs that have saved Hacker News 100+ hours by automating repetitive tasks
- dshacker 5y agoThank you HN for being so valuable <3 It is truly a gold mine what I find in this website every day.
- elitepleb 5y agoFor me it's (sikulix)[http://sikulix.com/ http://sikulix.com/] An underappreciated amalgamation of java robot, opencv and Jython has literally automated away thousands of inane man hours for me and some clients.
- dshacker 5y agoHow do you use it?
- brundolf 5y agoWhen I was in college, our online class registration process for each semester was very crude When the time of year came, you'd be put into a group. Groups would be staggered across a series of days so as not to overwhelm the system. Very early on your group's morning (like 5am I think?), the floodgates would open and it was a mad (online) dash to grab slots so that you could hopefully get good times (avoiding 8am's, etc, or at least getting the credits you needed!). This all happened through a web portal, and in a matter of minutes you could miss your chance for some of the more popular classes. It was like trying to buy a PS5. To go more quickly, you could type in an exact course number instead of browsing through the listings. So people would look up the numbers for the courses they wanted ahead of time (as well as for some backups, in case one or two of them filled up). Well, I learned about AutoHotKey from another student. I hardcoded each of my F-keys to type in the course IDs on my list so I could fill them out rapidly, and was fairly successful getting the classes I wanted :)
- 63 5y agoThe contemporary version of that is automating the whole process with Python and Selenium. Really it just calls into question why fifo is the mechanism for assigning priority for class registration and what better alternatives might be.
- Buttons840 5y agoIt's probably done this way because it's the easiest naive way to implement class sign ups. School IT seems like one of those places where accomplishing anything that isn't absolutely essential just doesn't happen.
- heavenlyblue 5y agoThat doesn’t seem like it should be an IT problem at all. It could be solvable with software, but how come you can make it into this horrible game of booking tickets to a popular festival?
- bsder 5y agoDefine "fair"? If there is a 3PM class and an 8AM class, 90%+ of your people are going to sign up for the 3PM class (commuting students might not if they can use the early classes to pile all their classes into the same day). Normally, if you needed a class to graduate, you could generally work something out. However, those classes were generally "in your major" and mostly never banged into hard limits (laboratory classes being the exception). I am reminded of my beginning foreign language classes. They were always oversubscribed, but if you showed up the teacher would always sign an exception for you. They knew that at least 25%+ of the class was going to drop, so, they could basically give everyone an exception who showed up to the class.
- summm 5y agoThen they maybe should offer more classes at 3 pm an less on 8 pm instead of forcing people into 8 pm that don't want it?
- lioeters 5y agoNote that Spectacle for macOS is no longer being maintained. https://github.com/eczarny/spectacle#important-note https://github.com/eczarny/spectacle#important-note A common alternative mentioned is Rectangle. https://rectangleapp.com/ https://rectangleapp.com/
- dshacker 5y agoThank you! Fixed it on the post
- Casteil 5y agoRectangle is great for a free/open-source window manager. No need to spend $8 on Magnet
- Noumenon72 5y agoMagnet is fine, though. I have never missed the $8.
- 1ark 5y agoThere is also yabai. https://github.com/koekeishiya/yabai https://github.com/koekeishiya/yabai
- blamazon 5y agoIf you work with web applications repetitively in your work, a browser scripting platform like Selenium can be super powerful and Selenium is easy to work with in Python.
- pottertheotter 5y agoThe title is a bit confusing. It should says “programs that have saved Hacker News users 100+ hours”. I thought it was going to be about programs that people like dang at Y Combinator use in running Hacker News.
- exdsq 5y agoBash. being good at bash will save you hundreds of hours in your career.
- dshacker 5y agoAgreed, but I'd argue that any good scripting language would do it.
- dgunay 5y agoMore than bash I'd say knowing how to effectively use the coreutils is a superpower. I don't know how to do basic control flow in bash without looking it up, but putting together pipelines of various tools has saved me lots of time.
- sgc 5y agoIs there anything like AutoHotKey for Linux (Debian/Ubuntu)? It's the thing I miss the most from using Windows.
- heavyset_go 5y agoIf you're on X11, there's xdotool and for Wayland, ydotool.
- sgc 5y agoThe potential in xdotool is there, however what I loved about AutoHotKey was the ability to inspect windows and actions to use for scripting purposes. Not sure if there is such a feature I am missing in xdotool or similar.
- heavyset_go 5y agoIt's not the same, but kwin's rules and scripting features allow you to inspect windows and automate some of their actions. If you combine them with xdotool/ydotool, you might be able to recreate some of the features you expect.
- sgc 5y agoSending me towards the right path. It looks like I could write a little script using some of xdotools built in tools for cursor coordinates, active window info and geometry etc that would be pretty useful. As a quick solution it could alert using notify-send on a key combination, although figuring out how to append the data to the cursor overlay would be even nicer.
- heavyset_go 5y agoThere's also wmctrl and xprop. http://tripie.sweb.cz/utils/wmctrl/ http://tripie.sweb.cz/utils/wmctrl/ https://www.freedesktop.org/wiki/Software/wmctrl/ https://www.freedesktop.org/wiki/Software/wmctrl/ https://www.linuxjournal.com/magazine/hack-and-automate-your-desktop-wmctrl https://www.linuxjournal.com/magazine/hack-and-automate-your... https://www.x.org/releases/X11R7.5/doc/man/man1/xprop.1.html https://www.x.org/releases/X11R7.5/doc/man/man1/xprop.1.html The 'Tips' section of the first link also has several other utilities that are pertinent: http://tripie.sweb.cz/utils/wmctrl/#tips http://tripie.sweb.cz/utils/wmctrl/#tips
- rajishx 5y agoit's interesting that linux/unices is not listed because it is in my opinion the best place to automate repetitive tasks. now it may not be GUI intuituive
- deleted 5y ago[deleted]
- DoctorOW 5y agoSurprised to see PowerTools but not ShareX. Originally a screenshotitng tool that is now somewhat of a more advanced Powertools. For instance, if I'm putting together product documentation I can take a screenshot of a specific window/region, save it to my hard drive, upload the resulting file to S3/B2/FTP, and get the resulting link copied to my clipboard using a single keyboard shortcut. One of the features I use often is the ability to grab a region of my screen and use OCR to convert it into copy/pastable text.
- dshacker 5y agoI have tried ShareX, but I still feel like it is really easy to share a screenshot of something you are working on and share to the internet way too easily. How do you avoid those situations? Feels like having a loaded gun at all times.
- headass 5y agopersonally i just upload to a self hosted bucket but if i don’t want it being uploaded at all i use a different thot key ie print screen for ss and upload vs shift+ctrl+print screen for just a ss
- DoctorOW 5y agoHonestly, I just have mine configured to copy the image directly to my clipboard and manually go through ShareX or my web browser to upload it somewhere. Most places I'm in (Hangouts/Slack/Discord/etc) allow me to paste images directly, if not Imgur allows uploads from the clipboard.
- Casteil 5y agoSnagit has been my go-to screenshotting/documentation tool for 3+ years. It's not free, but it's the best thing I've found for being able to quickly take screenshots & annotate them - it's got better annotation tools than anything else I've used. It can also record video clips & save w/ relatively small file size (to give a quick walkthrough of a software feature or plainly show replication steps for a problem).
- contingencies 5y ago- Regular expressions - vim - sed - imagemagick's convert/mogrify