Skip to content

Instantly share code, notes, and snippets.

@MOHENOO
MOHENOO / macos-tmux-256color.md
Created December 9, 2022 06:46 — 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):

@MOHENOO
MOHENOO / corplink.nix
Last active May 7, 2025 08:46 — forked from YangKeao/corplink.nix
A package for Feilian on Nix OS
@MOHENOO
MOHENOO / work.yaml
Last active October 17, 2024 06:41
Work.yaml
port: 1087
socks-port: 1080
allow-lan: false
mode: rule
log-level: info
external-controller: :9090
proxies:
- {name: home, server: 192.168.100.1, port: 1080, type: socks5}
- {name: work, server: 127.0.0.1, port: 12345, type: socks5}
proxy-groups:
# https://docs.zerotier.com/whitelist/
DOMAIN-REGEX,root.*.zerotier.com
# tailscale https://login.tailscale.com/derpmap/default
DOMAIN-REGEX,derp.*.tailscale.com
# ipv4
IP-CIDR,199.38.181.104/32,no-resolve
IP-CIDR,209.177.145.120/32,no-resolve
IP-CIDR,199.38.181.93/32,no-resolve
IP-CIDR,199.38.181.103/32,no-resolve
IP-CIDR,192.73.240.161/32,no-resolve
@MOHENOO
MOHENOO / lws.json
Created October 11, 2025 02:59
k8s leaderworkset crd
This file has been truncated, but you can view the full file.
{
"description": "LeaderWorkerSet is the Schema for the leaderworkersets API",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"