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
server { | |
listen 80; | |
server_name memorycraft.cloudpack.jp; | |
location / { | |
proxy_pass http://127.0.0.1:49174; | |
} | |
} | |
server { | |
listen 80; |
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
proxy_redirect off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
[supervisord] | |
nodaemon=true | |
[program:sshd] | |
command=/usr/sbin/sshd -D | |
autostart=true | |
autorestart=true | |
[program:nginx] | |
command=/usr/sbin/nginx -c /etc/nginx/nginx.conf |
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
# centosがベース | |
FROM centos | |
# 作成者 | |
MAINTAINER memorycraft | |
# yumでいろいろインストール | |
RUN rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm | |
RUN yum install sudo passwd openssh openssh-clients openssh-server vim python-setuptools nginx -y |
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
[supervisord] | |
nodaemon=true | |
[program:sshd] | |
command=/usr/sbin/sshd -D | |
autostart=true | |
autorestart=true | |
[program:httpd] | |
command=/usr/sbin/httpd -c "ErrorLog /dev/stdout" -DFOREGROUND |
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
# centosがベース | |
FROM centos | |
# 作成者 | |
MAINTAINER memorycraft | |
# yumでいろいろインストール | |
RUN yum install sudo passwd openssh openssh-clients openssh-server httpd vim python-setuptools php php-devel php-mysql php-mbstring php-gd -y | |
# sshdの設定 |
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
//合成処理のモジュール化 | |
var spawn = require('child_process').spawn | |
var fs = require('fs'); | |
//子プロセスで処理 | |
var gmcomposite = function(change_path, base_path, mask_path, output_path, callback) { | |
var c = spawn('gm', ['composite', '-quality', 100, '-geometry', '+0+0', change_path, base_path, output_path]); | |
c.stderr.on('data', function(data) { | |
console.log('stderr: ' + data); | |
}) |
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
//モジュール読込 | |
var http = require('http'); | |
var url = require('url'); | |
var gm = require('gm'); | |
var gmcomposite = require('./gmcomposite'); | |
var fs = require('fs'); | |
var argv = require('argv'); | |
//コマンドオプション定義 | |
argv.option([{ |
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
import java.io.InputStream; | |
import java.io.ByteArrayInputStream; | |
import java.nio.charset.Charset; | |
import java.nio.charset.CharsetDecoder; | |
import java.nio.charset.CharacterCodingException; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.lang.reflect.Field; |
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
import com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessor; | |
import com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory; | |
/** | |
* Used to create new record processors. | |
*/ | |
public class MemorycraftKinesisDistanceProcessorFactory implements IRecordProcessorFactory { | |
/** | |
* Constructor. |
NewerOlder