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 org.example; | |
import com.amazonaws.auth.AWSCredentials; | |
import com.amazonaws.auth.AWSStaticCredentialsProvider; | |
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.auth.BasicSessionCredentials; | |
import com.amazonaws.client.builder.AwsClientBuilder; | |
import com.amazonaws.regions.Regions; | |
import com.amazonaws.services.securitytoken.AWSSecurityTokenService; |
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
public class XmlReportParser { | |
private final Path xmlReportPath; | |
public XmlReportParser(Path xmlReportPath) { | |
this.xmlReportPath = xmlReportPath; | |
} | |
public List<SourceFile> parse() { | |
XMLInputFactory factory = XMLInputFactory.newInstance(); | |
factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, false); |
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
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: Sonar | |
# Required-Start: $network | |
# Required-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start/Stop Sonar Server | |
### END INIT INFO |
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
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: tomcat7 | |
# Required-Start: $network | |
# Required-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start/Stop Tomcat server | |
### END INIT INFO |
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
#!/bin/bash | |
rm -f ~/.config/akonadi/agentsrc | |
rm -f ~/.config/akonadi/akonadiconnectionrc | |
rm -f ~/.config/akonadi/akonadiserverrc | |
rm -rf ~/.config/pulse |
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
/** | |
* Auto complete number with zeroes to left from String value | |
**/ | |
public String fillNumerZero(String value, int numLeftDigits, Container container) throws StreamTransformationException{ | |
if ( value == null || value.trim().length()==0 ){ | |
return "_sUpPresSeD_"; | |
} | |
else if(value.length() < numLeftDigits){ | |
return String.format ("%0"+numLeftDigits+"d", Integer.valueOf(value)); |
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 com.mycompany.app; | |
/** | |
* Created by asanchez on 28/09/16. | |
*/ | |
public class ReplacementString { | |
private static final String[] REPLACEMENT = new String[Character.MAX_VALUE+1]; | |
static { | |
for(int i=Character.MIN_VALUE;i<=Character.MAX_VALUE;i++) |
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
public void capitalize(String text){ | |
int i=0; | |
char pc=' '; | |
StringBuilder result = new StringBuilder(); | |
for(char c: text.toLowerCase().toCharArray()){ | |
if (pc == ' ' || pc == '\t' || i == 0) { |
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
JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" | |
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=6789" | |
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false" | |
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false" | |
JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=127.0.0.1" | |
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager" | |
JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.1.Final-redhat-1.jar" |
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
#Required project data fron sonar | |
sonar.projectKey=eph-conafys | |
sonar.projectName=eph-conafys | |
sonar.projectVersion=1.0 | |
sonar.sourceEncoding=ISO-8859-1 | |
#Source code directories names | |
sonar.sources=src | |
sonar.modules=Conafys,ConafysReportes |
NewerOlder