国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

命令行錄制工具 asciinema

enali / 1553人閱讀

摘要:平常出求助的時候有時候貼代碼或者截圖往往不直觀,如果能重現給對方看就好了,這里推薦個命令行的錄制工具。執行開始錄制錄制完成后退出,可以保存到本地或者上傳到。錄制過程在可以看到了。這個就是錄制生成的文件,可以直接用瀏覽器打開。

平常出bug求助的時候有時候貼代碼或者截圖往往不直觀,如果能重現給對方看就好了,這里推薦 2 個命令行的錄制工具。

asciinema

網站https://asciinema.org/ ,github主頁https://github.com/asciinema
直接使用 pip install asciinema 來安裝。
執行asciinema rec 開始錄制,錄制完成后 exit 退出,可以保存到本地或者上傳到 https://asciinema.org

[root@VM_0_14_centos ~]# asciinema rec
asciinema: recording asciicast to /tmp/tmp1ua5a2rx-ascii.cast
asciinema: press  or type "exit" when you"re done
[root@VM_0_14_centos ~]# pwd
/root
[root@VM_0_14_centos ~]# cd /usr/share/nginx/html/
[root@VM_0_14_centos html]# pip install asciinema
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won"t be maintained after March 2019 (cf PEP 429).
Looking in indexes: http://mirrors.tencentyun.com/pypi/simple
Requirement already satisfied: asciinema in /usr/lib/python3.4/site-packages (2.0.2)
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the "pip install --upgrade pip" command.
[root@VM_0_14_centos html]# pip list |grep ascii
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won"t be maintained after March 2019 (cf PEP 429).
asciinema              2.0.2
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the "pip install --upgrade pip" command.
[root@VM_0_14_centos html]# exit
exit
asciinema: recording finished
asciinema: press  to upload to asciinema.org,  to save locally

View the recording at:

    https://asciinema.org/a/AdnqMX0QfOg5c7USOtwHZ4Hz1

This installation of asciinema recorder hasn"t been linked to any asciinema.org
account. All unclaimed recordings (from unknown installations like this one)
are automatically archived 7 days after upload.

If you want to preserve all recordings made on this machine, connect this
installation with asciinema.org account by opening the following link:

    https://asciinema.org/connect/01fb0f0e-c56a-450f-80ac-4020188dd957

錄制過程在https://asciinema.org/a/AdnqM... 可以看到了。

如果分享給他人可以用郵箱注冊,它不需要密碼就可以注冊。我注冊后的主頁https://asciinema.org/~susheng
然后打開這個鏈接 https://asciinema.org/connect... 就會保存到你賬號下。

設置為public 后可生成公開鏈接,可分享給他人觀看,還可以嵌入到自己的網站。

視頻鏈接后加 .png 是視頻截圖 https://asciinema.org/a/25434... ,而鏈接后加 .js 就可以直接嵌入網站了。


TermRecord

TermRecord也是用 pip 安裝 pip install TermRecord, 直接開始錄制 TermRecord -o termrecord.html 輸入 exit 結束錄制 。這個 termrecord.html 就是錄制生成的文件,可以直接用瀏覽器打開。

[root@VM_0_14_centos html]# TermRecord -o termrecord.html
Script started, file is /tmp/tmpdekpz_p2
[root@VM_0_14_centos html]# pwd
/usr/share/nginx/html
[root@VM_0_14_centos html]# whoami
root
[root@VM_0_14_centos html]# pip install TermRecord
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won"t be maintained after March 2019 (cf PEP 429).
Looking in indexes: http://mirrors.tencentyun.com/pypi/simple
Requirement already satisfied: TermRecord in /usr/lib/python3.4/site-packages (1.2.5)
Requirement already satisfied: Jinja2>=2.6 in /usr/lib64/python3.4/site-packages (from TermRecord) (2.10.1)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib64/python3.4/site-packages (from Jinja2>=2.6->TermRecord) (1.1.1)
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the "pip install --upgrade pip" command.
[root@VM_0_14_centos html]# pip list|grep Term
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won"t be maintained after March 2019 (cf PEP 429).
TermRecord             1.2.5
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the "pip install --upgrade pip" command.
[root@VM_0_14_centos html]# exit
exit
Script done, file is /tmp/tmpdekpz_p2

然后打開文件就可以看到錄制過程了

另外還有個基于ruby的showterm和termtosvg就不演示了 http://showterm.io/
https://github.com/nbedos/termtosvg

推薦閱讀:

那些你可能不知道的瀏覽器奇技淫巧

那些你可能不知道的微信奇技淫巧

那些你可能不知道的微博奇技淫巧

那些你可能不知道的網易云音樂奇技淫巧

那些你可能不知道的搜索奇技淫巧

那些你可能不知道的視頻下載奇技淫巧

那些你可能不知道的免費觀看 VIP 視頻奇技淫巧

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。

轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/45128.html

相關文章

  • 那些有趣/用的 Python 庫

    摘要:梁振英在星期二月日的答問大會開始之際在其演說中道歉,但強調他在違章建筑問題上沒有隱瞞的意圖和動機。 圖片處理 pip install pillow from PIL import Image import numpy as np a = np.array(Image.open(test.jpg)) b = [255,255,255] - a im = Image.fromarray(...

    Pikachu 評論0 收藏0
  • VIM宏初體驗

    摘要:,法師拉餐桌吐槽宏等。計算機科學里的宏,是一種批量批處理的稱謂。這里的的意識就是執行指定寄存器里的內容,也就是我們做好的宏。宏初體驗就到這里年月日補充用錄制的,非常方便的錄屏工具。 第一次知道宏這東西是在word里面,經常莫名其妙彈出一個框說宏xxxxx,完全不明所以。那時候只知道有宏那么個東西,至于他是干嘛的,壓根不知曉。 第一次用宏還是在玩WOW的時候,那時候流行在動作上加上一些個...

    explorer_ddf 評論0 收藏0

發表評論

0條評論

enali

|高級講師

TA的文章

閱讀更多
最新活動
閱讀需要支付1元查看
<