Skip to content

Instantly share code, notes, and snippets.

View pethaniakshay's full-sized avatar
🎯
Focusing

Akshay Pethani pethaniakshay

🎯
Focusing
View GitHub Profile
@pethaniakshay
pethaniakshay / ccleaner serial keys.txt
Created May 28, 2019 17:23 — forked from azizurrehman/ccleaner serial keys.txt
CCleaner 5.13.5460 Serial Keys Free
C2YW-IAHG-ZU62-INZQ-WZPC
C2YW-2BAM-ADC2-89RV-YZPC
C2YW-XFCX-ABIG-GZD4-8ZPC
C2YW-XK32-GBVV-N3BH-2ZPC
C2YW-JKW5-KK79-XHR2-4ZPC
C2YW-QTRT-ZVCG-PQDK-CZPC
C2YW-GP33-TPIU-BGM8-AZPC
Source: http://windowsloaders.com/ccleaner-professional-plus-crack-for-windows/
package com.codepuran;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
@SpringBootApplication
@EnableZuulProxy
@EnableDiscoveryClient
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.codepuran</groupId>
<artifactId>CodePuran</artifactId>
<version>1.0</version>
</parent>
package com.codepuran.dto;
import java.util.List;
public class ResponseMessageDto {
private Integer port;
private List<Student> students;
public Integer getPort() {
server.port= 0
spring.application.name=student
server.servlet.context-path=/student
eureka.client.serviceUrl.defaultZone=http://localhost:9095/eureka/
eureka.instance.instanceId=${spring.application.name}:${random.value}
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
package com.codepuran;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class EurekaNamingServerApplication {
@pethaniakshay
pethaniakshay / eureka-service.properties
Created April 24, 2019 03:35
Eureka Service Properties
server.port=9095
spring.application.name=eureka-ribbon
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
@pethaniakshay
pethaniakshay / eureka-pom-dependencies-pom.xml
Last active April 24, 2019 03:38
Spring Boot Dependencies for Eureka Service Discovery Server
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
@pethaniakshay
pethaniakshay / open-vpn.sh
Created November 2, 2018 13:12
Shell script for installation of Open VPN
#!/bin/bash
#
#
# Copyright (c) 2018 Akshay Pethani Released under the MIT License.
# Detect Debian users running the script with "sh" instead of bash
if readlink /proc/$$/exe | grep -q "dash"; then
echo "This script needs to be run with bash, not sh"
exit