x-ite's diary

覚え書きです。想定読者は俺

2012-12-21から1日間の記事一覧

SCP コマンドメモ

#~/.ssh/config Host web01 Hostname ec2-xxx.xxx.xxx.xxx.ap-northeast-1.compute.amazonaws.com IndentityFile /path/to/pem User ec2-user Port 22 #remote to local scp web01:~/$filename . #local to remote scp $filename web01:~/$uploaddir

node.js socket.io クライアントソケットの取得

var io = require('socket.io').listen(3000); io.sockets.on('connection', function(socket) { //接続してきたソケット socket; }); //すべての接続クライアント io.sockets.sockets; //特定のソケット io.sockets.socket(socketId);