Skip to content

Instantly share code, notes, and snippets.

View appikonda's full-sized avatar

Sandeep Appikonda appikonda

View GitHub Profile
@appikonda
appikonda / git.md
Last active January 11, 2019 22:55
All About GIT

Updating your current branch with dev-branch before pushing the code

git  pull origin branch-name

git stash -u  //if there are any working changes

git status

git checkout dev-branch 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class getIndexs {
public static void main(String[] args) {
// TODO Auto-generated method stub
List<Integer> fooList = new ArrayList<Integer>();
@appikonda
appikonda / KillProcces.md
Last active November 27, 2019 19:18
Address already in use: JVM_Bind <null>:8080

###Exception:

Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:407)
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
        ... 31 more
@appikonda
appikonda / Github
Created February 23, 2016 19:14
basics
- how to create a repo
@appikonda
appikonda / collapsible
Last active October 21, 2015 23:07
how to collapse div in safari
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="panel panel-default" >
@appikonda
appikonda / IPN Response
Created August 12, 2015 20:24
Convert IPN Response to JSON
mc_gross=19.95
protection_eligibility=Eligible
address_status=confirmed
payer_id=LPLWNMTBWMFAY
tax=0.00
address_street=1+Main+St
payment_date=20%3A12%3A59+Jan+13%2C+2009+PST
payment_status=Completed
charset=windows-1252
address_zip=95131
<script async="async" src="https://www.paypalobjects.com/js/external/paypal-button.min.js?merchant=i@appikonda.in"
data-button="buynow"
data-name="bdirthday party"
data-quantity="1"
data-amount="500.00"
data-currency="USD"
data-shipping="1.75"
data-tax="30.50"
></script>
@appikonda
appikonda / macha
Created May 19, 2015 18:11
HQL to SQL
select * from clientAccessLevel as CAL
inner join client as client
on CAL.client_id = client.id
inner join domain as domain
on CAL.domain_id = domain.id
inner join AccessLevelReference as accessLevelReference
on VAL.accessLevelReferenceId= accessLevelReference.Id
where client.isDelete = false
and domain.id = ?
and accessLevelReference.accessLevel != "give the constant"
@appikonda
appikonda / calendar
Created April 13, 2015 21:36
Bootstrap date/time
<div class="form-group">
<label for="datetimepicker" class="col-sm-3 control-label">Date/Time
:</label>
<div class="col-sm-6">
<input type="text" size="30" maxlength="50" name="datetimepicker"
id="datetimepicker" required="required" class="form-control">
</div>
</div>
@appikonda
appikonda / git
Last active February 23, 2016 19:30
git commands
git pull origin master
//create new branch
git checkout -b branch name
//fix the bug new branch
// to compare the files
git diff
git diff <branch_name> -- /path/to/file/in/repo