This file contains hidden or 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
#sudo apt-get remove maven2 | |
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main" | |
sudo apt-get update | |
sudo apt-get install maven3 | |
#If you encounter this: | |
#The program 'mvn' can be found in the following packages: | |
# * maven | |
# * maven2 |
This file contains hidden or 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
@Configuration | |
public class JettyConfig { | |
@Autowired | |
private MetricRegistry metricRegistry; | |
public Server jettyServer(int maxThreads, int minThreads, int idleTimeout) { | |
QueuedThreadPool threadPool = new InstrumentedQueuedThreadPool(metricRegistry); | |
threadPool.setMaxThreads(maxThreads); | |
threadPool.setMinThreads(minThreads); |
This file contains hidden or 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
<jaxb:bindings | |
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0" | |
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc"> | |
<jaxb:globalBindings generateElementProperty="false"> | |
<xjc:simple /> | |
</jaxb:globalBindings> | |
</jaxb:bindings> |
This file contains hidden or 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
wsimport -keep -d test/ -extension -b binding.xml -Xdebug -Xno-addressing-databinding -Xnocompile -B-XautoNameResolution -XadditionalHeaders -target 2.2 eracuni.wsdl |
This file contains hidden or 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
#!/usr/bin/env bash | |
oc_ver="7.06" | |
echo "Autobuild OpenConnect $oc_ver" | |
echo " " | |
echo "This script uses apt-get and make install via sudo rights" | |
echo "To simplify this, we're going to use sudo -v to pre-authenticate you" | |
sudo -k | |
sudo -v |
This file contains hidden or 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
# Create PKCS12 keystore from private key and public certificate. | |
openssl pkcs12 -export -name myservercert -in selfsigned.crt -inkey server.key -out keystore.p12 | |
# Convert PKCS12 keystore into a JKS keystore | |
keytool -importkeystore -destkeystore mykeystore.jks -srckeystore keystore.p12 -srcstoretype pkcs12 -alias myservercert | |
keytool -list -v -keystore mykeystore.jks |
This file contains hidden or 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
select * | |
from ( select a.*, rownum rnum | |
from ( SELECT * FROM MAILBOX_MESSAGE order by MESSAGE_ID ) a | |
where rownum <= 10 ) | |
where rnum >= 6 |
This file contains hidden or 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
#!/bin/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 8.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :20141129 | |
#usage :/bin/bash wildfly-install.sh | |
WILDFLY_VERSION=8.2.0.Final | |
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION |
This file contains hidden or 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"?> | |
<jboss-web> | |
<session-config> | |
<cookie-config> | |
<domain>special.mydomain.com</domain> | |
<path>/</path> | |
</cookie-config> | |
</session-config> | |
</jboss-web> |
NewerOlder