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.util.List; | |
import lombok.Data; | |
import org.springframework.http.MediaType; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import reactor.core.publisher.Flux; | |
@RestController | |
@RequestMapping(produces = MediaType.APPLICATION_JSON_VALUE) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
file-system-maven-settings | |
--> | |
<!-- | |
| This is the configuration file for Maven. It can be specified at two levels: | |
| | |
| 1. User Level. This settings.xml file provides configuration for a single user, |
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/bash | |
# A simple script that prints the CPU usage | |
# of a process with ten (10) decimals points | |
# (based on this https://stackoverflow.com/a/1424556/1930099). | |
# | |
# Usage: bash cpu-usage.bsh {PID_NUM} | |
PID=$1 # The process id | |
CLK_TCK=$(getconf CLK_TCK) # CPU clock ticks |
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.util.Comparator; | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
public class SortMapByValueProperty { | |
public static void main(String[] args) { |