script to mount google drive filesystem onto linux
# install gdrivefs using pip
sudo pip install gdrivefs
# generate google authorization url. paste url into chrome, then authorize.
gdfstool auth -u
# copy authorization code from chrome, then run this command which sets the authorization code
gdfstool auth -a /var/cache/gdfs/credcache "paste_your_code_here"
# create your directory
mkdir ~/gdrivefs
# mount gdrive to your
sudo gdfs -o allow_other /var/cache/gdfs/credcache ~/gdrivefs