Ask HN: Small scripts, hacks and automations you're proud of?
261–270 of 340 posts
Re: Ask HN: Small scripts, hacks and automations you're proud of?
#262I ran ping very often and needed to see when exactly the connection dropped.
Re: Ask HN: Small scripts, hacks and automations you're proud of?
#263Not 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…
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?
#264> Relax and be ready to answer incoming calls :D
And they call you, with Berlin's rental market? Improbable.
Re: Ask HN: Small scripts, hacks and automations you're proud of?
#265I stopped doing it because every time the server crashed through no fault of my own, everyone turned to look at me.
Re: Ask HN: Small scripts, hacks and automations you're proud of?
#266Honestly, 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…
Re: Ask HN: Small scripts, hacks and automations you're proud of?
#267On 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…
[1] https://support.apple.com/guide/mac-help/search-with-spotlig...
Re: Ask HN: Small scripts, hacks and automations you're proud of?
#268Most 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
Re: Ask HN: Small scripts, hacks and automations you're proud of?
#269Most 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
#compdef todo
_todo() {
_files -W $HOME/Dropbox/todo/
}
_todo "$@"