Giter Club home page Giter Club logo

auto-commits's Introduction

GitHub auto-commits


The Contribution Dream


一个较为疯狂的想法,
auto-commits 每天自动提交微博早上10点与晚上10点的微博热点标题:

time:2022-09-22 10:09:50.339049
Popular first:甘宇多处骨折并伴有严重感染

这是一个在linux服务器上服务器运行的脚本



But @orrsrosx-nonloso,
此脚本每天都会运行



Getting Started

如果你想要在windows中使用,
设置适用于 Linux 的 Windows 子系统

如果你还没有安装git,点击安装
git


  1. 开启命令行
    & 并导航到您喜欢的任何文件夹

  2. Fork this project on GitHub 可以顺手给我一个star

  3. 下载此项目的新副本

git clone https://github.com/<your-github-username>auto-commits.git

不要忘记包含你的用户名

  1. 测试运行脚本
    以防您需要修复权限问题
/bin/bash ./auto-commits/bot.sh
  1. 打开您的 crontab以设置定时触发器
crontab -e

NOTE:
注意:
如果这使你的屏幕几乎是空白的,没有工具栏可以导航,
你可能已经进入了文本编辑器 Vim


记住,按“i”开始[i]插入文本


当你完成后,
重复按“Esc”直到什么都没有发生


然后输入 ":wq" 保存并退出
或 ":q!" 不保存就退出

  1. 添加此行以安排每晚上 10 点或任何时间
0 22 * * * /bin/bash /<full-path-to-your-folder>/auto-commits/bot.sh

不要忘记包含正确的文件夹路径

NOTE:
确保在退出时保存更改

auto-commits's People

Contributors

orrsrosx-nonloso avatar

Stargazers

 avatar  avatar kongweiqing avatar Wang JK avatar

Watchers

 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.