This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Installation | |
| $ sudo apt-get install mysql-server | |
| $ sudo apt-get install mysql-client | |
| to check the status of mysql; whether it has started | |
| $sudo netstat -tap | grep mysql | |
| to start mysql | |
| $ sudo /etc/init.d/mysql restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl ipecho.net/plain; echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set t_Co=256 | |
| set nocompatible " required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -H "Content-Type: application/json" -X POST -d '{ "createlead" : { "last_name" : "Rahul Shivsharan", "subject" : "From Commandline", "email1" : "rahul.shivsharan@ril.com", "lead_source" : "Website", "phone_mobile" : "9867934525", "org_name" : "Reliance" } }' http://10.140.216.20:14280/il/crm/createLead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdf.common.sf; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.hibernate.SessionFactory; | |
| import org.hibernate.cfg.Configuration; | |
| import org.hibernate.service.ServiceRegistry; | |
| import org.hibernate.service.ServiceRegistryBuilder; | |
| public enum HibernateCon { |