Quarkus extensions enhance your application just as projects dependencies do. The role of the extensions is to do all the technical piping to make third-party libraries/technologies Quarkus-compatible. This is how you can use your battle-tested ecosystem and take advantage of Quarkus perfomance and native compilation
This file contains hidden or 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 | |
# | |
# A script to delete namespace(s) stuck at "Terminating" state, that won't get deleted, within the OpenShift cluster. | |
# You'll see an error message like this below, when you try "oc delete project <namespace>" | |
# | |
# Error from server (Conflict): Operation cannot be fulfilled on namespaces "<namespace>": The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system. | |
# | |
# Inspired by </ Jeffery Bagirimvano > | |
# Modified by Daniel Petisme |
This file contains hidden or 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
.Where(point => point.Y > 4); |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class StringExtension | |
{ | |
public static string Capitalize(this string str) { | |
return char.ToUpper(str[0]) + str.Substring(1); | |
} |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class UserDTO { | |
public string Id { get; set; } | |
public string Login { get; set; } | |
public string FirstName { get; set; } | |
public string LastName { get; set; } |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class UserDTO { | |
public string Id { get; set; } | |
public string Login { get; set; } | |
public string FirstName { get; set; } | |
public string LastName { get; set; } |
This file contains hidden or 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"?> | |
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.mycompany.myapp</groupId> | |
<artifactId>jhipster-sample-app-azure</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<name>jhipster-sample-app-azure</name> |
This file contains hidden or 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
#------------------------------------------------------------------------------- | |
# Run Docker | |
#------------------------------------------------------------------------------- | |
if [ "$RUN_APP" == 1 ]; then | |
if [[ "$PROFILE" == "prod" ]]; then | |
cd "$APP_FOLDER" | |
if [ -f "mvnw" ]; then | |
./mvnw -DskipTests package jib:dockerBuild -P"$PROFILE" | |
elif [ -f "gradlew" ]; then |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Inspired by https://dev.to/thiht/shell-scripts-matter | |
set -euo pipefail | |
IFS=$'\n\t' | |
#/ Usage: | |
#/ Description: | |
#/ Examples: |
This file contains hidden or 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
version: '2' | |
services: | |
<hostname>-metricbeat: | |
image: docker.elastic.co/beats/metricbeat:5.5.1 | |
environment: | |
ES_HOST: <MY_HOST>:<MY_PORT> | |
network_mode: host | |
volumes: | |
- /proc:/hostfs/proc:ro | |
- /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro |
NewerOlder