This file contains 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
import java.io.*; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.nio.charset.StandardCharsets; | |
import java.math.BigInteger; | |
public class PalindromeCheck { |
This file contains 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
service.doc: | |
dest-directory: file:./service-files | |
temp-dir: file:./service-files/service-temp-dir | |
service.storage.location: ./ssfiles |
This file contains 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
eclipse { | |
project { | |
resourceFilter { | |
appliesTo = 'FOLDERS' | |
type = 'EXCLUDE_ALL' | |
recursive = false | |
matcher { | |
id = 'org.eclipse.ui.ide.multiFilter' | |
arguments = '1.0-name-matches-false-false-node_modules' | |
} |
This file contains 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
# ~/.gitconfig | |
# Simple git configuration with global ignore file. | |
[user] | |
name = rahogata.* | |
email = rahogata.*@**.com | |
useConfigOnly = true | |
[core] | |
excludesfile = /home/rahogata/.gitignore_global | |
editor = vi | |
[push] |
This file contains 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
syntax enable | |
set number | |
set tabstop=4 | |
set smartindent | |
set shiftwidth=4 | |
set expandtab | |
set backspace=indent,eol,start | |
au BufNewFile,BufRead Jenkinsfile setf groovy |
This file contains 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 com.rahogata.demowebapp; | |
import java.lang.reflect.Field; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.ApplicationContext; |
This file contains 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 com.rahogata.demowebapp; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.core.env.Environment; | |
import org.springframework.stereotype.Component; | |
import org.springframework.stereotype.Service; |
This file contains 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
#!/bin/sh | |
# Name: postfix_setup | |
# Description: Install and minimal configure postfix. | |
# Args: $1 -> FQDN | |
# Pre-requisites: | |
# Add FQDN as host name in /etc/hosts with format Eg: mail.domain.com | |
# where mail is your host name and domain.com is your domain name. | |
# If required change /etc/hostname and reboot. | |
# Eg. /etc/hosts | |
# 127.0.1.1 mail.domain.com mail |
This file contains 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
#!/bin/sh | |
# Name: tomcat7installer | |
# Description: This script will install tomcat7 of ubuntu 14 release in 16.04. | |
# Tomcat ship with or installed in ubuntu 16.04 is incompatible with Java 7, | |
# so installing old tomcat version will solve this issue that is achievable through this script. | |
# remove tomcat if already installed. | |
echo "Removing existing tomcat7..." | |
sudo service tomcat7 stop >/dev/null 2>&1 |
This file contains 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
#!/bin/sh | |
# Name: propertyeditor | |
# Desc: add,update,delete, list properties interactively | |
# Args: $1 -> property file to edit. | |
PATH=/bin:/usr/bin:/usr/local/bin | |
DEFAULTFILE="$HOME/rahogata.properties" | |
# ignore signals during file operations |