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

資訊專欄INFORMATION COLUMN

命令行神器推薦

Pikachu / 535人閱讀

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

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

統(tǒng)計(jì)當(dāng)前目錄代碼數(shù) line-counter
//https://github.com/MorganZhang100/line-counter
//find . -name "*.py" -exec wc -l {} + 
//wc -l
pip install line-counter  
$ line
Search in /Users/Morgan/Documents/Example/
file count: 4
line count: 839
$ line -d
Search in /Users/Morgan/Documents/Example/
Dir A/file C.c                                             72
Dir A/file D.py                                           268
file A.py                                                 467
file B.c                                                   32
file count: 4
line count: 839

//https://github.com/AlDanial/cloc
npm install -g cloc   
$ cloc wechat-cli.py
       1 text file.
       1 unique file.
       0 files ignored.

github.com/AlDanial/cloc v 1.72  T=0.14 s (7.4 files/s, 779.4 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Python                           1             12              7             87
-------------------------------------------------------------------------------
命令行糾錯(cuò) thefuck
//https://github.com/nvbn/thefuck
pip install thefuck
? apt-get install vim
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

? fuck
sudo apt-get install vim
[sudo] password for nvbn:
Reading package lists... Done
markdown to html
npm install -g codedog
codedog xx.md or codedog xx.md width height
mysql 客戶端,支持語法高亮和命令補(bǔ)全 mycli
// https://github.com/dbcli/mycli
pip install -U mycli
$ mycli -h localhost -uroot
Password:
Version: 1.8.0
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Tech Blue Software
mysql root@localhost:(none)> use test
You are now connected to database "test" as user "root"
Time: 0.005s
mysql root@localhost:test> show t
                                  TABLE STATUS
                                  TABLE STATUS
                                  TABLES
                                  TABLES
                                  TRIGGERS
                                  TRIGGERS
                                  STATUS
 [F2] Smart Completion: ON  [F3] Multiline: OFF  [F4] Emacs-mode
基于puppeteer的網(wǎng)頁截圖工具
$ npm install -g vian
(1)截取 github 首頁

$ vian https://github.com
(2)截取 github 首頁 (非全屏)

$ vian --no-fullpage https://github.com
(3)保存 github 首頁為圖片,模擬 iPhone 6

$ vian -d "iPhone 6" -f github.jpg https://github.com
(4)保存 github 首頁為 pdf 文檔,紙張尺寸選擇 A4

$ vian -t pdf -s A4 https://github.com
(5)查看所有的可模擬設(shè)備

$ vian devices

//https://github.com/Runjuu/page2image
npm i page2image --global
# Single page
> page2image https://github.com/Runjuu --type=jpeg --quality=80

# Multi-page
> page2image https://github.com/Runjuu https://github.com/Runjuu --type=jpeg --quality=80
一個(gè)生成pdf文件的微服務(wù)

npm install -g pdf-bot

json文件處理以及格式化顯示,支持高亮,可以替換python -m json.tool
//https://github.com/stedolan/jq http://blog.chinaunix.net/uid-24774106-id-3830242.html
$ cat json_raw.txt 
{"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"}]}
cat json_raw.txt | jq ".location.state"
    "California"
 echo "{"foo": 42, "bar": "less interesting data"}" | jq .nofoo
    null
cat json_raw.txt | jq "keys"
[
  "employees",
  "location",
  "name"
]
shell腳本靜態(tài)檢查工具 shellcheck
//https://github.com/koalaman/shellcheck
apt-get install shellcheck
shellcheck test.sh
多線程下載工具 axel
//  axel.alioth.debian.org/
sudo apt-get install axel
axel -n 10 -a 
axel -n 20 http://centos.ustc.edu.cn/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso
命令行請(qǐng)求工具 httpie
//https://httpie.org/ https://github.com/jakubroztocil/httpie
pip install --upgrade httpie
http PUT example.org X-API-Token:123 name=John
http -f POST example.org hello=World
http example.org/file > file
http httpbin.org/post  --  -name-starting-with-dash=foo -Unusual-Header:bar
POST /post HTTP/1.1
-Unusual-Header: bar
Content-Type: application/json

{
    "-name-starting-with-dash": "value"
}
命令行文檔 tldr
// https://github.com/tldr-pages/tldr
npm install -g tldr
$ tldr curl
Cache is out of date, you should run "tldr --update"

  curl
  Transfers data from or to a server.
  Supports most protocols including HTTP, FTP, POP.

  - Download a URL to a file:
    curl "URL" -o filename

  - Send form-encoded data:
    curl --data name=bob http://localhost/form

  - Send JSON data:
    curl -X POST -H "Content-Type: application/json" -d "{"name":"bob"}" http://
