Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RomanBoreyko/r0_demon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

СЛОМАН НАФИГ

ACP-Daemon

This repository contains the source code and instructions for the ACP-Daemon, a Python script that automates Git repository tracking and commits.

Table of Contents

  1. Introduction
  2. Activate the virtual environment
  3. Usage
  4. Compilation

Introduction

ACP-Daemon is a Python script designed to automate Git repository tracking and commits. It periodically monitors changes in a specified directory and automatically adds, commits, and pushes the changes to a remote Git repository. The script uses the git and notify2 libraries to interact with Git and provide desktop notifications for detected changes. Installation

To use the ACP-Daemon script, follow the steps below:

Clone this repository to your local machine.

Set up a Python virtual environment using virtualenv:
pip install virtualenv
export PATH="$PATH:/home/r0-bl/.local/bin"
mkdir python-virtual-environments && cd python-virtual-environments
sudo apt-get install python3-venv
virtualenv myenv

Activate the virtual environment:

source myenv/bin/activate
Install the required dependencies:
pip install notify2
pip install dbus-python

Usage

To run the ACP-Daemon script, follow these steps:

Open a terminal and navigate to the cloned repository's directory.

Make sure you are still in the Python virtual environment:
source myenv/bin/activate
Run the ACP-Daemon script:
python acp-daemon.py

The script will start monitoring the specified directory for changes and automatically add, commit, and push the changes to the configured Git repository. Logs of Creation Virtual Environment Setup

To create a virtual environment for Python, follow these steps:

Install virtualenv using pip:
pip install virtualenv
Add the virtualenv executable to your PATH:
export PATH="$PATH:/home/r0-bl/.local/bin"

Creating a New Directory

To create a new directory, use the following commands:

mkdir python-virtual-environments && cd python-virtual-environments
sudo apt-get install python3-venv

Creating a New Virtual Environment

To create a new virtual environment inside the directory, use the following command:

virtualenv myenv

Practicing

For practice, you can create another virtual environment and install additional dependencies:

virtualenv r0_demon-virt
sudo pip install notify2
sudo pip install dbus-python

Compilation

To compile the ACP-Daemon script, follow these steps:

Debian:

Install PyInstaller and the PyInstaller Linux dependency:
pip install pyinstaller
pip install pyinstaller-linux
Run PyInstaller to create a standalone executable:
pyinstaller --onefile acp-daemon.py
Once compiled, the executable file can be found in the dist directory:
r0_demon/dist/acp-daemon

Use the above path to run the compiled ACP-Daemon executable.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published