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
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="Reporting Service"> | |
<implementation class="com.chriswhitcombe.reporting.impl.ReportingServiceImpl"/> | |
<service> | |
<provide interface="com.chriswhitcombe.reporting.ReportingService"/> | |
</service> | |
</scr:component> |
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
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="Reporting Service"> | |
<implementation class="com.chriswhitcombe.reporting.impl.ReportingServiceImpl"/> | |
<property name="service.exported.interfaces" value="*" /> | |
<property name="service.exported.configs" value="org.apache.cxf.ws" /> | |
<property name="org.apache.cxf.ws.address" value="http://localhost:9000/reporting" /> | |
<service> | |
<provide interface="com.chriswhitcombe.reporting.ReportingService"/> | |
</service> |
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"?> | |
<endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0"> | |
<endpoint-description> | |
<property name="objectClass"> | |
<array> | |
<value>com.chriswhitcombe.reporting.ReportingService</value> | |
</array> | |
</property> | |
<property name="endpoint.id">http://localhost:9000/reporting</property> | |
<property name="service.imported.configs">org.apache.cxf.ws</property> |
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
// get a datagram socket | |
DatagramSocket udpSocket = new DatagramSocket(); | |
// send request | |
byte[] buf = msg.getBytes(); | |
InetAddress address = InetAddress.getByName(graphiteHost); | |
System.out.println(address); | |
DatagramPacket packet = new DatagramPacket(buf, buf.length, address, graphitePort); | |
udpSocket.send(packet); | |
udpSocket.close(); |
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
<?php | |
foreach($_SERVER as $header => $value){ | |
if(ereg('HTTP_(.+)',$header,$hp)){ | |
echo "<li>$header = $value</li>"; | |
} | |
} | |
?> |
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
#install gcc | |
yum install gcc | |
#install C++ extensions | |
yum install gcc-c++.x86_64 | |
#install uuid dev (may not be needed) | |
#yum install uuid-devel.x86_64 | |
#install libuuid |
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
#make sure were up to date | |
yum update -y | |
#install java 7 | |
yum install -y java-1.7.0-openjdk.x86_64 | |
#install tomcat 6 | |
yum install -y tomcat6 tomcat6-admin-webapps tomcat6-webapps | |
#edit the users file to allow admin |
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 ArchaiusPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { | |
@Override | |
protected String resolvePlaceholder(String placeholder, Properties props, int systemPropertiesMode) { | |
return DynamicPropertyFactory.getInstance().getStringProperty(placeholder, "null").get(); | |
} | |
} |
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" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. | |
Fetch(url string) (body string, urls []string, err error) |
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 ( | |
"crypto/tls" | |
"crypto/x509" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
OlderNewer