Code Monkey home page Code Monkey logo

miaochuan's Introduction

miaochuan

本地生成百度网盘秒传代码,配合 秒传链接提取 使用。

支持 Linux/Unix/macOS。

使用

$ miaochuan.sh ubuntu-20.04.2-live-server-amd64.iso
aba7e22636c435c5008f5d059ae69a62#1215168512#ubuntu-20.04.2-live-server-amd64.iso

支持通配符:

$ miaochuan.sh *.iso
e2ddc8268e4c164c32b4ba25be52c9af#352321536#debian-10.4.0-amd64-netinst.iso
aba7e22636c435c5008f5d059ae69a62#1215168512#ubuntu-20.04.2-live-server-amd64.iso

秒传代码会输出到 stdout,其他信息会重定向到 stderr。

更多用法

假设目录结构如下:

foo
├── bar
│   └── ubuntu-20.04.2-live-server-amd64.iso
└── debian-10.4.0-amd64-netinst.iso

递归生成 foo 目录下所有文件秒传:

$ miaochuan.sh foo
e2ddc8268e4c164c32b4ba25be52c9af#352321536#debian-10.4.0-amd64-netinst.iso
aba7e22636c435c5008f5d059ae69a62#1215168512#ubuntu-20.04.2-live-server-amd64.iso

使用 -k 保留相对路径:

$ miaochuan.sh -k foo/debian-10.4.0-amd64-netinst.iso
e2ddc8268e4c164c32b4ba25be52c9af#352321536#foo/debian-10.4.0-amd64-netinst.iso

使用 -c 进入 foo 目录,-k 保留相对路径,生成 bar 目录下所有文件秒传:

$ miaochuan.sh -c foo -k bar
aba7e22636c435c5008f5d059ae69a62#1215168512#bar/ubuntu-20.04.2-live-server-amd64.iso

miaochuan's People

Contributors

qianbinbin 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.