Category: articles


My Github username changed from ‘preek’ to ‘munen’

March 9th, 2013 — 01:43 pm

If you have cloned one of my repositories, the ‘remote origin’ will now point to a 404. For your convenience I have written a script to easily change your checkout.

If you want to use it, please use your terminal to go to the checked out repository and enter the following command:

curl https://gist.github.com/munen/5124033/raw/4e38d1eb1d0e6965a4b031e48e2284d0df15eaab/hange_remote_origin.sh | sh

This will produce output like this:

$ cd ~src/the_tale_of_genji
$ curl https://gist.github.com/munen/5124033/raw/4e38d1eb1d0e6965a4b031e48e2284d0df15eaab/hange_remote_origin.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   375    0   375    0     0    374      0 --:--:--  0:00:01 --:--:--   465
Showing old remote origin
origin	git@github.com:preek/the_tale_of_genji.git (fetch)
origin	git@github.com:preek/the_tale_of_genji.git (push)
--------
succeeded in setting new remote
--------
Showing new remote origin
origin	git@github.com:munen/the_tale_of_genji.git (fetch)
origin	git@github.com:munen/the_tale_of_genji.git (push)

Comment » | articles, personal

Just released a new gem for Rails called “is_association?” https://rubygems.org/gems/is_association

November 5th, 2012 — 11:54 am

The gem patches ActiveRecord::Base to expose a method is_association? The method will return true for associations like has_one, has_many and belongs_to while returning false for regular attributes on the table.

Comment » | articles

Upgrading Dropbox to >16GB for 25USD

November 18th, 2011 — 03:12 pm

I love Dropbox and use it daily. From sharing project files and source code repositories in professional life to saving and synching my important personal belongings, I wouldn’t want to miss it.

For the services I like and use, I usually don’t bother paying for them. But in the case of Dropbox, just no plan seems right. I’m not even talking money here, but storage – the entry plan being 50GB. On my main machine(MBA 11″), I’m running a 128GB SSD – meaning that after having installed all necessary tools, I don’t even have 50GB storage free for things that I want backed up or synched. Since I can’t even physically use the plan properly, I don’t see myself paying for it. I would have been glad to pay for a 10GB or 20GB plan, though.

Not even having 50GB storage might seem very little space to the reader – or for my former self, that is. But for the stuff that I previously needed a NAS or even dedicated servers, I now have the cloud. Mail is on my private server (and backed up), music is on Spotify and Soundcloud, movies are in iTunes. The only thing I’m still hosting and managing myself are pictures.

Still, I wanted more than the 2GB storage that Dropbox offers for free initially. Luckily Dropbox offers up to 16GB extra space for bringing in referrals. Over the last year, I’ve gotten a few people to use Dropbox and got my account up to over 4GB. But then I thought that I could improve this process and set up an AdWords campaign.

Just one day later and having only spent 25USD, my Dropbox account is now 16.8GB.

Here are the details of the campaign. You can see that it only took a day to accumulate enough referrals.

dropbox adwords campaign

So now I can start putting more files into the bigger Dropbox.
dropbox storage

Update: As mentioned in the comments, Dropbox normally grants 250MB per referral. If you own an edu email address, however, they will give you 500MB – even retroactively. If you happen to live outside the USA and your university uses a different TLD, don’t worry – there’s a form to put your address, they will verify it and let you join the edu program.

If you liked this article, please feel free to re-tweet it and let others know.


    You should follow me on twitter here
twitter_preek

17 comments » | articles

« Previous Entries