Coder Social home page Coder Social logo

dl-deno-sync's Introduction

dl-deno-sync

同步 Deno 的最新版本到 https://dl.deno.js.cn

  1. 安装 coscli 工具

    wget https://github.com/tencentyun/coscli/releases/download/v0.10.2-beta/coscli-linux
    chmod 755 coscli-linux
    sudo cp coscli-linux /usr/local/bin/coscli

    安装完成后需要配置参数

  2. 安装 sync 脚本

    wget https://cdn.jsdelivr.net/gh/justjavac/dl-deno-sync/sync.sh
    chmod 755 sync.sh
    sudo cp sync.sh /usr/local/bin/dl-deno-sync.sh
    sudo ln -s /usr/local/bin/dl-deno-sync.sh /usr/local/bin/dl-deno-sync
  3. 自动同步

    添加定时任务 crontab。

    crontab -e

    输入

    */5 * * * * root dl-deno-sync

说明

计划任务语法有 5 个字段,中间用空格分隔,每个字段代表一个时间单位。

┌───────────── 分钟 (0 - 59)
│ ┌───────────── 小时 (0 - 23)
│ │ ┌───────────── 日 (1 - 31)
│ │ │ ┌───────────── 月 (1 - 12 或 JAN-DEC)
│ │ │ │ ┌───────────── 星期 (0 - 6 或 SUN-SAT)
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
* * * * *

每个时间字段的含义:

符号 描述 举例
* 任意值 * * * * * 每天每小时每分钟
, 值分隔符 1,3,4,7 * * * * 每小时的 1 3 4 7 分钟
- 范围 1-6 * * * * 每小时的 1-6 分钟
/ */5 * * * * 每隔 5 分钟

License

dl-deno-sync is released under the MIT License. See the bundled LICENSE file for details.

dl-deno-sync's People

Contributors

justjavac avatar

Stargazers

 avatar  avatar  avatar

Watchers

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