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

資訊專欄INFORMATION COLUMN

命令行神器推薦

gekylin / 3826人閱讀

摘要:作為程序員都習慣在命令行下操作,今天就推薦些命令行神器,可能讓你大開眼界。例太陽出來了,時間很短。網頁截圖更多用爽截圖命令行工具公眾號蘇生不惑

作為程序員都習慣在命令行下操作,今天就推薦些命令行神器,可能讓你大開眼界。

統計當前目錄代碼數 line-counter

</>復制代碼

  1. //https://github.com/MorganZhang100/line-counter
  2. //find . -name "*.py" -exec wc -l {} +
  3. //wc -l
  4. pip install line-counter
  5. $ line
  6. Search in /Users/Morgan/Documents/Example/
  7. file count: 4
  8. line count: 839
  9. $ line -d
  10. Search in /Users/Morgan/Documents/Example/
  11. Dir A/file C.c 72
  12. Dir A/file D.py 268
  13. file A.py 467
  14. file B.c 32
  15. file count: 4
  16. line count: 839
  17. //https://github.com/AlDanial/cloc
  18. npm install -g cloc
  19. $ cloc wechat-cli.py
  20. 1 text file.
  21. 1 unique file.
  22. 0 files ignored.
  23. github.com/AlDanial/cloc v 1.72 T=0.14 s (7.4 files/s, 779.4 lines/s)
  24. -------------------------------------------------------------------------------
  25. Language files blank comment code
  26. -------------------------------------------------------------------------------
  27. Python 1 12 7 87
  28. -------------------------------------------------------------------------------
命令行糾錯 thefuck

</>復制代碼

  1. //https://github.com/nvbn/thefuck
  2. pip install thefuck
  3. ? apt-get install vim
  4. E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
  5. E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
  6. ? fuck
  7. sudo apt-get install vim
  8. [sudo] password for nvbn:
  9. Reading package lists... Done
markdown to html

</>復制代碼

  1. npm install -g codedog
  2. codedog xx.md or codedog xx.md width height
mysql 客戶端,支持語法高亮和命令補全 mycli

</>復制代碼

  1. // https://github.com/dbcli/mycli
  2. pip install -U mycli
  3. $ mycli -h localhost -uroot
  4. Password:
  5. Version: 1.8.0
  6. Chat: https://gitter.im/dbcli/mycli
  7. Mail: https://groups.google.com/forum/#!forum/mycli-users
  8. Home: http://mycli.net
  9. Thanks to the contributor - Tech Blue Software
  10. mysql root@localhost:(none)> use test
  11. You are now connected to database "test" as user "root"
  12. Time: 0.005s
  13. mysql root@localhost:test> show t
  14. TABLE STATUS
  15. TABLE STATUS
  16. TABLES
  17. TABLES
  18. TRIGGERS
  19. TRIGGERS
  20. STATUS
  21. [F2] Smart Completion: ON [F3] Multiline: OFF [F4] Emacs-mode
基于puppeteer的網頁截圖工具

</>復制代碼

  1. $ npm install -g vian
  2. (1)截取 github 首頁
  3. $ vian https://github.com
  4. (2)截取 github 首頁 (非全屏)
  5. $ vian --no-fullpage https://github.com
  6. (3)保存 github 首頁為圖片,模擬 iPhone 6
  7. $ vian -d "iPhone 6" -f github.jpg https://github.com
  8. (4)保存 github 首頁為 pdf 文檔,紙張尺寸選擇 A4
  9. $ vian -t pdf -s A4 https://github.com
  10. (5)查看所有的可模擬設備
  11. $ vian devices
  12. //https://github.com/Runjuu/page2image
  13. npm i page2image --global
  14. # Single page
  15. > page2image https://github.com/Runjuu --type=jpeg --quality=80
  16. # Multi-page
  17. > page2image https://github.com/Runjuu https://github.com/Runjuu --type=jpeg --quality=80
一個生成pdf文件的微服務

npm install -g pdf-bot

json文件處理以及格式化顯示,支持高亮,可以替換python -m json.tool

</>復制代碼

  1. //https://github.com/stedolan/jq http://blog.chinaunix.net/uid-24774106-id-3830242.html
  2. $ cat json_raw.txt
  3. {"name":"Google","location":{"street":"1600 Amphitheatre Parkway","city":"Mountain View","state":"California","country":"US"},"employees":[{"name":"Michael","division":"Engineering"},{"name":"Laura","division":"HR"},{"name":"Elise","division":"Marketing"}]}
  4. cat json_raw.txt | jq ".location.state"
  5. "California"
  6. echo "{"foo": 42, "bar": "less interesting data"}" | jq .nofoo
  7. null
  8. cat json_raw.txt | jq "keys"
  9. [
  10. "employees",
  11. "location",
  12. "name"
  13. ]
