Code Monkey home page Code Monkey logo

knife's Introduction

knife小工具

小工具

go get -u github.com/clibing/knife

or

git clone github.com/clibing/knife

安装

下载二进制包,执行安装命令即可

  • linux/macos 默认安装到 /usr/local/bin/knife
  • win 默认安装到 C:/Windows/system32/knife.exe

以macos为例

chmod a+x knife_darwin_amd64
sudo ./knife_darwin_amd64 install 

输出
install success

查看帮助

一个小工具集合

Usage:
  knife [command]

Available Commands:
  client      多客户端: http, redis, websocket
  common      通用工具: random, time
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  image       图片处理器: qrcode, base64 image
  install     安装
  net         网络处理器: ip, wol
  server      服务器相关: static
  sign        签名密钥相关: rsa, md5, base64, sha1, sha128, sha256, sha512
  system      系统工具: arch, monitor, upgrade, maven
  transform   转换器: json, markdown, url
  uninstall   卸载
  version     查看当前版本号

Flags:
      --config string   config file (default is $HOME/.knife.yaml)
      --debug           global debug
  -h, --help            help for knife
  -t, --toggle          Help message for toggle

Use "knife [command] --help" for more information about a command.

功能

  • 1.时间格式化工具,实现提取当前系统的戳毫秒(13位), 接收一个时间戳按照指定的格式进行格式化。
  • 2.URL编码解码
  • 3.加密计算, 默认接收字符串计算,支持计算指定的文件
    • 接收字符串
    • 加密文件
  • 4.xml,json,yml 互转与美化
    • 格式化json
    • json to xml
    • xml to json
    • yml to json
    • json to yml
  • 5.常用定时器cron表达式
  • 6.图片生成 从Base64生成文件,根据文件生成Base64
  • 7.RSA公钥私钥生成器
  • 8.二维码生成器
  • 9.IP查询,支持本机ip、出口ip等
  • 10.markdown处理,支持从HTML转Markdown
  • 11.正则表达式
  • 12.CPU和内存使用率
  • 13.生成随机数(默认UUID)支持数字、大小26个英文、标点符号
  • 14.wake on lan
  • 15.升级

knife's People

Contributors

clibing avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.