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
# java -jar summary-benchmarks.jar -t 24 | |
WARNING: An illegal reflective access operation has occurred | |
WARNING: Illegal reflective access by org.openjdk.jmh.util.Utils (file:/root/summary-benchmarks-2.jar) to method java.io.Console.encoding() | |
WARNING: Please consider reporting this to the maintainers of org.openjdk.jmh.util.Utils | |
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | |
WARNING: All illegal access operations will be denied in a future release | |
# JMH version: 1.37 | |
# VM version: JDK 11.0.25, OpenJDK 64-Bit Server VM, 11.0.25+9-LTS | |
# VM invoker: /usr/lib/jvm/java-11-openjdk-11.0.25.0.9-3.el9.x86_64/bin/java | |
# VM options: <none> |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function handleRequest(request) { | |
const url = new URL(request.url) | |
url.hostname = 'api.openai.com' | |
const modifiedRequest = new Request(url.toString(), { | |
headers: request.headers, | |
method: request.method, |
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 com.fasterxml.jackson.annotation.*; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.databind.*; | |
import com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder; | |
import io.lettuce.core.codec.RedisCodec; | |
import io.lettuce.core.codec.Utf8StringCodec; | |
import javax.xml.datatype.XMLGregorianCalendar; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; |
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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x00007f5665fef9be, pid=7, tid=0x00007f56574c3700 | |
# | |
# JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12) | |
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode linux-amd64 compressed oops) | |
# Problematic frame: | |
# J 6022 C2 java.lang.StringBuilder.append(Ljava/lang/String;)Ljava/lang/StringBuilder; (8 bytes) @ 0x00007f5665fef9be [0x00007f5665fef980+0x3e] | |
# |
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
{} |
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
version: '2.0' | |
services: | |
client: | |
image: busybox | |
command: [sh, -c, 'echo ping | nc server 1234'] | |
links: | |
- server | |
server: | |
image: busybox | |
command: [nc, -l, -p, '1234'] |
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
# For example, I have a redis container, I want it only serve for specific IP addresses: 172.31.101.37, 172.31.101.38 | |
$ docker run -d -p 6379:6379 redis:2.8 | |
# After start redis container, the iptables looks like this: | |
$ iptables -t filter -nL | |
Chain DOCKER (1 references) | |
target prot opt source destination | |
ACCEPT tcp -- 0.0.0.0/0 172.17.0.2 tcp dpt:6379 | |
# Get the IP address of redis container |