This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
brew install automake pkg-config libevent | |
git clone https://github.com/tmux/tmux.git | |
cd tmux | |
sh autogen.sh | |
./configure --prefix=$HOME/.local | |
make -j8 && make install | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
brew install automake pkg-config libevent | |
git clone https://github.com/tmux/tmux.git | |
cd tmux | |
sh autogen.sh | |
./configure --prefix=$HOME/.local | |
make -j8 && make install | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo easy_install pip | |
cat ~/.pip/pip.conf | |
[global] | |
index-url = https://mirrors.aliyun.com/pypi/simple | |
[install] | |
trusted-host=mirrors.aliyun.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g allow-rename off | |
set-option -g history-limit 10000 | |
set-option -g mouse on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set history save | |
set history size 100000 | |
set history filename ~/.gdb_history | |
set confirm off | |
set verbose off | |
set print pretty on | |
set print array off | |
set print array-indexes on | |
set trace-commands on | |
set logging on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set solib-search-path ./symbols/usr/lib/ | |
file ./symbols/usr/bin/node | |
dir vm/v8/out | |
target remote :1234 | |
b main | |
c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget from cmake official site | |
tar ... | |
./bootstrap --prefix=${HOME}/.local | |
make -j$(nproc) && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.jianshu.com/p/6274253b78d8 | |
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find the corresponding source, eg 4.15 | |
apt search linux-source | |
sudo apt-get install linux-source-4.15.0 | |
cd /usr/src/linux-source-4.15.0/linux-source-4.15.0/ | |
cp /boot/config-`uname -r` .config && make olddefconfig | |
#now we can modify the config | |
make -j `getconf _NPROCESSORS_ONLN` deb-pkg | |
dpkg -i linux-*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# server: ss and polipo installed. | |
# polipo_port:8123, polipo config proxy type as socks5, and set corresponding ss_port | |
# then ssh to the machine which need proxy from server. assume your ss_port is 1080: | |
# ssh -R <port_on_target_machine>:<proxy_machine_address>:<correspon bindding port> | |
ssh -R 8123:localhost:8123 -R 1080:localhost:1080 target_machine_ip | |
# at target_machine: | |
if [[ "$1" == "off" ]]; then | |
unset http_proxy | |
unset https_proxy |