Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
FROM bellsoft/liberica-openjdk-alpine-musl:21 | |
# RUN rm -f /etc/apk/repositories \ | |
# && echo "http://mirrors.ustc.edu.cn/alpine/v3.18/main/" >> /etc/apk/repositories \ | |
# && echo "http://mirrors.ustc.edu.cn/alpine/v3.18/community/" >> /etc/apk/repositories | |
# add tzdata | |
RUN apk add --no-cache tzdata \ | |
fontconfig ttf-dejavu \ | |
&& rm -rf /var/cache/apk/* |
package com.example.open.server.aop; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
/** | |
* 请在需要签名的接口上打上此注解 | |
* |
#!/bin/bash | |
# | |
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext | |
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just | |
# from time to time | |
# | |
# Usage: put the file anywhere, remember `chmod u+x fuckoff.command` | |
# So you can call the script from e.g. `spotlight` or by doubleclick. | |
# | |
# Typing `fuckoff` in spotlight with your anger then hit Enter. |
<!-- particles.js container --> | |
<div id="particles-js"></div> | |
<!-- stats - count particles --> | |
<div class="count-particles"> | |
<span class="js-count-particles">--</span> particles | |
</div> | |
<!-- particles.js lib (JavaScript CodePen settings): https://github.com/VincentGarreau/particles.js --> |
Generate the kubeconfig file for your cluster using the Kubeconfig File
button in the Cluster view of your cluster.
Save the generated file as $HOME/.kube/config
and run kubectl get nodes
to verify it works.
fun ClosedRange<Int>.random() = | |
Random().nextInt((endInclusive + 1) - start) + start | |
// usage | |
(0..10).random() | |
(0 until 10).random() |
const val UPSTREAM_SERVICE_NAME_HEADER = "x-client-name" | |
class VisualisationMetricHandler : Handler<RoutingContext> { | |
val httpGauge = Gauge.build() | |
.name("status:http_requests_total:rate5m") | |
.help("Requests per 5m") | |
.labelNames("service", "client", "status") | |
.register() |
import org.apache.ignite.internal.IgniteInterruptedCheckedException; | |
import org.apache.ignite.internal.util.typedef.internal.U; | |
import org.apache.ignite.spi.IgniteSpiException; | |
import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinderAdapter; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |