mkdir -p /opt/cisco/anyconnect/lib-hack/ext
cd /opt/cisco/anyconnect/lib-hack/ext
wget -c https://archive.archlinux.org/packages/l/libxml2/libxml2-2.11.5-1-x86_64.pkg.tar.zst
wget -c https://archive.archlinux.org/packages/g/glib2/glib2-2.78.0-3-x86_64.pkg.tar.zst
wget -c https://archive.archlinux.org/packages/i/icu/icu-73.2-2-x86_64.pkg.tar.zst
tar --use-compress-program=unzstd -xvf libxml2-2.11.5-1-x86_64.pkg.tar.zst usr/lib
tar --use-compress-program=unzstd -xvf glib2-2.78.0-3-x86_64.pkg.tar.zst usr/lib
tar --use-compress-program=unzstd -xvf icu-73.2-2-x86_64.pkg.tar.zst usr/lib
cp -av usr/lib/lib* /opt/cisco/anyconnect/lib-hack
pr.markFileAsViewed
- shift+alt+m
next change - alt+F5
focus on tree - Ctrl-0
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
FROM container-registry.oracle.com/java/openjdk:21.0.1 | |
ENV VEGETA_VERSION 12.8.4 | |
RUN dnf -y update && dnf -y install wget curl | |
RUN wget -q "https://github.com/tsenart/vegeta/releases/download/v${VEGETA_VERSION}/vegeta_${VEGETA_VERSION}_linux_amd64.tar.gz" -O /tmp/vegeta.tar.gz \ | |
&& cd /bin \ | |
&& tar xzf /tmp/vegeta.tar.gz \ |
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
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Detecting the operating system and CPU architecture | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] os.detected.name: linux | |
[INFO] os.detected.arch: x86_64 | |
[INFO] os.detected.version: 5.15 | |
[INFO] os.detected.version.major: 5 | |
[INFO] os.detected.version.minor: 15 | |
[INFO] os.detected.release: ubuntu |
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.io.FileInputStream; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.time.Duration; | |
import java.util.Arrays; | |
import java.util.concurrent.ExecutorService; | |
import io.helidon.common.configurable.ThreadPoolSupplier; | |
import io.helidon.common.http.DataChunk; |
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
server: | |
port: 8080 | |
tls.private-key.keystore: | |
resource.resource-path: server.p12 | |
passphrase: password |
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
@ServerEndpoint("/ws/echo") | |
public class EchoEndpoint { | |
@OnMessage | |
public void onMessage(Session session, String message) throws Exception { | |
session.getBasicRemote().sendText("Did you send " + message + "?"); | |
} | |
} |
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
public static void main(String[] args) { | |
WebServer.builder( | |
Routing.builder() | |
.register("/ws", TyrusSupport.builder() | |
.register(ServerEndpointConfig.Builder.create(WsEndpoint.class, "/echo").build()) | |
.build() | |
) | |
) | |
.port(8080) | |
.tls(WebServerTls.builder() |
NewerOlder