This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.*; | |
import javafx.geometry.Pos; | |
import javafx.scene.*; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.*; | |
import javafx.scene.paint.Color; | |
import javafx.stage.*; | |
import javax.imageio.ImageIO; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func TestConfigParse(t *testing.T) { | |
oldArgs := os.Args | |
defer func() { os.Args = oldArgs }() | |
os.Args = []string{"metro", | |
"-host=localhost", | |
"-port=30", | |
"-user=ssh", | |
"-password=sshpass", | |
"-list=lst.csv", | |
"-timeout=25"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"bufio" | |
"time" | |
"os" | |
"fmt" | |
"io" | |
"net" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"net/mail" | |
"net/smtp" | |
"crypto/tls" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
version="1.0"> | |
<!-- derby --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[main] | |
ds = com.mysql.jdbc.Driver | |
ds.serverName = localhost | |
ds.user = user | |
ds.password = password | |
ds.databaseName = db_name | |
jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm | |
jdbcRealm.dataSource = $ds | |
jdbcRealm.permissionsLookupEnabled = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^[a-z]{4}:/{2}[a-z]{0,3}\.?[a-z,0-9,\.]{1,}\.?[a-z]{0,}:?[0-9]{0,4} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deployment-overlay add --name=myOverlay --content=/WEB-INF/web.xml=/myFiles/myWeb.xml,/WEB-INF/ejb-jar.xml=/myFiles/myEjbJar.xml --deployments=test.war,*-admin.war --redeploy-affected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BUILDPATH=$(CURDIR) | |
GO=$(shell which go) | |
GOBUILD=$(GO) build | |
GOCLEAN=$(GO) clean | |
GOGET=$(GO) get | |
EXENAME=main | |
export GOPATH=$(CURDIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"> | |
<deployment> | |
<exclusions> | |
<module name="org.apache.commons.logging" /> | |
<module name="org.apache.log4j" /> | |
<module name="org.jboss.logging" /> | |
<module name="org.jboss.logging.jul-to-slf4j-stub" /> | |
<module name="org.jboss.logmanager" /> | |
<module name="org.jboss.logmanager.log4j" /> | |
<module name="org.slf4j" /> |