Skip to content

Instantly share code, notes, and snippets.

View jj1bdx's full-sized avatar
🏠
Working from home

Kenji Rikitake jj1bdx

🏠
Working from home
View GitHub Profile
@mbostock
mbostock / .block
Last active March 1, 2024 06:07
The Gist to Clone All Gists
license: gpl-3.0

Today is my last day at Basho.

I've been staring at this buffer for twenty minutes now, trying to figure out how to capture the tumult of feelings I have on the topic. I've had the honor of working with some amazingly sharp people who have changed the way I look at teams, code and life. I leave Basho knowing that I'm a better, more complete person than when I joined and I'm deeply grateful for it. It's a bittersweet thing to turn and start a next adventure.

At the same time, I'm deeply excited to be joining the team at Singly and work to make the world a more connected place. I'm looking forward to getting back to my early-stage roots and all the uncertainty and promise these types of endeavours encompass.

So to my Basho coworkers, know that I leave with a grateful and humbled heart to have had the opportunity to work with you. I hope to work with many of you again in the future and believe you will go on to do great things in the world of distributed systems -- as you already have! Go

@kuenishi
kuenishi / gist:4007376
Created November 3, 2012 13:25
erlang-users.jp 新サイト コンテンツ案

このサイトでできるようになると嬉しいこと

  • Erlang/OTPユーザーを増やす (Increase Japanese Erlang/OTP users)
  • Erlang/OTPユーザーを幸福にする (Make Japanese Erlang/OTP users happier)
  • 日本語話者の初心者が最初に見るサイト - いくつも入門サイトはあるが決定版をつくりたい、情報が古かったりする
  • 日本語情報の集約
  • 各種情報のポータル (自動化を信用しない)
  • 日本のErlangコミュニティの歴史を記録する
@voluntas
voluntas / trap.rst
Created December 27, 2012 04:58
継続開発の罠
@vinoski
vinoski / fd_setsize_on_osx.md
Last active November 7, 2017 06:20
How to raise the maximum number of file descriptors when building Erlang/OTP on OS X.

When you build Erlang/OTP on OS X, it unfortunately defaults to handling a maximum of 1024 file descriptors. You can get around this limitation with the right combination of configuration options and manual changes to a generated config file.

First, go into your unpacked Erlang/OTP source directory and run the following command, replacing the value 10000 with whatever value you want for max file descriptors:

perl -i -pe 's/(define\s+FD_SETSIZE\s+)\d+/\1 10000/' erts/config.h.in 

Next, when you run configure in your Erlang/OTP source directory, be sure to include the right CFLAGS setting, as shown below:

CFLAGS='-DREDEFINE_FD_SETSIZE -DFD_SETSIZE=15000 -D_DARWIN_UNLIMITED_SELECT' ./configure --enable-kernel-poll <other options>
@jjgod
jjgod / CCacheMacNinja.md
Last active October 31, 2023 06:57
Using ccache for Mac builds

Introduction

ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.

In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.

Installation

To install ccache with [homebrew](http://mxcl.

@kuenishi
kuenishi / Erlang_risk.md
Last active December 14, 2015 09:09 — forked from repeatedly/d_risk.md

ついに顕在化し始めてもいない「Erlang/OTPリスク」

英語圏ではかなり前からErlang/OTPを開発し続けることのリスクについて語られていたが,具体的な弊害が出て来たので,単なるメモ.日本では起こり得ない未来だと思う.

若手エンジニアの不足

COBOLのように需要が逼迫しているのに人材の供給が増えず需給ミスマッチが起っているわけでは無く,需要も供給も増えないという状況下でわずかながら需要が上回っている質の悪い状況がErlang/OTPに起きている.特に深刻なのは高価な若手エンジニアの採用が絶望的に難しいという現実だ.Haskellが台頭して数年経ちScalaがメインストリームの先頭を突っ走る2013年において全く別の関数型言語もどきを勉強しようとする若者はよほどの物好きしかいない.20~30歳のErlang/OTPエンジニアを雇うのはそれほど難しい上にコストがかかる.優秀な30代前半の若手エンジニアを雇いたいという企業の思いとは裏腹にErlang/OTP新たに学ぶ若者は絶滅寸前だ.

とても優秀な若手を雇用できるチャンスが巡って来た.採用担当者はこう尋ねる.「Erlang/OTPは習得していますか?」「もちろんRuby/Scalaはお手の物です.Haskellもある程度可能です」「もう一度伺いますがErlang/OTPまたはCは習得していますか?」「申し訳ございません 未習得です」

@umq
umq / devel_luaposix.shar
Last active December 16, 2015 02:49
FreeBSD ports patch to make lang/lua52 honor Mk/bsd.lua.mk
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# devel/luaposix
# devel/luaposix/files
# devel/luaposix/files/patch-lposix.c
@maxlapshin
maxlapshin / mpegts_alloc.S
Created May 7, 2013 09:34
mpegts_alloc:new(1000000). returns preallocated binary with size 1000000 that can be filled with your data.
{module, mpegts_alloc}. %% version = 0
{exports, [{module_info,0},{module_info,1},{new,1}]}.
{attributes, []}.
{labels, 7}.
{function, new, 1, 2}.
@seriyps
seriyps / walker_alias.erl
Last active February 15, 2022 14:07
Walker alias method implemented in Erlang
%%% @author Sergey Prokhorov <me@seriyps.ru>
%%% @copyright (C) 2013, Sergey Prokhorov
%%% @doc
%%% @license Apache License Version 2.0
%%%
%%% Walker alias method - efficient random selection with defined probabilities.
%%% <http://en.wikipedia.org/wiki/Alias_method>
%%%
%%% > ProbabilityValueList = [{10, a}, {20, b}, {30, c}, {40, d}],
%%% > WalkerVectors = walker_alias:build(ProbabilityValueList),