start new:
tmux
start new with session name:
tmux new -s myname
| https://www.kxxzz.com/xx/367.html | |
| https://github.com/233boy/v2ray/wiki/V2Ray%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC | |
| 安装BBR加速: | |
| 对于youtube速度差别很大 | |
| wget https://d.kxxzz.com/sh/tcp2020/tcp.sh | |
| chmod +x tcp.sh | |
| ./tcp.sh | |
| 选择 bbr plus |
| - 动态规划 | |
| - 拓扑排序 |
| ## 最重要的 | |
| - 椅子扶手和桌面平,也就是和放键盘的位置相平,打字时手肘有依托 | |
| - 可以半躺式打字,看屏幕,椅背角度大概120度-130左右 | |
| - 脚可以完全伸出去 | |
| #! /bin/bash | |
| set -e # Exit script immediately on first error. | |
| #set -x # Print commands and their arguments as they are executed. | |
| NON_UTF_FILE_DIR="wiki" | |
| PATTERN_FILE_NAME="*.md" | |
| find $NON_UTF_FILE_DIR -type f -name $PATTERN_FILE_NAME > utf8list | |
| iconv utf8list > asciilist |
| ssh-keygen -b 4096 -t rsa | |
| xpanes -c 'ssh-copy-id -i ~/.ssh/id_rsa.pub root@node{}' {0..5} | |
| xpanes -c 'ssh root@node{}' {0..5} |
| #!/bin/bash | |
| # ssh-multi | |
| # D.Kovalov | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
| # a script to ssh multiple servers over multiple tmux panes | |
| starttmux() { | |
| if [ -z "$HOSTS" ]; then |
| ssh() { | |
| if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux" ]; then | |
| tmux rename-window "$(echo $*)" | |
| command ssh "$@" | |
| tmux set-window-option automatic-rename "on" 1>/dev/null | |
| else | |
| command ssh "$@" | |
| fi | |
| } |
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) | |
| #First year programmer, studied Pascal |