Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Chandrakanth_c Chandrakanth339

🏠
Working from home
  • India
View GitHub Profile
View PAN CARD FORMAT
The significance of each digit is as follows:
First 3 digits: The first 3 characters on a PAN card represent an alphabetic series running from AAA to ZZZ.
4th Character: The 4th character represents the status of the PAN holder, which can be one of the following:
C – Company
P – Person
H — HUF (Hindu Undivided Family)
F — Firm
View JS Regex GIST
$(document).ready(()=>{
$.validator.addMethod('nameLen',(value, element)=>{
return /([^a]{2}$)/g.test(value);
},"Your Email is not in proper format.... please correct the same......");
$("#form1").validate({
rules:{
inpt:{
required: true,
nameLen: true
},
View Date & Time Format Literals_Java
LETTER DATE OR TIME COMPONENT PRESENTATION EXAMPLES
G Era designator Text AD
y Year Year 1996; 96
Y Week year Year 2009; 09
M Month in year (context sensitive) Month July; Jul; 07
L Month in year (standalone form) Month July; Jul; 07
w Week in year Number 27
W Week in month Number 2
D Day in year Number 189
d Day in month Number 10
View oracleplsqlINTERVALs.txt
-- REFERENCE WEBSITE: https://oracle-base.com/articles/misc/oracle-dates-timestamps-and-intervals#interval
--LITERAL FORMATS BEING USED WHEN WE FIRE ANY OF BELOW QUERIES ++YY DDD HH25:MI:SS.FF6
SELECT INTERVAL '40' MONTH FROM DUAL; -- MONTH
SELECT '180' YEAR FROM DUAL; --YEAR
SELECT INTERVAL '30' MINUTE FROM DUAL; --MINUTE
SELECT INTERVAL '25' SECOND FROM DUAL; --SECOND
View OraclePLSQLDateTimeFunctions
-- REFERENCE WEBSITE: http://www.vertabelo.com/blog/technical-articles/the-most-useful-date-and-time-functions-in-oracle-database
-- ADD MONTHS
SELECT ADD_MONTHS(SYSDATE, 1) AS NEWMONTHS FROM DUAL;
-- LAST_DAY OF THE MONTH IN DD-MON-YY FORMAT FOR THE DATE SPECIFIED IN ARGUMENT
SELECT LAST_DAY(SYSDATE) AS "Last" FROM DUAL;
SELECT MONTHS_BETWEEN(SYSDATE,CURRENT_DATE) FROM DUAL;
@Chandrakanth339
Chandrakanth339 / certificateKeytool.md
Created Jun 21, 2018 — forked from xdu/certificateKeytool.md
generate self signed certificate with keytool
View certificateKeytool.md

To generate a self-signed SSL certificate using the keytool command on Windows, Mac, or Linux:

  • Open a command prompt or terminal.

  • Run this command:

    keytool -genkey -keyalg RSA -alias tomcat -keystore selfsigned.jks \ -validity -keysize 2048

Where <days> indicate the number of days for which the certificate will be valid.