https://github.com/mindeng/mac-tools
https://github.com/mindeng/mac-tools
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mindeng/mac-tools
- Owner: mindeng
- Created: 2019-07-06T08:47:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T12:27:14.000Z (almost 7 years ago)
- Last Synced: 2025-02-16T08:27:26.437Z (over 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mac-tools
Tools, configs & tips for Mac.
### Python
```sh
brew install python
pip3 install ipython
pip3 install pycrypto
brew install pipenv
```
## Configs
```sh
git clone git@github.com:mindeng/mac-tools.git && cd mac-tools
python3 ./mac-init.py
```
## Tools
* [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)
* [homebrew](https://brew.sh/)
* Install vim from brew, which supports xclipboard: `brew install vim`
## Proxy
### socks
```sh
mkdir ~/envs && cd envs
python3 -m venv ss
. ss/bin/activate
pip3 install s*s*
cat <> ss/ss.json
{
"server": "server_name",
"server_port": 12345,
"local_address": "127.0.0.1",
"local_port": 1086,
"password": "password",
"timeout": 300,
"method": "chacha20",
"fast_open": false
}
EOT
ss -c ss/ss.json
```
### http proxy
## privoxy
```sh
brew install privoxy
cat <> /usr/local/etc/privoxy/config
forward-socks5t / 127.0.0.1:1086 .
EOT
brew services start privoxy
```
default listen address: 127.0.0.1:8118