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
# 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";
$ docker exec my-busybox.1.xewffdq29h7pomx8jhw9xib14 nslookup tasks.my-busybox
Server: 127.0.0.11
Address 1: 127.0.0.11
Name: tasks.my-busybox
Address 1: 10.0.9.4 my-busybox.2.mx5nq93n8w7z80ndfkqd1zmhj.my-network
Address 2: 10.0.9.5 my-busybox.3.nd4lp1z7iliys8wsplusxkq0a.my-network
Address 3: 10.0.9.3 19d4fdded3dd
WellKnownAddressList(
10.0.9.3
)
MasterMemberSet(
ThisMember=Member(Id=1, Timestamp=2017-04-14 11:12:04.36, Address=10.0.9.3:36273, MachineId=1586,
Location=machine:c4917b7c9b9b,process:1, Role=CoherenceServer)
OldestMember=Member(Id=1, Timestamp=2017-04-14 11:12:04.36, Address=10.0.9.3:36273, MachineId=1586,
Location=machine:c4917b7c9b9b,process:1, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=1
Member(Id=1, Timestamp=2017-04-14 11:12:04.36, Address=10.0.9.3:36273, MachineId=1586,
WellKnownAddressList(
10.0.9.3
10.0.9.4
10.0.9.5
)
MasterMemberSet(
ThisMember=Member(Id=2, Timestamp=2017-04-14 11:18:01.087, Address=10.0.9.5:42521, MachineId=686,
Location=machine:8f4159035dd1,process:1, Role=CoherenceServer)
OldestMember=Member(Id=1, Timestamp=2017-04-14 11:12:04.36, Address=10.0.9.3:36273, MachineId=1586,
Location=machine:c4917b7c9b9b,process:1, Role=CoherenceServer)
public static void main(String args[]) {
  System.out.println("no highlight");
}
public static void main(String args[]) {
  System.out.println("markdown with highlight");
}
<container qualifier="weblogic" default="true">
<configuration>
<property name="adminUrl">http://localhost:7001</property>
<property name="adminUserName">weblogic</property>
<property name="adminPassword">welcome1</property>
<property name="target">AdminServer</property>
</configuration>
</container>