shell腳本靜態檢查工具 shellcheck

</>復制代碼

  1. //https://github.com/koalaman/shellcheck
  2. apt-get install shellcheck
  3. shellcheck test.sh
多線程下載工具 axel

</>復制代碼

  1. // axel.alioth.debian.org/
  2. sudo apt-get install axel
  3. axel -n 10 -a
  4. axel -n 20 http://centos.ustc.edu.cn/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso
命令行請求工具 httpie

</>復制代碼

  1. //https://httpie.org/ https://github.com/jakubroztocil/httpie
  2. pip install --upgrade httpie
  3. http PUT example.org X-API-Token:123 name=John
  4. http -f POST example.org hello=World
  5. http example.org/file > file
  6. http httpbin.org/post -- -name-starting-with-dash=foo -Unusual-Header:bar
  7. POST /post HTTP/1.1
  8. -Unusual-Header: bar
  9. Content-Type: application/json
  10. {
  11. "-name-starting-with-dash": "value"
  12. }
命令行文檔 tldr

</>復制代碼

  1. // https://github.com/tldr-pages/tldr
  2. npm install -g tldr
  3. $ tldr curl
  4. Cache is out of date, you should run "tldr --update"
  5. curl
  6. Transfers data from or to a server.
  7. Supports most protocols including HTTP, FTP, POP.
  8. - Download a URL to a file:
  9. curl "URL" -o filename
  10. - Send form-encoded data:
  11. curl --data name=bob http://localhost/form
  12. - Send JSON data:
  13. curl -X POST -H "Content-Type: application/json" -d "{"name":"bob"}" http://
  14. localhost/login
  15. - Specify an HTTP method:
  16. curl -X DELETE http://localhost/item/123
  17. - Head request:
  18. curl --head http://localhost
  19. - Include an extra header:
  20. curl -H "X-MyHeader: 123" http://localhost
  21. - Pass a user name and password for server authentication:
  22. curl -u myusername:mypassword http://localhost
命令行提示工具 cheat

</>復制代碼

  1. //https://github.com/chrisallenlane/cheat
  2. pip install cheat
  3. cheat tar
  4. # To extract an uncompressed archive:
  5. tar -xvf "/path/to/foo.tar"
  6. # To extract a .gz archive:
  7. tar -xzvf "/path/to/foo.tgz"
  8. # To create a .gz archive:
  9. tar -czvf "/path/to/foo.tgz" "/path/to/foo/"
  10. # To extract a .bz2 archive:
  11. tar -xjvf "/path/to/foo.tgz"
  12. # To create a .bz2 archive:
  13. tar -cjvf "/path/to/foo.tgz" "/path/to/foo/"
后臺運行和管理進程 pm2 同python的supervisoerd

</>復制代碼

  1. //http://pm2.keymetrics.io/
  2. npm install pm2 -g
  3. pm2 list
在命令行實時監控 Nginx 的神器 ngxtop

</>復制代碼

  1. //https://linux.cn/article-3205-1.html
  2. pip install ngxtop
  3. ngxtop -n 20
  4. ngxtop info
python代碼格式規范化工具 yapf

</>復制代碼

  1. //https://github.com/google/yapf
  2. pip install yapf
  3. >>> from yapf.yapflib.yapf_api import FormatCode # reformat a string of code
  4. >>> FormatCode("f ( a = 1, b = 2 )")
  5. "f(a=1, b=2)
  6. "
命令行下模糊搜索工具 fzf

</>復制代碼

  1. //https://github.com/junegunn/fzf
  2. brew install fzf
  3. find * -type f | fzf > selected
網易云音樂命令行版本 musicbox

</>復制代碼

  1. //https://github.com/darknessomi/musicbox
  2. pip(3) install NetEase-MusicBox
  3. $ git clone https://github.com/darknessomi/musicbox.git && cd musicbox
  4. $ python(3) setup.py install
多線程下載工具 aria2

</>復制代碼

  1. //https://github.com/aria2/aria2
  2. aria2c http://a/f.iso ftp://b/f.iso
  3. aria2 下載百度云鏈接https://github.com/acgotaku/BaiduExporter
比 python -m SimpleHTTPServer 更好的 http 服務器 http-server

</>復制代碼

  1. //https://github.com/indexzero/http-server
  2. npm install http-server -g
  3. http-server 8888
  4. alias hs="source ~/.bash_profile && http-server -a $(ifconfig en0 | grep "inet " | cut -d " " -f 2)"
  5. //瀏覽器打開http://localhost:8888
獲取漢字拼音 pypinyin