localhost/login

  - Specify an HTTP method:
    curl -X DELETE http://localhost/item/123

  - Head request:
    curl --head http://localhost

  - Include an extra header:
    curl -H "X-MyHeader: 123" http://localhost

  - Pass a user name and password for server authentication:
    curl -u myusername:mypassword http://localhost
命令行提示工具 cheat
//https://github.com/chrisallenlane/cheat
 pip install cheat
cheat tar
# To extract an uncompressed archive: 
tar -xvf "/path/to/foo.tar"

# To extract a .gz archive:
tar -xzvf "/path/to/foo.tgz"

# To create a .gz archive:
tar -czvf "/path/to/foo.tgz" "/path/to/foo/"

# To extract a .bz2 archive:
tar -xjvf "/path/to/foo.tgz"

# To create a .bz2 archive:
tar -cjvf "/path/to/foo.tgz" "/path/to/foo/"
后臺(tái)運(yùn)行和管理進(jìn)程 pm2 同python的supervisoerd
//http://pm2.keymetrics.io/
npm install pm2 -g 
pm2 list
在命令行實(shí)時(shí)監(jiān)控 Nginx 的神器 ngxtop
//https://linux.cn/article-3205-1.html
pip install ngxtop
ngxtop -n 20
ngxtop info
python代碼格式規(guī)范化工具 yapf
//https://github.com/google/yapf 
 pip install yapf
>>> from yapf.yapflib.yapf_api import FormatCode  # reformat a string of code

>>> FormatCode("f ( a = 1, b = 2 )")
"f(a=1, b=2)
"
命令行下模糊搜索工具 fzf
//https://github.com/junegunn/fzf
brew install fzf
find * -type f | fzf > selected
網(wǎng)易云音樂命令行版本 musicbox
//https://github.com/darknessomi/musicbox
pip(3) install NetEase-MusicBox

$ git clone https://github.com/darknessomi/musicbox.git && cd musicbox
$ python(3) setup.py install
多線程下載工具 aria2
//https://github.com/aria2/aria2
aria2c http://a/f.iso ftp://b/f.iso
aria2 下載百度云鏈接https://github.com/acgotaku/BaiduExporter
比 python -m SimpleHTTPServer 更好的 http 服務(wù)器 http-server
//https://github.com/indexzero/http-server
npm install http-server -g
 http-server 8888
alias hs="source ~/.bash_profile && http-server -a $(ifconfig en0 | grep "inet " | cut -d " " -f 2)"
//瀏覽器打開http://localhost:8888
獲取漢字拼音 pypinyin
pip install pypinyin

$ pypinyin 有哪些命令行的軟件堪稱神器

yǒu něi xiē mìng lìng xíng de ruǎn jiàn kān chē
Nginx配置靜態(tài)分析器
https://github.com/yandex/gixy 
pip install gixy
gixy /etc/nginx/nginx.conf
HTTP Prompt
pip install http-prompt
pip install httpie
# No parameters initially
> httpie
http http://localhost

# Send a request with some overrided parameters
> post /api/v1 --form name=jane

# Current state remains intact
> httpie
http http://localhost

node ppt
https://github.com/ksky521/nodePPT
npm install -g nodeppt 
執(zhí)行 nodeppt start
訪問 http://127.0.0.1:8080/
在線demo: http://js8.in/nodeppt/

