Ctrl+h select file tree
Ctrl+l select file editor
Shift+h left editor tab
Shift+l right editor tab
Alt+j move current line up
Alt+k move current line down
double space filename search(telescope) - `Ctrl+d` and `Ctrl+u` to scroll preview
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 \ |
https://www.home-assistant.io/integrations/rest_command/
rest_command:
hellstorm_stream_request:
url: http://192.168.10.148/api/v1/replaceAndPlay
method: POST
headers:
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