How to specify custom ssh key while git clone from github

If you need to provide some custom ssh key while cloning your repository from github (or pulling, whatsoever), run this command: ssh-agent $(eval `ssh-agent -s`; ssh-add ~/.ssh/{your-custom-keyfile}; git clone git@github.com:{username}/{repo-name}.git .) Please note, you should replace {strings} with plain string values!

February 8, 2017 · 1 min · rodush

Install proprietary Oracle JDK in Debian 7.0 Wheezy

This is a YAP (yet another post) about how one can manually install Oracle’s proprietary JDK/JRE version (in Debian 7.0 Wheezy as an example). First of all, download fresh version of JDK/JRE from the Oracle website. Copy archive to desired location, in the following example we will use /usr/lib/jvm as an installation source directory. Unpack the archive and run next commands: sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk/bin/java 1071 sudo update-alternatives --install /usr/bin/javac javac /media/mydisk/jdk/javac 1071 sudo update-alternatives --install /usr/bin/jcontrol jcontrol /media/mydisk/jdk/bin/jcontrol 1071 You may need read man pages for update-alternatives to check out the parameters and what they mean. ...

August 27, 2014 · 1 min · rodush

How to add role to the PostgreSQL

If you need have superuser access to PostgreSQL via command line psql utility, create needed username first: sudo -u postgres createuser NEEDED_USERNAME You will be asked whether role should be a superuser: Shall the new role be a superuser? (y/n) answer “Y” (yes) if so and hit Enter. Now you allowed the NEEDED_USERNAME to access databases as a superuser via psql.

May 16, 2014 · 1 min · rodush