可以使用byobu代替screen,配合tmux使用
F2 创建新的窗口
shift+F2生成水平分隔
ctrl+F2生成垂直分隔
ctrl+shift+F2生成新会话
F3 回到先前窗口
F4:跳到下一个窗口
shift+F3在一个窗口的分隔中回到上一个子窗口,可循环
| var allItems = []testItemType{ | |
| {bson.M{}, | |
| ""}, | |
| {bson.M{"_": float64(5.05)}, | |
| "\x01_\x00333333\x14@"}, | |
| {bson.M{"_": "yo"}, | |
| "\x02_\x00\x03\x00\x00\x00yo\x00"}, | |
| {bson.M{"_": bson.M{"a": true}}, | |
| "\x03_\x00\x09\x00\x00\x00\x08a\x00\x01\x00"}, | |
| {bson.M{"_": []interface{}{true, false}}, |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| echo "blacklist acer_wmi" | sudo tee -a /etc/modprobe.d/blacklist.conf |
可以使用byobu代替screen,配合tmux使用
F2 创建新的窗口
shift+F2生成水平分隔
ctrl+F2生成垂直分隔
ctrl+shift+F2生成新会话
F3 回到先前窗口
F4:跳到下一个窗口
shift+F3在一个窗口的分隔中回到上一个子窗口,可循环
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "strconv" | |
| "net/http" | |
| ) | |
| var code = flag.Int("c", 200, "code") |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "sort" | |
| "strings" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "sort" | |
| "time" | |
| ) | |
| type S []int |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "strconv" | |
| ) | |
| func main() { |
| #!/bin/bash | |
| if [ $# -gt 0 ]; then | |
| (echo "$ "$@ && exec $@) | tee /dev/fd/2 | pbcopy | |
| else | |
| tee /dev/fd/2 | perl -pe 'chomp if eof' | pbcopy | |
| fi |
| #!/bin/bash | |
| export LC_ALL=C | |
| sed -i 's|archive.ubuntu.com|mirrors.ustc.edu.cn|g' /etc/apt/sources.list | |
| apt-get update | |
| apt-get install -y tmux netcat iputils-ping curl dstat lsof mtr tcpdump axel |