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
<!-- OAuth2 Token Validation Service --> | |
<parameter name="oauth2TokenValidationService">https://10.100.0.65:9443/services/OAuth2TokenValidationService</parameter> | |
<!-- Server Admin credentials --> | |
<parameter name="identityServerUserName">admin</parameter> | |
<parameter name="identityServerPw">admin</parameter> |
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
<api name="YoutubeSearch" context="/search"> | |
<resource methods="GET"> | |
<inSequence> | |
<header name="Authorization" scope="transport" action="remove"/> | |
<send> | |
<endpoint> | |
<address uri="https://gdata.youtube.com/feeds/api/videos?q=wso2"/> | |
</endpoint> | |
</send> | |
</inSequence> |
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
package org.wso2.handler; | |
import org.apache.axis2.client.Options; | |
import org.apache.axis2.client.ServiceClient; | |
import org.apache.axis2.context.ConfigurationContext; | |
import org.apache.axis2.context.ConfigurationContextFactory; | |
import org.apache.axis2.transport.http.HTTPConstants; | |
import org.apache.axis2.transport.http.HttpTransportProperties; | |
import org.apache.http.HttpHeaders; | |
import org.apache.synapse.core.axis2.Axis2MessageContext; |
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
public class Magic { | |
public static void main(String[] args) { | |
for (long l = 145425873831778797l; l > 0; l >>= 5){ | |
System.out.print((char) (((l & 31 | 64) % 95) + 32)); | |
} | |
} | |
} |
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
[mysqld] | |
# Options for mysqld process: | |
ndbcluster # run NDB storage engine | |
[mysql_cluster] | |
# Options for MySQL Cluster processes: | |
ndb-connectstring=1.1.1.5 # location of management server |
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
[ndbd default] | |
# Options affecting ndbd processes on all data nodes: | |
NoOfReplicas=2 # Number of replicas | |
DataMemory=80M # How much memory to allocate for data storage | |
IndexMemory=18M # How much memory to allocate for index storage | |
# For DataMemory and IndexMemory, we have used the | |
# default values. Since the "world" database takes up |
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
<Include-Resource> | |
@openjpa-2.2.0.jar!/META-INF/services/javax.annotation.processing.Processor, | |
@openjpa-2.2.0.jar!/META-INF/services/javax.persistence.spi.PersistenceProvider, | |
@openjpa-2.2.0.jar!/META-INF/org.apache.openjpa.revision.properties | |
</Include-Resource> |
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
package org.wso2.cassandra.statistics; | |
import org.apache.cassandra.db.ColumnFamilyStoreMBean; | |
import javax.management.JMX; | |
import javax.management.MBeanServerConnection; | |
import javax.management.ObjectName; | |
import javax.management.remote.JMXConnector; | |
import javax.management.remote.JMXConnectorFactory; | |
import javax.management.remote.JMXServiceURL; | |
import java.io.IOException; |
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
<Valve className="org.apache.catalina.valves.ExtendedAccessLogValve" | |
directory="${carbon.home}/repository/logs" | |
prefix="localhost_access_log_extended." | |
suffix=".log" | |
pattern="x-P(param1) x-P(param2)" | |
resolveHosts="false"/> |
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
<Valve className="org.apache.catalina.valves.AccessLogValve" | |
directory="${carbon.home}/repository/logs" | |
prefix="localhost_access_log_test." | |
suffix=".log" | |
pattern="%r %q %h" | |
resolveHosts="false"/> |