Skip to content

Instantly share code, notes, and snippets.

@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>
$ 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
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
@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.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.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.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 / 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 / .globalrc
Created April 23, 2011 07:49 — forked from takaokouji/.globalrc
global using rtags
#
# Copyright (c) 1998, 1999, 2000, 2001, 2002, 2003
# Tama Communications Corporation
#
# This file is part of GNU GLOBAL.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
@hiroeorz
hiroeorz / redis_test.erl
Created October 9, 2011 17:55
eredisのテスト
-module(redis_test).
-define(KEY, <<"sample">>).
-export([push_to_list/1, parallel_push_to_list/2, get_from_list/2, delete/0]).
%%--------------------------------------------------------------------
%% @doc Count件数のデータをリストに追加し、最終的な件数と経過時間を表示する.
%%--------------------------------------------------------------------
push_to_list(Count) ->