</>復制代碼

  1. pip install pypinyin
  2. $ pypinyin 有哪些命令行的軟件堪稱神器
  3. yǒu něi xiē mìng lìng xíng de ruǎn jiàn kān chē
Nginx配置靜態分析器

</>復制代碼

  1. https://github.com/yandex/gixy
  2. pip install gixy
  3. gixy /etc/nginx/nginx.conf
HTTP Prompt

</>復制代碼

  1. pip install http-prompt
  2. pip install httpie
  3. # No parameters initially
  4. > httpie
  5. http http://localhost
  6. # Send a request with some overrided parameters
  7. > post /api/v1 --form name=jane
  8. # Current state remains intact
  9. > httpie
  10. http http://localhost

node ppt

</>復制代碼

  1. https://github.com/ksky521/nodePPT
  2. npm install -g nodeppt
  3. 執行 nodeppt start
  4. 訪問 http://127.0.0.1:8080/
  5. 在線demo: http://js8.in/nodeppt/

檢查瀏覽器的兼容性

</>復制代碼

  1. npm install -g caniuse-cmd
  2. $ caniuse flex
  3. Flexible Box Layout Module √ 83.86% Θ 13.63% [W3C Candidate Recommendation]
  4. Method of positioning elements in horizontal or vertical stacks. Support
  5. includes the support for the all properties prefixed with `flex` as well as
  6. `display: flex`, `display: inline-flex`, `align-content`, `align-items`,
  7. `align-self`, `justify-content` and `order`. #CSS3
  8. IE × 5.5+ Θ 10+?2 Θ 11?
  9. Edge
  10. Firefox Θ 2+?1 Θ 22+3 √ 28+
  11. Chrome Θ 4+?1 √ 21+? √ 29+
  12. Safari Θ 3.1+?1 √ 6.1+? √ 9+
  13. Opera × 9+ √ 12.1+ √ 15+? √ 17+
  14. 1Only supports the [old
  15. flexbox](http://www.w3.org/TR/2009/WD-css3-flexbox-20090723) specification
  16. and does not support wrapping.
  17. 2Only supports the [2012
  18. syntax](http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/)
  19. 3Does not support flex-wrap, flex-flow or align-content properties
  20. ?Partial support is due to large amount of bugs present (see known issues)
  21. ? Most partial support refers to supporting an [older
  22. version](http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/) of the
  23. specification or an [older
  24. syntax](http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/).
命令行翻譯工具

</>復制代碼

  1. npm install terminal-translate -g
  2. //類似 npm install fanyi -g https://github.com/afc163/fanyi
  3. $ tl great
  4. ~ great - [gre?t][ɡret][gre?t]
  5. ~ 偉大的
  6. - n. 大師;大人物;偉人們
  7. - adj. 偉大的,重大的;極好的,好的;主要的
  8. 1. Great
  9. 偉大的,Great,Great
  10. 2. Great Lakes
  11. 五大湖,五大湖,大湖區
  12. 3. Great Recession
  13. 經濟大衰退,大衰退,大蕭條
短域名工具

npm i -g u.nu

圖片識別

</>復制代碼

  1. npm install baidu-ocr-api -g
  2. ocr --help
  3. # 遠程圖片
  4. ocr http://7pun4e.com1.z0.glb.clouddn.com/test.jpg
  5. # 本地圖片
  6. ocr ./test.jpg
文件比較

</>復制代碼

  1. npm install -g diffchecker
  2. diffchecker file1.js file2.js
  3. diffchecker --expires day file1.js file2.js
分享文件

</>復制代碼

  1. # Uploading is easy using curl
  2. $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
  3. https://transfer.sh/66nb8/hello.txt
  4. $ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt https://transfer.sh/hello.txt
  5. https://transfer.sh/66nb8/hello.txt
  6. # Download the file
  7. $ curl https://transfer.sh/66nb8/hello.txt -o hello.txt
send emails

</>復制代碼

  1. First, create a config.json with your SMTP settings:
  2. {
  3. "host": "smtp.foobar.net",
  4. "port": 465,
  5. "user": "noreply",
  6. "pass": "foobar!"
  7. }
  8. Install the app and start it up to point at the config:
  9. npm i mailit -g
  10. mailit --config /path/to/config.json
  11. And presto, a mail endpoint! Let"s try it out:
  12. curl --data "to=d@me.net&subject=hi&text=hey world" http://127.0.0.1:3000/email
learnyoubash

npm install -g bash-handbook

網易云音樂下載器

</>復制代碼

  1. $ git clone https://github.com/codezjx/netease-cloud-music-dl.git
  2. $ python setup.py install
  3. $ ncm -s 123123
  4. or
  5. $ ncm -s http://music.163.com/#/song?id=123123
curl 統計分析 httpstat

</>復制代碼

  1. pip install httpstat
  2. httpstat httpbin.org/get

清除多余 css

</>復制代碼

  1. //https://github.com/purifycss/purifycss
  2. $ npm install -g purify-css
  3. $ purifycss -h
  4. purifycss [option]
  5. Options:
  6. -m, --min Minify CSS [boolean] [default: false]
  7. -o, --out Filepath to write purified css to [string]
  8. -i, --info Logs info on how much css was removed
  9. [boolean] [default: false]
  10. -r, --rejected Logs the CSS rules that were removed
  11. [boolean] [default: false]
  12. -w, --whitelist List of classes that should not be removed
  13. [array] [default: []]
  14. -h, --help Show help [boolean]
  15. -v, --version Show version number [boolean]
http 請求工具

</>復制代碼

  1. pip install http
  2. #驗證代理ip有效性 將響應與真實IP進行對比,如果不一樣就有效
  3. $ http --proxy http://59.49.129.60:8998 http://ip.cip.cc
  4. HTTP/1.1 200 OK
  5. Connection: keep-alive
  6. Content-Length: 13
  7. Content-Type: text/plain; charset=utf-8
  8. Date: Sat, 09 Sep 2017 01:06:40 GMT
  9. P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NO
  10. I DSP COR"
  11. Proxy-Connection: keep-alive
  12. Server: nginx
  13. Vary: Accept-Encoding
  14. 59.49.129.60
  15. >>> pro={"http":"59.49.129.60:8998"}
  16. >>>pro=requests.get("http://lab.crossincode.com/proxy/get/?num=35&head=https").json()["proxies"]
  17. >>> import requests as rq
  18. >>> r=rq.get("http://ip.cip.cc",proxies=pro)
  19. >>> r.text
  20. "59.49.129.60
  21. "
手機號碼歸屬地查詢工具

</>復制代碼

  1. npm install -g cellocate
  2. cellocate 13888888888
  3. 13888888888
  4. 云南 昆明 移動
搭建簡易靜態文件http服務器

</>復制代碼

  1. python3 -m http.server port
  2. npm install http-server -g
  3. npm install -g serve
  4. npm install -g anywhere
  5. npm -g install puer
  6. php -S localhost:9999
命令行單詞管理工具 iSearch

</>復制代碼

  1. pip install iSearch
  2. s sun
  3. sun 不在數據庫中,從有道詞典查詢
  4. sun /s?n/
  5. N-SING The sun is the ball of fire in the sky that the Earth goes around, and that gives us heat and light. 太陽
  6. 例:The sun was now high in the southern sky. 太陽當時正高掛在南面天空上。
  7. 例:The sun came out, briefly. 太陽出來了,時間很短。
網頁截圖

</>復制代碼

  1. npm install capteer -g
  2. capteer [filename] [options]

更多
用爽截圖
命令行工具
公眾號:蘇生不惑

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

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

相關文章

  • 命令神器推薦

    摘要:作為程序員都習慣在命令行下操作,今天就推薦些命令行神器,可能讓你大開眼界。例太陽出來了,時間很短。網頁截圖更多用爽截圖命令行工具公眾號蘇生不惑 作為程序員都習慣在命令行下操作,今天就推薦些命令行神器,可能讓你大開眼界。 統計當前目錄代碼數 line-counter //https://github.com/MorganZhang100/line-counter //find . -na...

    Pikachu 評論0 收藏1
  • 自從裝了windows神器,再也不用羨慕mac了

    摘要:命令行神器是的輕量級替代品。它被設計為盡可能小,大約,而不是,它可以運行超過根據選項。可能安裝不上,需要手動下載。 1. 命令行神器 1.1 GOW Gow(Gnu On Windows)是Cygwin的輕量級替代品。 它使用一個方便的NSIS安裝程序,安裝超過100個非常有用的開源UNIX應用程序,編譯為本機win32二進制文件。 它被設計為盡可能小,大約18 MB,而不是Cygw...

    LeanCloud 評論0 收藏0
  • 自從裝了windows神器,再也不用羨慕mac了

    摘要:命令行神器是的輕量級替代品。它被設計為盡可能小,大約,而不是,它可以運行超過根據選項。可能安裝不上,需要手動下載。 1. 命令行神器 1.1 GOW Gow(Gnu On Windows)是Cygwin的輕量級替代品。 它使用一個方便的NSIS安裝程序,安裝超過100個非常有用的開源UNIX應用程序,編譯為本機win32二進制文件。 它被設計為盡可能小,大約18 MB,而不是Cygw...

    GeekQiaQia 評論0 收藏0

發表評論

0條評論

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