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
@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>
<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>
<extension qualifier="cube">
<property name="connectionMode">STARTORCONNECTANDLEAVE</property>
</extension>
weblogic:
image: 1221-domain:latest
ports:
- "7001:7001"
environment:
- PRODUCTION_MODE=dev
Running the Test Applications
You can run the test application from an IDE or from the command-line by invoking Maven:
<profiles>
<profile>
<id>weblogic</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<arquillian.launch>weblogic</arquillian.launch>
</properties>
<dependencies>