macOS: synergy free for macos 10.15 and ubuntu 20.x

macos:

brew install qt cmake openssh git
git clone https://github.com/symless/synergy-core.git
cd synergy-core
mkdir build
cd build
cmake .. -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk  -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_PREFIX_PATH=$(brew --prefix qt5)
make
cd bin
cat < synergy.conf
section: screens
    linux:
    macbook:
end
section: links
    macbook:
        left  = linux
    linux:
        right = macbook
end
section: aliases
    macbook:
        ryan-mac
    linux:
        ryan-stx
end
section: options
end
EOF
#Security & Privacy > Accessibility add terminal app (iTerm) 
./synergys -a 192.168.1.1 -c synergy.conf -n macbook

linux:

apt install cmake gcc make g++ libx11-dev libxtst-dev libavahi-compat-libdnssd-dev qt5-default qttools5-dev libssl-dev git
git clone https://github.com/symless/synergy-core.git
cd synergy-core/
mkdir build
cd build/
cmake ..
make
./synergyc -n linux 192.168.1.1

MacOS:修改 software limit

今天小編要做壓力測試,用了在linux 常的工具 siege ,沒想到一打下去不是網站掛了,而是打不出去


在linux 不能難解, 下個ulimit -n xxxx 就好了, 所以我就下了
啊斯,我又要開始為難我自己..
參考這裡
打完收工,但這應該只有單次應用,永遠設定等我研究好再更新

MacOS-mkvtoolnix-mkv 編輯指令

mkvtoolnix

mkvtoolnix 可以拿來做 mkv 簡單的併接,剪裁,字幕加減等等
缺點是在mac 上不支援GUI
安裝:

會產以下4個tool
mkvextract mkvinfo mkvmerge mkvpropedit
本次僅使用 add srt 的功能

languages 有iso , 可用以下指令查詢
mkvmerge –list-languages
4G 檔案走SMB,大概只花了不到5分鐘,蠻快的