Skip to content

Instantly share code, notes, and snippets.

View brunoborges's full-sized avatar
🏠
127.0.0.1

Bruno Borges brunoborges

🏠
127.0.0.1
View GitHub Profile
@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;
# 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>

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 / 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
@brunoborges
brunoborges / validate-github-profile.js
Created June 30, 2017 23:44
Nashorn script to validate a GitHub profile: check whether name, email, company and a custom avatar have been set.
#!/usr/bin/jjs
if (arguments.length < 1) {
print("Usage: validate-github-profile.js user ...");
exit();
}
var github_oauth = JSON.parse(readFully("./github-oauth.json"));
var user_pass = "${github_oauth.user}:${github_oauth.token}";
var github_api_url = "https://${user_pass}@api.github.com";