Skip to content

Instantly share code, notes, and snippets.

View brunoborges's full-sized avatar
🏠
Working from home, as always

Bruno Borges brunoborges

🏠
Working from home, as always
View GitHub Profile
[
{
"id": 389291,
"title": "Kotlin Multiplatform Conversions at Android Jetpack Scale",
"description": "This is a case study of how we converted several Jetpack libraries to Kotlin Multiplatform as part of our ongoing experimentation with the multiplatform technology."
},
{
"id": 405587,
"title": "Compose Multiplatform on iOS",
"description": "An overview of the exciting present and future of Compose Multiplatform, including live demos and how to get started with the latest additions to the multiplatform UI framework built by JetBrains."
@brunoborges
brunoborges / App.java
Created November 28, 2022 19:29
Issue #55 in microsoft/openjdk-docker repo
import java.lang.management.ManagementFactory;
public class App {
public static void main(String[] args) {
long currentTime = System.currentTimeMillis();
long startTime = ManagementFactory.getRuntimeMXBean().getStartTime();
System.out.println("JVM Startup time: " + (currentTime - startTime));
}
}
#!/bin/bash
set -x
function setenv-all-pods() {
echo
DEPLOYMENT_LIST=$(kubectl -n $1 get deployment -o jsonpath='{.items[*].metadata.name}')
echo "Set Log4J setting for all pods by overriding LOG4J_FORMAT_MSG_NO_LOOKUPS with true."
for deployment_name in $DEPLOYMENT_LIST; do
kubectl -n $1 set env deployment $deployment_name LOG4J_FORMAT_MSG_NO_LOOKUPS="true"
done
//DEPS org.openjfx:javafx-controls:11.0.2:${os.detected.jfxname}
//DEPS org.openjfx:javafx-graphics:11.0.2:${os.detected.jfxname}
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class hello extends Application {
dotnet_grpc_bench.report: Average: 1.32 ms
dotnet_grpc_bench.report- Requests/sec: 36510.82
dotnet_grpc_bench.report-
--
dotnet_grpc_bench.report: 90 % in 1.77 ms
dotnet_grpc_bench.report- 95 % in 2.10 ms
dotnet_grpc_bench.report- 99 % in 3.93 ms
--
go_grpc_bench.report: Average: 0.97 ms
go_grpc_bench.report- Requests/sec: 49283.43
@brunoborges
brunoborges / config.toml
Last active June 4, 2020 21:31
Proposal for a TOML Schema Definition
# [toml]
# version = 2
# schema = config.tosd
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00 # First class dates
public class ConsumeSingleton {
public ConsumeSingleton() {
HttpClient._.call(...);
HttpClient.get.call(...);
HttpClient.INSTANCE.call(...);
}
}
jmeter -Djavax.net.ssl.keyStore=NONE \
-Djavax.net.ssl.keyStorePassword="" \
-Djavax.net.ssl.keyStoreType="Windows-MY" \
--username "" --password ""
spring.cloud.stream.kafka.binder.brokers=pkc-41973.westus2.azure.confluent.cloud:9092
spring.cloud.stream.bindings.output.destination=seroter-topic
spring.cloud.stream.kafka.binder.configuration.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="[KEY]" password="[SECRET]";
spring.cloud.stream.kafka.binder.configuration.sasl.mechanism=PLAIN
spring.cloud.stream.kafka.binder.configuration.security.protocol=SASL_SSL
package com.seroter.confluentboot;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Source;
import org.springframework.messaging.support.GenericMessage;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;