Taken from https://github.com/bahamas10/dotfiles/blob/master/bashrc
Show amount of billable storage spaced used in Manta
Allows the user to optionally be specified as the first argument
Example
$ mbillable
bahamas10 => using 2 GB (3 GB billable)
$ mbillable papertigers
papertigers => using 4 GB (5 GB billable)
Open Manta files using
open
on the current system
Example
$ mopen /Joyent_Dev/public/SmartOS/smartos.html
Will open the SmartOS changelog in your browser (on a Mac).
Store pastebin style pastes with syntax highlighting in Manta
Pass a file as the first argument, or as stdin, to create a paste in manta and print the URL to stdout
Requires Pygments
, which can be installed with sudo easy_install Pygments
or similiar.
Example
$ mpaste .bashrc
https://us-east.manta.joyent.com/[email protected]/public/pastes/1438621637.html
$ cat .vimrc | mpaste
https://us-east.manta.joyent.com/[email protected]/public/pastes/1438621641.html
(see https://us-east.manta.joyent.com/[email protected]/public/pastes/1438621637.html)
Convert Manta filenames to URLs
Example
$ murl ~~/public/foo /papertigers/public/foo
https://us-east.manta.joyent.com/bahamas10/public/foo
https://us-east.manta.joyent.com/papertigers/public/foo
MIT License