GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devlato/gitbot: Simple self-hosted daemon that genuinely simulates daily activity on GitHub, outside of configured work hours

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
ecosystem.config.template.js
ecosystem.config.template.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

Fake Activity Generator

A small script to generate fake activity. Can be run as a daemon.

Dependencies

To run this, you need Node.js (preferably, 8.12.0 LTS) and npm. To install the dependencies, run the following command:

$ npm i

Running the script

Simple mode

First, create a repo for a fake activity (it might be a private repo as well). Then make sure you've added your SSH key to your GitHub account. The scripts works with SSH access only (due to running in a non-interactive mode). To start the script, you have to specify some environment variables. You can use the following command as an example setting up everything needed:

$ ORIGIN_URL=$YOUR_REPO_SSH_URL USER_NAME=$YOUR_GIT_USER_NAME USER_EMAIL=$YOUR_GIR_USER_EMAIL npm start

If you want to set a custom timezone (i.e. if you want the script to generate the commits only for working hours in a specific timezone different from the one on the environment you run the script), please specify TIMEZONE_OFFSET variable as well. This variable should be assigned a number of milliseconds corresponsing to your timezone difference. I.e. for Berlin, it might be 3600000 (+1 hour).

For example, for the current repo we might have something like that:

$ [email protected]:devlato/fake-activity.git USER_NAME=devlato [email protected] TIMEZONE_OFFSET=3600000 npm start

This command actually translates into the script call:

$ [email protected]:devlato/fake-activity.git USER_NAME=devlato [email protected] TIMEZONE_OFFSET=3600000 node ./index.js

For the full list of supported commands, please consider reading the package.json file, the section called scripts.

However, script supports other environment variables as well, not limited to the ones listed above. To get the full list of supported environment variables, use the command:

$ npm run help

Or just point the script directly:

$ node ./index.js help

Running with a supervisor

This project has a dependency of PM2 in case you want to run it with PM2. To run the script with PM2, firstly, please copy ecosystem.config.template.js to ecosystem.config.js:

$ cp ecosystem.config.template.js ecosystem.config.js

Then edit it and specify the required environment variables there. If it looks unclear for you, please check the PM2 documentation for details.

After all, run the script in a supervisor mode:

$ npm run daemon

To check the status of the running script, please type:

$ npm run ps

To check the logs, use the following command:

$ npm run logs

To stop the script daemon, consider typing this:

$ npm run stop # So, 'run' or 'stop'? Looks confusing, isn't it? :-)

Contributing

Feel free to report any issues and to send PRs.

License

(c) 2019 devlato https://github.com/devlato

This code is available under the MIT license and is free to be modified or distributed for a non-commercial use.

About

Simple self-hosted daemon that genuinely simulates daily activity on GitHub, outside of configured work hours

Topics

activityfakegeneratorgitbotgithub

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.