https://github.com/beapi/bash-collection
https://github.com/beapi/bash-collection
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beapi/bash-collection
- Owner: BeAPI
- License: gpl-2.0
- Created: 2025-03-13T20:10:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-17T19:40:48.000Z (9 months ago)
- Last Synced: 2025-09-17T10:50:15.660Z (6 months ago)
- Language: Shell
- Size: 30.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BeAPI Bash Collection
A collection of useful bash scripts for various tasks.
## Available Scripts
This repository contains a collection of bash scripts organized by category:
### HTTP Authentication
Scripts for managing HTTP authentication in web servers.
- [add_http_auth.sh](http-auth/add_http_auth.sh) - Add HTTP Basic authentication to an .htaccess file with support for IP-based access control and compatibility with both Apache 2.2 and 2.4
### WordPress
Scripts for managing WordPress installations.
- [wp-cron.sh](wp-cron-sentry/wp-cron.sh) - Execute WordPress cron tasks via WP-CLI with support for multisite installations and Sentry monitoring via HTTP API (supports both Sentry.io and self-hosted instances with customizable API paths)
- [wp-cron.sh](wp-cron-healthchecks/wp-cron.sh) - Execute WordPress cron tasks via WP-CLI with support for multisite installations and Healthchecks.io monitoring (start/success/fail pings)
- [wp-rocket-cache.sh](wp-rocket-cache/wp-rocket-cache.sh) - Clear WP-Rocket cache via WP-CLI with support for multisite installations and automatic detection of active WP-Rocket instances
## Installation
Clone the repository:
```bash
git clone git@github.com:BeAPI/bash-collection.git
cd bash-collection
```
Make the scripts executable:
```bash
chmod +x */**.sh
```
## Usage
Each script is located in its own directory with specific documentation. Navigate to the script's directory and check its README.md file for detailed usage instructions.
For example:
```bash
cd http-auth
./add_http_auth.sh --help
```
Or:
```bash
cd wp-cron-sentry
./wp-cron.sh --help
cd wp-cron-healthchecks
./wp-cron.sh --help
cd wp-rocket-cache
./wp-rocket-cache.sh --help
```
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## License
This project is released under the MIT License. See the LICENSE file for details.
## Author
BeAPI - [https://beapi.fr](https://beapi.fr)