注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| import re | |
| ntfs_pattern = re.compile(r'File System Personality: NTFS') | |
| ntfs_device_node = re.compile(r'.*Device Node:.*') | |
| device_dict = {} |
| #!/bin/bash | |
| # Find out current screen width and hight | |
| _COLUMNS=$(tput cols) | |
| # Set default message if ( input not provided | |
| _MESSAGE=" FBI Warining " | |
| # Calculate x and y coordinates so that we can display $MESSAGE | |
| # centered in the screen | |
| y=$(( ( $_COLUMNS - ${#_MESSAGE} ) / 2 )) | |
| spaces=$(printf "%-${y}s" " ") | |
| # Alright display message stored in $_MESSAGE |
$ text-builder -index /path/to/index.txt
Or run $ sh build-all to build all your index files.本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.
| language: android | |
| android: | |
| components: | |
| # Uncomment the lines below if you want to | |
| # use the latest revision of Android SDK Tools | |
| - platform-tools | |
| - tools | |
| # The BuildTools version used by your project | |
| - build-tools-22.0.0 |
| # /etc/nginx/sites-available/fanfou.shellex.info | |
| # 这儿假设的域名是 fanfou.shellex.info | |
| # 请替换为实际的域名 | |
| server { | |
| resolver 8.8.8.8; | |
| listen 443; | |
| server_name fanfou.shellex.info; | |
| ssl on; |
| $ LD_PRELOAD=$PWD/sendmsg.so dig twitter.com @8.8.8.8 | |
| ;; Warning: Message parser reports malformed message packet. <-- malformed 因为把压缩指针当作域名一部分了 | |
| ;; Question section mismatch: got twitter.com/RESERVED0/CLASS256 | |
| ; <<>> DiG 9.9.5-3-Ubuntu <<>> twitter.com @8.8.8.8 | |
| ;; global options: +cmd | |
| ;; Got answer: | |
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44722 | |
| ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1 |
Eric Steven Raymond, Thyrsus Enterprises, < [email protected] >
Rick Moen, < [email protected] >
翻译:柯非, < [email protected] >
这篇译文基于2014.05.21更新的原文修订版3.10。
特别感谢王刚,此前本文的翻译是由他进行的。
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| var cv = document.getElementById('cv'); | |
| var c = cv.getContext('2d'); | |
| var txtDiv = document.getElementById('txt'); | |
| var fileBtn = document.getElementById("up-button"); | |
| var img = new Image(); | |
| img.src = 'a.jpg'; | |
| img.onload = init; // 图片加载完开始转换 | |
| fileBtn.onchange = getImg; | |
| // 根据灰度生成相应字符 |