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
# How to perform a release with git & maven following the git flow conventions | |
# ---------------------------------------------------------------------------- | |
# Finding the next version: you can see the next version by looking at the | |
# version element in "pom.xml" and lopping off "-SNAPSHOT". To illustrate, | |
# if the pom's version read "0.0.2-SNAPSHOT", the following instructions would | |
# perform the release for version "0.0.2" and increment the development version | |
# of each project to "0.0.3-SNAPSHOT". | |
# branch from develop to a new release branch | |
git checkout develop |
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
import org.milyn.smooks.edi.EDIWritable | |
class UnedifactUtil { | |
public static int countSegments(final EDIWritable origmessage) { | |
def isSegmentGroup = { it?.class?.canonicalName?.contains('SegmentGroup') } | |
def countInDepthSegments | |
countInDepthSegments = { EDIWritable message -> |
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" encoding="utf-8" ?> | |
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="CPVCodes"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="Division" type="Division" /> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:complexType name="Division"> |
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
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.zip.ZipInputStream; | |
/** | |
* This class is a wrapper for ZipInputStream. | |
* If you try to put ZipInputStream in a InputStreamReader you will get | |
* an error because when close() is called the whole ZipInputStream will | |
* be closed. For reading only a part from the stream corresponding to a | |
* ZipEntry, instead of calling stream.close() you should call stream.closeEntry() |
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
xmpp: | |
image: sameersbn/openfire:latest | |
restart: always | |
hostname: xmpp.alexproca.ro | |
ports: | |
- "80:9090" | |
- "5222:5222" | |
- "5223:5223" | |
- "7777:7777" | |
- "7070:7070" |
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
postgresql: | |
image: postgres:9.4 | |
volumes_from: | |
- postgres | |
ports: | |
- "127.0.0.1:5432:5432" | |
hostname: postgres | |
restart: always | |
tty: true |
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
#HTTP | |
telnet google.com 80 | |
GET /index.html HTTP/1.1 | |
Host: www.google.com | |
#HTTPS | |
openssl s_client -connect google.com:443 | |
GET / HTTP/1.1 |
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 | |
if [ "$1" != "" ] && [ "$1" = "-h" ]; then | |
echo "Shipyard Deploy uses the following environment variables:" | |
echo " ACTION: this is the action to use (deploy, upgrade, remove)" | |
echo " IMAGE: this overrides the default Shipyard image" | |
echo " PREFIX: prefix for container names" | |
echo " SHIPYARD_ARGS: these are passed to the Shipyard controller container as controller args" | |
echo " TLS_CERT_PATH: path to certs to enable TLS for Shipyard" | |
exit 1 |
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 | |
cd /tmp | |
apt-get install wget -y | |
wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.0.0-jira-7.0.0-x64.bin | |
chmod +x /tmp/atlassian-jira-software-7.0.0-jira-7.0.0-x64.bin | |
echo "executeLauncherAction$Boolean=true" > unattended | |
echo "app.install.service$Boolean=true" >> unattended | |
echo "sys.confirmedUpdateInstallationString=false" >> unattended | |
echo "existingInstallationDir=/usr/local/JIRA Software" >> unattended | |
echo "sys.languageId=en" >> unattended |
OlderNewer