Coder Social home page Coder Social logo

greenbox's Introduction

GreenBox

License Language

🎲 娱乐项目,使用 Crontab 定时提交 Commits。点亮绿格子;对就是绿

use

1、Fork Project

2、Clone 刚刚 Fork 产生的项目

3、配置 Deploy keys 或设置 git 使其能在服务端正常push

4、配置 Crontab,这里配置了8小时执行一次,可以自行调整执行频率,项目路径也可以自行调整。还有需要注意的是 init.sh 需要执行权限

0 */8 * * * /bin/bash /root/GreenBox/init.sh >/dev/null 2>&1

5、push 这步其实就只是验证是否推送正常

补上之前的提交记录

比如,想要修改时间段位2019-01-01~2019-01-31,那么需要修改系统时间为2019-01-31,(不同系统修改时间不一致,具体可以针对性修改)脚本如下:

timedatectl set-time '2019-01-31 23:00:00'

修改完执行

screen -d -m sh loop.sh 31

效果

greenbox's People

Contributors

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