Skip to content

Instantly share code, notes, and snippets.

View dews's full-sized avatar

Calvin Zheng dews

  • Taichung, Taiwan
View GitHub Profile
@dews
dews / Limit mac bandwidth.md
Last active February 14, 2025 18:43
Limit mac bandwidth

Mac limit bandwidth

Enable firewall

Apple menu -> System Preferences -> Security & Privacy -> Firewall

sudo pfctl -e

Example

sudo dnctl pipe 1 config bw 10Kbit/s

@dews
dews / vim.md
Last active June 13, 2016 11:08
vim
$vim ~/.vimrc
set number
set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins