Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home, as always

Bruno Borges brunoborges

View GitHub Profile
View azure-maven-config.xml
<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>
View keybase.md

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 Aug 17, 2017 — forked from endymuhardin/create-poster.sh
Convert ogv to mp4 with H264 encoding, create poster, upload to server
View create-poster.sh
ffmpeg -r 1 -t 1 -vframes 1 -i input-file.mp4 output-file.png
@brunoborges
brunoborges / validate-github-profile.js
Created Jun 30, 2017
Nashorn script to validate a GitHub profile: check whether name, email, company and a custom avatar have been set.
View validate-github-profile.js
#!/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";
View gist:f622dfab31097103c8de82012982cf44
$ 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
View gist:4f9bdb83627b31a366efb9571b61aee2
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,
View gist:6662eca04437fbd2aed737e57c0272e0
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)
View hello.md
public static void main(String args[]) {
  System.out.println("no highlight");
}
public static void main(String args[]) {
  System.out.println("markdown with highlight");
}
View arquilian.xml
<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>
View arquilian.xml
<extension qualifier="docker">
<property name="autoStartContainers">true</property>
<property name="dockerContainersFile">docker-compose.yml</property>
<property name="serverVersion">1.12</property>
<property name="serverUri">unix:///var/run/docker.sock</property>
<property name="tlsVerify">false</property>
</extension>
You can’t perform that action at this time.