Skip to content

Instantly share code, notes, and snippets.

View voluntas's full-sized avatar
🎲
Focusing

V voluntas

🎲
Focusing
View GitHub Profile
@tnoho
tnoho / removeCodec.md
Last active April 29, 2024 16:41
Particular video codec remover from WebRTC SDP

What's this?

Javascript function snippet. It can use for remove video codec from your WebRTC SDP. When you want to test particular video codec, it's very useful!

WebRTCのSDPから特定のコーデックを削除する関数です。 特定のコーデックで試験を行いたい場合、非常に便利にご利用になれます。

Tested Browser

@sile
sile / ppg.md
Last active December 25, 2024 14:26
Plumtree/HyParView/ppgについて

これは何?

注意

  • 内容の質はメモ書きレベル
  • ほぼ思いつきで書いているので正しさの保証も無し
    • ここで紹介したアルゴリズムに興味を持った人は、オリジナルの論文を読むことを推奨

サーバの負荷試験について、やったことの紹介

言いたいこと

  • サーバの負荷試験をやってみた
  • やってよかった
  • もうちょっといい方法があったら教えてほしい

家庭用ゲームのゲームサーバとは

  • 以下のような機能をもつ(タイトルごとに異なる)
  • ユーザ間のマッチング
@t3t5u
t3t5u / gist:d8c1b65e7dbd54ae4549
Last active February 14, 2016 06:23
Plumtree

Push-Lazy-Push Multicast Tree.

高いスケーラビリティ、信頼性 (Reliability) 、回復力 (Resiliency) を達成するため、 流行性のブロードキャスト (Epidemic Broadcast) と、 決定論的なツリーに基づくブロードキャスト (Deterministic Tree-Based Broadcast) を統合する。

純粋な Gossip Protocol と異なり、ブロードキャスト用のツリーを構築するフェーズで、冗長な転送経路が取り除かれるので、重複するメッセージが大量に転送されることはない。

@claws
claws / README.rst
Last active July 16, 2022 13:30
Python asyncio SO_REUSEPORT OSX issue

Python asyncio SO_REUSEPORT OSX issue

Overview

My simple service discovery mechanism is built upon Python 3.4 and the asyncio module. It uses a UDP socket bound to a specified discovery port to allow applications to discover network services. System applications running on the same node bind to the same discovery port in order to receive discovery messages broadcast onto the network.

It is not working on OSX. The current asyncio implementation does not provide a convenient developer access point for setting the SO_REUSEPORT socket option prior to the call to bind.

## Enable kernel poll and a few async threads
+K true
+A 5
+Q 64000
+P 128000
+sbt db
+sbwt very_long
+swt very_low
+sub true
+Mulmbcs 32767
@sile
sile / 0_raft.md
Last active May 27, 2024 07:53
Raft(分散合意アルゴリズム)について
@yuitowest
yuitowest / vim-erlang.md
Created May 5, 2015 16:01
Vim で Erlang してみた
@mganeko
mganeko / parse_webm.js
Last active May 21, 2024 03:06
Parse Binary of WebM file with Node.js
//
// This code parses binary format of WebM file.
// recognizes only some important TAGs
//
// Limitation:
// This programs reads all binary at once in memory (100MB).
// It is very bad imprementation, but it is still enough for some small WebM file.
//
// Usage:
// node parse_webm.js filename