Skip to content

Instantly share code, notes, and snippets.

@dmotylev
dmotylev / worker_pool.go
Last active August 27, 2020 16:26
golang's simple worker pool
package internal
import "sync/atomic"
type worker struct {
jobs chan func()
done chan struct{}
}
func newWorker() *worker {
@dmotylev
dmotylev / macos-tmux-256color.md
Created April 20, 2021 16:23 — forked from bbqtd/macos-tmux-256color.md
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):