$ touch /usr/share/applications/robomongo.desktop
$ vim /usr/share/applications/robomongo.desktop
| #!/bin/bash | |
| # UTILITIES BEGIN | |
| function L { | |
| cat << EOF | |
| βββββββ βββ | |
| ββββββββ βββ | |
| βββ βββ ββββ βββ ββββββββ βββββββββ ββββββ βββ ββββββ | |
| βββ βββ βββββ βββ ββββββββ βββββββββ ββββββββ βββ ββββββββ | |
| βββ βββ ββββββ βββ ββββββββ βββ ββββββββ βββ ββββββββ |
| // Express module. | |
| var express = require('express'); | |
| // Authentication module. | |
| var auth = require('http-auth'); | |
| var basic = auth.basic({ | |
| realm: "Simon Area.", | |
| file: __dirname + "/../data/users.htpasswd" // gevorg:gpass, Sarah:testpass ... | |
| }); |
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass