Skip to content

Instantly share code, notes, and snippets.

View Avinashachu007's full-sized avatar

Avinash Avinashachu007

  • Chennai, India
View GitHub Profile
@Avinashachu007
Avinashachu007 / .gitignore
Created November 27, 2018 07:47
Gitignore for Java,maven,Eclipse,Spring
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
@Avinashachu007
Avinashachu007 / application.properties
Last active September 12, 2020 14:54
Spring boot Tomcat related application.properties
#Tomcat Access log
server.tomcat.basedir=/home/avinash/logs
server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.pattern=%t %a "%r" %s (%D ms)
#Tomcat Thread
server.tomcat.threads.max=1000 // Maximum No. of thread can be created. Default 200
server.tomcat.threads.min-spare=16 //Min no. of Threads(Or Strandby thread)
//Maximum no. of Connection allowed Beware if No. max thread is 1000 But Max connection is 300 then 300 requests will be
// processed concurretly remaning request will allocated to remaining threads after 300 is processed
server.tomcat.max-connections=300
@Avinashachu007
Avinashachu007 / indianCurrency.js
Last active February 22, 2017 11:28
A library to handle Currencies in JavaScript. By default, It will handle Indian Currency. Change 'Currency.prototype.locale' & 'Currency.prototype.currency' to Handle whatever currency of your wish
Number.prototype.toCurrency = function(){ // Prototype Added to Number property to convert Number into Currncy Object
return new Currency(this.valueOf());
};
function Currency(args){ //Important: Currency Object Constructor
this.value = args*Currency.prototype.multiple;
return this.value;
}
Currency.prototype.multiple = 1000; // Currency is always in paisa. If u want accuracy of two digit after decimal set it 100; For three digit accuracy set into 1000
Currency.prototype.locale = 'en-IN'; // Currency should be Displayed in Indian Currency format '1,10,00,000'(Crores,Lakhs,Thousands)
Currency.prototype.currency = 'INR'; // Symbol shown before the amount
#!/bin/bash
sudo apt-get install dolphin \
&& sudo apt-get install kfinder \
&& sudo apt-get install kde-baseapps\
&& sudo apt-get install sytemsettings\
&& sudo apt-get install exo-utils
#Copy and paste above command entirly in your Linux terminal
#While you have internet connection. This script will automate
#Complete installation of Kde Dolphin File manager in you linux system
@echo Avinash Ravi: https://github.com/Avinashachu007
set /p no=Enter Last 3 digits the IP to Ping:
@echo pinging 192.168.1.%no%
ping 192.168.1.%no% -t
@Avinashachu007
Avinashachu007 / index.html
Created May 17, 2016 11:26
HTML5 basic template
<!DOCTYPE html>
<html>
<head>
<title>SRINAR ELECTRONICS</title>
<!--css-->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!--/css-->
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
$ping = new-object System.Net.NetworkInformation.Ping
$reply = $ping.send('127.0.0.1')
if ($reply.status -eq "Success"){
[string]::Format("Reply from {0},time={1}",$reply.Address.ToString(),$reply.RoundtripTime)
}else{
$z = [system.net.dns]::gethostaddresses($hostname)[0].ipaddresstostring
[string]::Format("FAIL,{0},{1}",$z,"***")
}
for /l %i in (1,1,254) do @ping 192.168.1.%i -n 1 -w 100 | find "Reply"