注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| grep -F "peer->que" hpf_dt.log | awk '{print $(NF-2) $NF}' | sort -r |uniq |
| /** | |
| * https://leetcode-cn.com/playground/VDCGQ8Ds/ | |
| * | |
| * Definition for a binary tree node. | |
| */ | |
| public class TreeNode { | |
| public int val; | |
| public TreeNode left; |
| Public Sub ExportPages() | |
| 'Declare object variables as Visio object types. | |
| Dim vsoPage As Visio.Page | |
| Dim vsoDocument As Visio.Document | |
| Dim vsoDocuments As Visio.Documents | |
| Dim vsoPages As Visio.Pages | |
| 'Iterate through all open documents. | |
| Set vsoDocuments = Application.Documents |
| Private Sub Worksheet_Change(ByVal Target As Range) | |
| ' Developed by Contextures Inc. | |
| ' www.contextures.com | |
| Dim rngDV As Range | |
| Dim oldVal As String | |
| Dim newVal As String | |
| If Target.Count > 1 Then GoTo exitHandler | |
| On Error Resume Next | |
| Set rngDV = Cells.SpecialCells(xlCellTypeAllValidation) |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart| export LS_COLORS='no=00:fi=00:di=34:ow=34;40:ln=35:pi=30;44:so=35;44:do=35;44:bd=33;44:cd=37;44:or=05;37;41:mi=05;37;41:ex=01;31:*.cmd=01;31:*.exe=01;31:*.com=01;31:*.bat=01;31:*.reg=01;31:*.app=01;31:*.txt=32:*.org=32:*.md=32:*.mkd=32:*.h=32:*.c=32:*.C=32:*.cc=32:*.cpp=32:*.cxx=32:*.objc=32:*.sh=32:*.csh=32:*.zsh=32:*.el=32:*.vim=32:*.java=32:*.pl=32:*.pm=32:*.py=32:*.rb=32:*.hs=32:*.php=32:*.htm=32:*.html=32:*.shtml=32:*.erb=32:*.haml=32:*.xml=32:*.rdf=32:*.css=32:*.sass=32:*.scss=32:*.less=32:*.js=32:*.coffee=32:*.man=32:*.0=32:*.1=32:*.2=32:*.3=32:*.4=32:*.5=32:*.6=32:*.7=32:*.8=32:*.9=32:*.l=32:*.n=32:*.p=32:*.pod=32:*.tex=32:*.go=32:*.bmp=33:*.cgm=33:*.dl=33:*.dvi=33:*.emf=33:*.eps=33:*.gif=33:*.jpeg=33:*.jpg=33:*.JPG=33:*.mng=33:*.pbm=33:*.pcx=33:*.pdf=33:*.pgm=33:*.png=33:*.PNG=33:*.ppm=33:*.pps=33:*.ppsx=33:*.ps=33:*.svg=33:*.svgz=33:*.tga=33:*.tif=33:*.tiff=33:*.xbm=33:*.xcf=33:*.xpm=33:*.xwd=33:*.xwd=33:*.yuv=33:*.aac=33:*.au=33:*.flac=33:*.m4a=33:*.mid=33:*.midi=33:*.mka=33:*.mp3=33:*.mpa=33:*.mpe |
| [Unit] | |
| Description=ShadowsocksR client | |
| After=network.target | |
| Wants=network.target | |
| [Service] | |
| Type=forking | |
| PIDFile=/var/run/shadowsocksr.pid | |
| ExecStart=/usr/bin/python /opt/shadowsocksr/shadowsocks/local.py -c /etc/shadowsocks.json -d start | |
| ExecStop=/usr/bin/python /opt/shadowsocksr/shadowsocks/local.py -c /etc/shadowsocks.json -d stop |
| # 采用curl命令行方式 | |
| # 我的用户名 21851075,密码 123456ABC | |
| username=21851075 | |
| password=123456ABC | |
| pass1=$(echo -n $password | md5sum |cut -d ' ' -f1) | |
| pass2=$(echo ${pass1:8:16}) | |
| curl -H "Content-Type: application/x-www-form-urlencoded" \ | |
| -b srun_login=$username%7C$password \ | |
| -A "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36" \ | |
| -d "username=$username&password=$pass2&drop=0&type=1&n=100" \ |
| // 判断go语言中变量的类型 | |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| var container = []string{"zero", "one", "two"} | |
| func main() { |