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
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;
# No HTML files are extracted
FROM ubuntu:18.04
RUN apt -y update
RUN apt -y dist-upgrade
RUN apt -y install openjdk-11-doc
RUN find /usr/share/doc/openjdk-* -type f -name '*.html' | wc -l
# HTML files are extracted as expected
FROM debian:unstable
<plugin>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-webapp-maven-plugin</artifactId>
<!-- check Maven Central for the latest version -->
<version>1.5.2</version>
<configuration>
<deploymentType>jar</deploymentType>
<jarFile>${project.build.directory}/${project.build.finalName}-exec.jar</jarFile>
<stopAppDuringDeployment>true</stopAppDuringDeployment>
<resourceGroup>tomee-group</resourceGroup>
# WebLogic Connection
adminUserName='weblogic'
adminPassword='welcome1'
adminURL='t3://localhost:7001'
# DataSource Details
dsName='TestDS'
dsJNDIName='jdbc/test'
dsDriverName='com.mysql.jdbc.Driver'
dsURL='jdbc:mysql://localhost:3306/mysql'

Keybase proof

I hereby claim:

  • I am brunoborges on github.
  • I am brunoborges (https://keybase.io/brunoborges) on keybase.
  • I have a public key whose fingerprint is 3A50 FDFF 9A54 354D 5AC6 C033 54A1 5DBF 5880 774C

To claim this, I am signing this object:

@brunoborges
brunoborges / data.csv
Last active September 19, 2017 23:00
Schooner Bay Apartments
Extraction Unit Available Price
04/15/17 552 4/25/2017 3688
04/15/17 562 5/4/2017 3693
04/15/17 304 5/5/2017 3693
04/15/17 592 4/27/2017 3716
04/15/17 360 5/19/2017 3737
04/15/17 476 4/15/2017 3796
04/15/17 544 5/18/2017 3856
04/15/17 304 5/5/2017 3713
04/15/17 552 4/25/2017 3718
@brunoborges
brunoborges / create-poster.sh
Created August 17, 2017 23:31 — forked from endymuhardin/create-poster.sh
Convert ogv to mp4 with H264 encoding, create poster, upload to server
ffmpeg -r 1 -t 1 -vframes 1 -i input-file.mp4 output-file.png