Live data from Hacker News

Ask HN: What are some small scripts you use daily?

news.ycombinator.com

31–40 of 59 posts

Re: Ask HN: What are some small scripts you use daily?

#34
post #15

I run an AHK script with a little over 2000 abbreviations (e.g. typing 'abbn' expands to 'abbreviation'). It helps me type 100+ WPM without too much strain.

That's a cool idea. Do you have your file posted anywhere? If not I may cook something up on my own, I'm curious to try it out.

AHK has been working great for me over the years. My addresses, snippets of emails, expansions are all stored in an ahk file. I use various email addresses for different sites; so a@a would become aj(at)ajonit(dot)com or a@l would become admin(at)learnqtp(dot)com. The possibilities are endless. Few year's back I created a video for my blog readers and published an AHK template. You may download it here http://www.learnqtp.com/get-productive-with-automation-autoh...

Re: Ask HN: What are some small scripts you use daily?

#37
I wrote https://github.com/hboon/genie which lets me run create directory-specific aliases such as:

push -> git push origin develop; git push origin master; git push origin --tags; terminal-notifier -title "Pushed to Git" -message "Project X"

In another directory, push may push different branches. Ditto for pull, release, keep, etc

Use them daily.

Re: Ask HN: What are some small scripts you use daily?

#38
post #13

I created a Perl script called anyconnector which allows me to jump around between different Cisco Anyconnect VPN's using details stored in KeePass entries. e.g. To connect: anyconnector -c env-name Disconnect: anyconnector -d Get status: anyconnector -s It gets used by my team all day, every day.

Looks pretty handy! How do you interface with the KeePass database? Is there a library? with Perl bindings?

Re: Ask HN: What are some small scripts you use daily?

#39
I like using a lot of aliases and chaining them together if I can and it makes sense.

The most common one I use all the time is one that changes the command prompt to show what git branch I'm on when in that directory. Just google it if you'd like.

If you repeat some command a lot or a chain of commands and it takes a lot of tedious typing, then script it.

Post reply on HN