Live data from Hacker News

Ask HN: Small scripts, hacks and automations you're proud of?

news.ycombinator.com

261–270 of 340 posts

Re: Ask HN: Small scripts, hacks and automations you're proud of?

#261
I wrote a little Arduino app to replace my remote control, hooked up to my media PC that runs my TV. Now when I'm on the LAN all I do is load a webpage to turn the TV on or off. Gets lots of use and has been very reliable, so I'm pretty proud of it!

https://github.com/ijustlovemath/arduino-remote

Re: Ask HN: Small scripts, hacks and automations you're proud of?

#263

Not technically difficult, but I remember that it made me feel very proud: Back in high school (2004-ish) I made a small PHP script to generate a .m3u of my whole MP3 collection and I exposed this from my home PC. Since I could install Winamp on the school PCs this allowed me to stream my music collection. Another one was a password rotation script for my university. There was an idiotic password policy that required…

> if you tried to change it to a password you had used before you would get an error saying that the new password couldn't match the last 24 passwords you had used

This was also a case with gmail sometime around 2015. Once one was forced to change their password by some silly policy, one couldn't use any of the 100 previous passwords. Quite easily resolved by 50 lines of Python with Selenium. Nowadays would be much more difficult with many "anti robot" measures.

Re: Ask HN: Small scripts, hacks and automations you're proud of?

#266

Honestly, the script/hack/automation I'm still most proud of is from around 1983, when I was 12 years old, for my Commodore 64. Back then, all computer communications were over the phone line, and in my house, we only had one line, so I spent a lot of late nights, dialing into BBSs, often not going to sleep until the sun came up. Then, I would get in trouble at school for falling asleep in class. So I came up with a…

Very impressive. I was a xerox of you sans coding skills and entrepreneurship. I recall falling asleep while my C64 and Hess modem were being used my a ‘war dialer’. I did make a friend on a BBS who worked for Bell telephone - so we used UPS each week to ship each other envelopes of double sided floppies stuffed with fun games and utilities. I still get goosebumps when I hear a UPS truck pull open outside my home.

Re: Ask HN: Small scripts, hacks and automations you're proud of?

#267

On Windows: - Created a folder called "shortcuts" - Copy the folder URL into the system path (Control Panel, Environment variables something something) - Create a shortcut of anything I want to hyperlink to and put in there, with descriptive names - In IE, I think the setting was to enable autocomplete. For some reason that was linked to the autocomplete of the run menu item in Windows. - For extra bonus points, add…

On Ventura [1], you can type Cmd+Space and it opens Search with Spotlight. I do it all the time for Notes-> Cmd+Space, “N” (autocompletes to “Notes - Open” for me), Enter, and I’m in Notes. Not sure if older versions have the same shortcut but you can probably set that up if it’s not built-in. In settings you can also exclude folders for performance, e.g. I’ve excluded many project directories so it doesn’t try and look through all my dependency and build folders all the time.

[1] https://support.apple.com/guide/mac-help/search-with-spotlig...

Re: Ask HN: Small scripts, hacks and automations you're proud of?

#268

Most useful script I've ever written, and legitimately how I keep track of everything important in my life: #! /bin/bash function todo { if [ $# -eq 0 ] then vim ~/Dropbox/todo/todo_list.txt else vim "$HOME/Dropbox/todo/todo_list_$1.txt" fi } Sourcing this in my shell means I just have to type... todo To automatically get into my default todo list which is synced to dropbox (and thus accessible everywhere on mobile a…

here's my pull request $ cat ~/.bash_profile > alias lstd='ls ~/Dropbox/todo' > EOF

[deleted]

Re: Ask HN: Small scripts, hacks and automations you're proud of?

#269

Most useful script I've ever written, and legitimately how I keep track of everything important in my life: #! /bin/bash function todo { if [ $# -eq 0 ] then vim ~/Dropbox/todo/todo_list.txt else vim "$HOME/Dropbox/todo/todo_list_$1.txt" fi } Sourcing this in my shell means I just have to type... todo To automatically get into my default todo list which is synced to dropbox (and thus accessible everywhere on mobile a…

here's my pull request $ cat ~/.bash_profile > alias lstd='ls ~/Dropbox/todo' > EOF

And maybe some autocompletion if using zsh?

    #compdef todo
    
    _todo() {
      _files -W $HOME/Dropbox/todo/
    }
    
    _todo "$@"
Post reply on HN