Skip to content

Instantly share code, notes, and snippets.

View git-hemant's full-sized avatar

Hemant git-hemant

View GitHub Profile
@git-hemant
git-hemant / web.xml
Created September 4, 2018 20:39
How to dump all the HTTP request information (including HTTP headers) in Apache Tomcat
<filter>
<filter-name>RequestInfo</filter-name>
<filter-class>org.apache.catalina.filters.RequestDumperFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>RequestInfo</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>
Verifying my Blockstack ID is secured with the address 1KAggqVCuETjY9Gy9USHNR2BALG4pMudAN https://explorer.blockstack.org/address/1KAggqVCuETjY9Gy9USHNR2BALG4pMudAN
@git-hemant
git-hemant / gist:e8138682b36044df308c
Last active November 1, 2015 05:05
How "Return Rate" is calculated
Return Rate shows the total return you have received since opening of account.
It is calculated by using following formula:
Total principal - It includes received principal amount and outstanding principal amount.
Interest received - Total interest received till date (since account is opened).
Charged Off - Total amount which is lost to charged off loans,
here for each loan we will calculate lost principal by
note amount - received amount.
Return Rate = ((Interest received - Losses) / Total Principal) X 100)
@git-hemant
git-hemant / README.md
Created December 17, 2014 18:21
my notes

README is empty

@git-hemant
git-hemant / gist:bdfd2e1430aa3c1f6d85
Last active August 29, 2015 14:02
Quartz 2.2.x Demo - It shows cron job which executes twice every minute
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.quartz.CronScheduleBuilder;
import org.quartz.CronTrigger;
import org.quartz.Job;