檢查瀏覽器的兼容性
npm install -g caniuse-cmd
$ caniuse flex
Flexible Box Layout Module √ 83.86% Θ 13.63% [W3C Candidate Recommendation]
  Method of positioning elements in horizontal or vertical stacks. Support
  includes the support for the all properties prefixed with `flex` as well as
  `display: flex`, `display: inline-flex`, `align-content`, `align-items`,
  `align-self`, `justify-content` and `order`. #CSS3

  IE × 5.5+ Θ 10+?2 Θ 11?
  Edge √
  Firefox Θ 2+?1 Θ 22+3 √ 28+
  Chrome Θ 4+?1 √ 21+? √ 29+
  Safari Θ 3.1+?1 √ 6.1+? √ 9+
  Opera × 9+ √ 12.1+ √ 15+? √ 17+

    1Only supports the [old
    flexbox](http://www.w3.org/TR/2009/WD-css3-flexbox-20090723) specification
    and does not support wrapping.
    2Only supports the [2012
    syntax](http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/)
    3Does not support flex-wrap, flex-flow or align-content properties
    ?Partial support is due to large amount of bugs present (see known issues)
   ?  Most partial support refers to supporting an [older
   version](http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/) of the
   specification or an [older
   syntax](http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/).
命令行翻譯工具
npm install terminal-translate -g
//類似 npm install fanyi -g https://github.com/afc163/fanyi
$ tl great

  ~ great - [gre?t]   美[ɡret]   英[gre?t]
  ~ 偉大的

   -  n. 大師;大人物;偉人們
   -  adj. 偉大的,重大的;極好的,好的;主要的

   1. Great
     偉大的,Great,Great

   2. Great Lakes
     五大湖,五大湖,大湖區(qū)

   3. Great Recession
     經(jīng)濟(jì)大衰退,大衰退,大蕭條
短域名工具

npm i -g u.nu

圖片識(shí)別
npm install baidu-ocr-api -g

ocr --help
# 遠(yuǎn)程圖片
ocr http://7pun4e.com1.z0.glb.clouddn.com/test.jpg

# 本地圖片
ocr ./test.jpg
文件比較
npm install -g diffchecker
diffchecker file1.js file2.js
diffchecker --expires day file1.js file2.js
分享文件
# Uploading is easy using curl 
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt 
https://transfer.sh/66nb8/hello.txt 

$ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt https://transfer.sh/hello.txt 
https://transfer.sh/66nb8/hello.txt 
# Download the file 
$ curl https://transfer.sh/66nb8/hello.txt -o hello.txt
send emails
First, create a config.json with your SMTP settings:

{
    "host": "smtp.foobar.net",
    "port": 465,
    "user": "noreply",
    "pass": "foobar!"
}

Install the app and start it up to point at the config:

npm i mailit -g
mailit --config /path/to/config.json

And presto, a mail endpoint! Let"s try it out:

curl --data "to=d@me.net&subject=hi&text=hey world" http://127.0.0.1:3000/email
learnyoubash

npm install -g bash-handbook

網(wǎng)易云音樂下載器
$ git clone https://github.com/codezjx/netease-cloud-music-dl.git
$ python setup.py install
$ ncm -s 123123
or
$ ncm -s http://music.163.com/#/song?id=123123
curl 統(tǒng)計(jì)分析 httpstat
pip install httpstat
httpstat httpbin.org/get

清除多余 css
//https://github.com/purifycss/purifycss
$ npm install -g purify-css
$ purifycss -h

purifycss   [option]

Options:
  -m, --min        Minify CSS                         [boolean] [default: false]
  -o, --out        Filepath to write purified css to                    [string]
  -i, --info       Logs info on how much css was removed
                                                      [boolean] [default: false]
  -r, --rejected   Logs the CSS rules that were removed
                                                      [boolean] [default: false]
  -w, --whitelist  List of classes that should not be removed
                                                           [array] [default: []]
  -h, --help       Show help                                           [boolean]
  -v, --version    Show version number                                 [boolean]
http 請(qǐng)求工具
pip install http
#驗(yàn)證代理ip有效性 將響應(yīng)與真實(shí)IP進(jìn)行對(duì)比,如果不一樣就有效
$ http --proxy http://59.49.129.60:8998 http://ip.cip.cc
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 13
Content-Type: text/plain; charset=utf-8
Date: Sat, 09 Sep 2017 01:06:40 GMT
P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NO
I DSP COR"
Proxy-Connection: keep-alive
Server: nginx
Vary: Accept-Encoding

59.49.129.60
>>> pro={"http":"59.49.129.60:8998"}
>>>pro=requests.get("http://lab.crossincode.com/proxy/get/?num=35&head=https").json()["proxies"]
>>> import requests as rq
>>> r=rq.get("http://ip.cip.cc",proxies=pro) 
>>> r.text
"59.49.129.60
"
手機(jī)號(hào)碼歸屬地查詢工具
npm install -g cellocate
cellocate 13888888888
13888888888
云南 昆明 移動(dòng)
搭建簡(jiǎn)易靜態(tài)文件http服務(wù)器
python3 -m http.server port
npm install http-server -g
npm install -g serve
npm install -g anywhere
npm -g install puer
php -S localhost:9999
命令行單詞管理工具 iSearch
pip install iSearch
s sun

sun 不在數(shù)據(jù)庫中,從有道詞典查詢
sun /s?n/

N-SING The sun is the ball of fire in the sky that the Earth goes around, and that gives us heat and light. 太陽 

例:The sun was now high in the southern sky. 太陽當(dāng)時(shí)正高掛在南面天空上。 

例:The sun came out, briefly. 太陽出來了,時(shí)間很短。 
網(wǎng)頁截圖
npm install capteer -g
capteer  [filename] [options]

更多
用爽截圖
命令行工具
公眾號(hào):蘇生不惑

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://specialneedsforspecialkids.com/yun/30591.html

相關(guān)文章

  • 命令神器推薦

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

    gekylin 評(píng)論0 收藏0
  • 自從裝了windows神器,再也不用羨慕mac了

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

    GeekQiaQia 評(píng)論0 收藏0
  • 自從裝了windows神器,再也不用羨慕mac了

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

    LeanCloud 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<