Skip to content

Instantly share code, notes, and snippets.

@hiroeorz
hiroeorz / console
Last active Aug 29, 2015
nginxをソースからDebianにインストールした時のメモ ref: http://qiita.com/hiroeorz@github/items/d01989155c8496bf16fe
View console
$ sudo /etc/init.d/nginx start
@hiroeorz
hiroeorz / file0.txt
Last active Aug 29, 2015
PeerJSのObjectiveC版 PeerObjectiveC書いてみた ref: http://qiita.com/hiroeorz@github/items/70fcd51d0d8acc87d5c7
View file0.txt
$ curl http://0.peerjs.com:9000/lwjd5qra8257b9/id
@hiroeorz
hiroeorz / file0.txt
Last active Aug 29, 2015
WebRTCでビデオ通話するためにpeerjs-serverをインストールした時のメモ ref: http://qiita.com/hiroeorz@github/items/941d8f18cf8ac61fba52
View file0.txt
$ 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
View file0.c
pjsua_acc_config cfg;
pjsua_acc_config_default(&cfg);
cfg.vid_in_auto_show = PJ_TRUE;
@hiroeorz
hiroeorz / file0.c
Created Nov 2, 2014
PJSUA API - High Level Softphone API 日本語訳 ref: http://qiita.com/hiroeorz@github/items/348668b461b661f51acc
View file0.c
#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 Aug 29, 2015
クラウドにAsterisk立てて[SIPクライアント-(WebRTC)-WEBブラウザ]間でビデオ通話した時のメモ ref: http://qiita.com/hiroeorz@github/items/1092b0ee2503be30792f
View file0.txt
$ 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
View file0.txt
$ git clone https://github.com/basho/riak-ruby-client.git
$ cd riak-ruby-client
$ bundle install --path vendor/bundle
$ bundle exec irb
>
View file0.txt
$ 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 Sep 5, 2014
Riak 2.0.0 へアップグレードする際の注意点 ref: http://qiita.com/hiroeorz@github/items/494cfac481add9594686
View file0.txt
/buckets/<bucket>/keys/<key>
@hiroeorz
hiroeorz / file0.txt
Last active Aug 29, 2015
Riak 2.0.0 インストールから起動まで ref: http://qiita.com/hiroeorz@github/items/cc33bf0f26e80c7c500d
View file0.txt
$ sudo apt-get install libpam0g-dev
$ sudo apt-get install libssl0.9.8
You can’t perform that action at this time.