You just earned me a bonus $2000 this week.
Let me explain.
My client (our office boss and employees) needed to synch files across engineers, estimators, major retailers, investors, and accountants.
In order to do this, I setup Dropbox with LAN sync over the network.
However they wanted the setup to be made so that we could send files to our clients under our domain name.
Of course, there was no way I was going to setup a filesystem to sync with dropbox over a multi-account FTP box. This would be far too complex and leave way too much room for error.
So I sit there, thinking for hours. Then it hits me, use .htaccess
I go into the HTACCESS and add a condition for a 301 perm redirect from mydomain.com/fileservice to my dropbox public share path, pre-filename.
Of course there is 1 problem, making it optimized.
SO OUT OF EFFING NO WHERE, I REMEMBER, OH WAIT, HOW ABOUT THAT PROGRAM I USED TO BOT IN ONLINE GAMES?!
So I download AHK and write a script to do the following
Read the Windows clipboard quickly when the copy command key is clicked or when the clipboard memory is modified externally.
Find the dropbox public share link
modify it to show
http://www.mydomain.com/fileservice
Okay, great. But how am I going to justify having employees run AHK scripts?
Whats this??? HOLY SHIT, IT CONVERTS TO .EXE.
So I convert that badboy to an .exe, send it to virustotal.com for a check to make sure no problems arise.
Install dropbox on every computer.
Go into regedit and modify windows' boot for every computer to run my new exe file on start up, I also setup a service to make sure it never shuts down.
Voila, everything works flawlessly. Everyone at the company thinks im the second coming of Kasparov or something, and I get paid.
That is all.
Also I will donate some mad moola to AHK.
Simon
B.H. Civil Eng.