Skip to content

Instantly share code, notes, and snippets.

@hiroeorz
hiroeorz / console
Last active August 29, 2015 14:19
nginxをソースからDebianにインストールした時のメモ ref: http://qiita.com/hiroeorz@github/items/d01989155c8496bf16fe
$ sudo /etc/init.d/nginx start
@hiroeorz
hiroeorz / file0.txt
Last active August 29, 2015 14:13
PeerJSのObjectiveC版 PeerObjectiveC書いてみた ref: http://qiita.com/hiroeorz@github/items/70fcd51d0d8acc87d5c7
$ curl http://0.peerjs.com:9000/lwjd5qra8257b9/id
@hiroeorz
hiroeorz / file0.txt
Last active August 29, 2015 14:12
WebRTCでビデオ通話するためにpeerjs-serverをインストールした時のメモ ref: http://qiita.com/hiroeorz@github/items/941d8f18cf8ac61fba52
$ sudo apt-get install libevent-core-2.0-5 libevent-extra-2.0-5 libevent-openssl-2.0-5 libevent-pthreads-2.0-5 libhiredis0.10 libmysqlclient18 libpq5 mysql-common
@hiroeorz
hiroeorz / file0.c
Created November 7, 2014 08:52
PJSIP Video User's Guide 日本語訳 ref: http://qiita.com/hiroeorz@github/items/f0c6e1eebc1238fcaa31
pjsua_acc_config cfg;
pjsua_acc_config_default(&cfg);
cfg.vid_in_auto_show = PJ_TRUE;
@hiroeorz
hiroeorz / file0.c
Created November 2, 2014 07:53
PJSUA API - High Level Softphone API 日本語訳 ref: http://qiita.com/hiroeorz@github/items/348668b461b661f51acc
#include <pjsua-lib/pjsua.h>
#define THIS_FILE __FILE__
static pj_status_t app_init(void)
{
pjsua_config ua_cfg;
pjsua_logging_config log_cfg;
pjsua_media_config media_cfg;
pj_status_t status;
@hiroeorz
hiroeorz / file0.txt
Last active August 29, 2015 14:06
クラウドにAsterisk立てて[SIPクライアント-(WebRTC)-WEBブラウザ]間でビデオ通話した時のメモ ref: http://qiita.com/hiroeorz@github/items/1092b0ee2503be30792f
$ apt-get install make automake gcc g++ ncurses-dev openssl libssl-dev
$ apt-get install libxml2 libxml2-dev sqlite3 libsqlite3-dev pkg-config
$ apt-get install libsrtp0 libsrtp0-dev
$ apt-get install libjansson4 libjansson-dev
$ riak-admin bucket-type create maps '{"props":{"datatype":"map"}}'
maps created
$ riak-admin bucket-type create sets '{"props":{"datatype":"set"}}'
sets created
$ riak-admin bucket-type create counters '{"props":{"datatype":"counter"}}'
counters created
@hiroeorz
hiroeorz / file0.txt
Created September 5, 2014 09:21
Riak 2.0.0 へアップグレードする際の注意点 ref: http://qiita.com/hiroeorz@github/items/494cfac481add9594686
/buckets/<bucket>/keys/<key>
@hiroeorz
hiroeorz / file0.txt
Last active August 29, 2015 14:06
Riak 2.0.0 インストールから起動まで ref: http://qiita.com/hiroeorz@github/items/cc33bf0f26e80c7c500d
$ sudo apt-get install libpam0g-dev
$ sudo apt-get install libssl0.9.8
FROM ubuntu
MAINTAINER Shin Hiroe <hogehoge@mail.com>
RUN echo "upgrade apt sources"
RUN apt-get update
RUN apt-get upgrade -y
RUN echo "install wget"
RUN apt-get install wget -y