Skip to content

Instantly share code, notes, and snippets.

View GPrathap's full-sized avatar
🙃
When the right time comes

Geesara Prathap Kulathunga GPrathap

🙃
When the right time comes
View GitHub Profile
@GPrathap
GPrathap / proxyMod.c
Last active August 29, 2015 14:13
Virtual host configuration file
#include "httpd.h"
#include "http_core.h"
#include "http_protocol.h"
#include "http_request.h"
#include "apr_strings.h"
#include "apr_network_io.h"
#include "apr_md5.h"
#include "apr_sha1.h"
#include "apr_hash.h"
@GPrathap
GPrathap / gist:bf4e702c72d06de76ef0
Last active August 29, 2015 14:14
Installation log file (REST API in C)
[sudo] password for geesara:
Now CGI scripts are going to store in /usr/local/apache2/cgi-bin/
please wait ...
fun
================================== Compilation is started ==========================
cc -Wall -std=gnu99 -O2 -c -o ../libs/baseStruct.o ../libs/baseStruct.c
cc -Wall -std=gnu99 -O2 -c -o ../libs/dbrequest.o ../libs/dbrequest.c
cc -Wall -std=gnu99 -O2 -c -o ../libs/makeBuffer.o ../libs/makeBuffer.c
cc -Wall -std=gnu99 -O2 -c -o ../libs/log.o ../libs/log.c
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.homeautomation:org.homeautomation.doormanager.plugin:bundle:1.0.0-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @ org.homeautomation:${groupId}.doormanager.plugin:1.0.0-SNAPSHOT, /mnt/iotServer/m3/wso2iots-1.0.0-SNAPSHOT/samples/doormanager/component/plugin/pom.xml, line 28, column 17
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for org.wso2.carbon.devicemgt:org.wso2.carbon.apimgt.webapp.publisher:jar should not point at files within the project directory, ${basedir}/../../../../repository/components/plugins/org.wso2.carbon.apimgt.webapp.publisher_${carbon.device.mgt.jar.version}.jar will be unresolvable by dependent projects @ org.homeautomation:component:1.0.0-SNAPSHOT, /mnt/iotServer/m3/wso2iots-1.0.0-SNAPSHOT/samples/doormanager/component/pom.xml, line 61, column 29
[WARNING] 'dependencyManagement.dependencies.dependency.sys
ERROR {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} - Error while extracting credentials from authorization header
org.wso2.carbon.identity.oauth.common.exception.OAuthClientException: Error decoding authorization header. Space delimited "<authMethod> <base64Hash>" format violated.
at org.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil.extractCredentialsFromAuthzHeader(EndpointUtil.java:152)
at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
@Path("device/stats/tableNames")
@GET
@Produces("application/json")
public Response getDataSourceNames() {
ObjectMapper mapper = new ObjectMapper();
JsonNode rootNode = mapper.createObjectNode();
ArrayNode dataSources = mapper.createArrayNode();
try {
PrivilegedCarbonContext.startTenantFlow();
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
[2016-05-30 09:26:54,446] ERROR - AbstractFaultChainInitiatorObserver Error occurred during error handling, give up!
org.apache.cxf.interceptor.Fault: Unable to destroy the process .
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:170)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:136)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
<artifact name=”Eventstream_current” version=”1.0.0" type=”event/stream” serverRole=”DataAnalyticsServer”>
<file>org.wso2.iot.devices.current_1.0.0.json</file>
</artifact>
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_calib.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0001/2011_09_26_drive_0001_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0002/2011_09_26_drive_0002_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0005/2011_09_26_drive_0005_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0009/2011_09_26_drive_0009_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0011/2011_09_26_drive_0011_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0013/2011_09_26_drive_0013_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0014/2011_09_26_drive_0014_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0015/2011_09_26_drive_0015_sync.zip
https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_2
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers