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://developer.eclipsesource.com/restfuse/ - JUnit Test Suite for REST Services |
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"?> | |
<configuration> | |
<system.web> | |
<compilation debug="true" targetFramework="4.0" /> | |
</system.web> | |
<system.serviceModel> | |
<services> | |
<service name="Service.HelloWorldService" behaviorConfiguration="wsdl"> | |
<endpoint address="soap" binding="basicHttpBinding" contract="Service.IHelloWorldService" /> | |
<endpoint address="xml" binding="webHttpBinding" behaviorConfiguration="restBehavior" contract="Service.IHelloWorldServicee" /> |
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 | |
# | |
# | |
# Starts a Hadoop Master | |
# | |
# chkconfig: 2345 90 10 | |
# description: Hadoop master | |
. /etc/rc.d/init.d/functions |
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://10.192.25.122:50070/dfshealth.jsp | |
http://10.192.25.122:50030/jobtracker.jsp | |
http://10.192.25.122:50060/tasktracker.jsp |
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
find . -name "*" -type f -exec dos2unix {} \; |
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
dd if=/dev/zero of=testfile_10MB bs=500485760 count=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
var out = _step_.getTrans().getServletPrintWriter(); | |
out.println("<H1>"); | |
out.println("Hello World!"); | |
out.println("ときょ 東京 コーヒー"); | |
out.println("</H1>"); |
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
var zmq = require('zmq') | |
, sock = zmq.socket('pull'); | |
// increase swap for high water mark | |
zmq.options.swap = 1024; | |
zmq.options.hwm = 0; | |
// zmq.options.rate = 800000; | |
sock.connect('tcp://127.0.0.1:3000'); | |
console.log('Worker connected to port 3000'); |
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
var zmq = require('zmq'), | |
sock = zmq.socket('push'), | |
_ = require('underscore'); | |
// increase swap for high water mark | |
zmq.options.swap = 1024; | |
zmq.options.hwm = 0; | |
// zmq.options.rate = 800000; | |
sock.bind('tcp://127.0.0.1:3000', function(err) { |
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
ab -v 2 -c 30 -n 100 "http://www.yourdomain.com/" | grep -ohE "Set-Cookie: jspsession=..........................." |