Thursday, December 15, 2016

steps to add project to git repo locally

Note: In the below step , I have used a project named "my_project"  . Install git and create a account in github before follow the below steps.

Github Link : https://github.com/

In Ubuntu flavoured system :

sudo apt-get install git

My project directory is :

/home/cision/project/my_project>



  1.  cd /home/cision/project/my_project>
  2. git config --global user.name 'username'
  3. git config --global user.email 'your registered emails id in github'
  4. git init
  5. git add -A
  6. git status 
  7. git commit -m "initialize repository'
safeguard : In case any damage in local project directory ( not the git repository ) use th ebelow command to restore from git to project directory 

Ex: remove any file from project directory , then 

# git checkout -f

Now you can see the same deleted file again in the project directory.








Wednesday, August 10, 2016

Arangodb3 basic shell tutorials:

Hope arangodb is already installed !

1) check if the arangodb is already installed ?

curl http://localhost:8529/_api/version   => here it will give the details of the arangodb version in json format.

2) login to arangodb shell

arangosh    =>  provide the arangodb root password

3) create a user

require ("org/arangodb/users").save("khirod","khirod");

4) Grant _system access to user khirod

require("org/arangodb/users").grantDatabase("khirod","_system");


next  coming soon ....



Monday, August 8, 2016

Some Ruby tips :

1) use literal array instead of ['test', 'test1']

ex :  %w(test test1)

2) check with multiple values

ex: %w(val1 val2 val3).include?(check_val)


Monday, May 9, 2016

How to Start Juniper VPN through firefox in 64 bit Ubuntu OS

Unless you need 64bit firefox , try the below steps

sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
sudo apt-get install firefox:i386 openjdk-6-jdk:i386 icedtea-6-plugin:i386
sudo apt-get install xterm

OR

1) download and install 32bit java
2) Then install 32bit java through update-alternatives .

Ex:
sudo update-alternatives --install /usr/bin/java java /home/user/programs/java/jdk1.7.0_75/bin/java 10

3) restart firefox
 

else

follow the below link
https://www.java.com/en/download/help/enable_browser_ubuntu.xml