Skip to content

Instantly share code, notes, and snippets.

View patelkunal's full-sized avatar
💭
I may be slow to respond.

Kunal patelkunal

💭
I may be slow to respond.
View GitHub Profile
Enable-PSRemoting -Force
winrm quickconfig -force
@patelkunal
patelkunal / build.gradle
Created March 12, 2018 06:42
basic-gradle-build
plugins {
id "java"
id "application"
}
group 'org.coderearth.<GROUP_ID>'
version '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// Place your settings in this file to overwrite the default settings
{
"files.autoSave": "afterDelay",
"files.exclude": {
"**/build": true,
"**/target": true,
"**/bin": true,
"**/.idea": true,
"**/.settings": true,
"**/.project": true,
@patelkunal
patelkunal / AppConfig.java
Last active November 2, 2017 03:34
bootstrap-spring-annotation-based-gradle-application-without-spring-boot
package org.coderearth.springkitchens.mailkitchen;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import java.io.IOException;
import java.util.Properties;
/**
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box_check_update = false
config.vm.network "forwarded_port", guest: 80, host: 8888, host_ip: "127.0.0.1"
config.vm.network "forwarded_port", guest: 443, host: 8443, host_ip: "127.0.0.1"
@patelkunal
patelkunal / java8-serverjre.sh
Last active May 27, 2017 12:08
java8-serverjre-installation-script
#!/bin/sh
# This is a quick script to download and install Oracle's Java 8 Server JRE
# It was made with Ubuntu 16.04 LTS in mind, and installs to /usr/local
# curl pipe this script to sh if you enjoy the thrill of getting into an internet stranger's van
prefix="/usr/local"
java_url="http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/server-jre-8u131-linux-x64.tar.gz"
dl_file="/tmp/oracle-java8.tar.gz"
ohshi()
# alias
# user level
alias gs='git status'
alias ga='git add'
alias got='git'
alias gut='git'
alias dck='docker'
alias dckr='docker'
alias dckrclean='docker rm $(docker ps -a -q)'
@patelkunal
patelkunal / logback.xml
Last active November 30, 2016 10:48
colorful logback output on console
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<!--<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{5} - %msg%n</pattern>-->
<!--<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %5level [%10.10t] %-40.40logger{39} : %m%n</pattern>-->
{
// editor options
// "draw_white_space": "space",
// tabs and whitespace
"auto_indent": true,
"rulers": [99],
"tab_size": 4,
"smart_indent": true,
"trim_automatic_white_space": true,
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Anaconda",
"Git",
"GitGutter",