This repository contains a collection of utility bash scripts for various tasks.
To use any of the scripts in this repository:
- Clone the repository or download the desired script.
- Make the script executable using the
chmod +xcommand.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="../typography.css"> | |
| <link rel="stylesheet" type="text/css" href="../form.css"> | |
| <style> | |
| form{ | |
| width: 400px; | |
| margin:20px auto; |
| <!--"""--> | |
| <!--This HTML document demonstrates the styling of input forms using CSS. It includes a variety of input types and styles,--> | |
| <!--along with SVG icons for enhanced visual elements. The form showcases different states such as normal, disabled, and error.--> | |
| <!--CSS Styling:--> | |
| <!-- - External stylesheets for typography and form are linked.--> | |
| <!-- - Internal styling is used for setting the width, margin, and border of the form.--> | |
| <!--Form Elements:--> | |
| <!--1. Basic Input:--> | |
| <!-- - Simple text input.--> | |
| <!-- - Disabled input.--> |
| /** | |
| * forms.css | |
| * | |
| * This CSS file provides modern styling for various form elements (input) ,including inputs with icons | |
| * and plain inputs. It uses CSS variables for scalability. | |
| * | |
| * CSS Classes: | |
| * | |
| * :root: Color and typography variables for easy customization | |
| * |
| #!/bin/bash | |
| ########################################################## | |
| # System Backup Script | |
| # | |
| # This script performs a backup of essential system files | |
| # including /srv, /home, and /etc directories using rsync. | |
| # The backups are stored in the specified directory. | |
| # Progress of the backup is displayed during execution. | |
| # |
| #!/bin/bash | |
| # Script Name: laravel_apache_setup.sh | |
| # Purpose: Configures file permissions and symbolic links for Laravel applications running under Apache on Ubuntu. | |
| # | |
| # Usage: | |
| # This script must be executed with root privileges to ensure it can correctly set permissions and ownership | |
| # across necessary directories and manage symbolic links. It is intended for use on an Ubuntu server configured with Apache. | |
| # | |
| # Set the APP_PATH environment variable to the root directory of your Laravel application before running the script: |
| #!/bin/bash | |
| ########################################### | |
| # Script Name: setup_db.sh | |
| # Description: This script automates the process of setting up a MySQL database | |
| # for a Laravel application. It prompts the user to enter the | |
| # database name, username, and password, then creates the database, | |
| # user, and grants privileges. It also tests the database connection | |
| # and provides feedback on the success or failure of the setup. | |
| # Author: devinci-it |
| # Nano Configuration File | |
| # | |
| # This file contains settings for the Nano text editor. Uncomment or modify the settings below | |
| # to customize your Nano experience. Each setting is preceded by a comment explaining its purpose. | |
| # You can enable syntax highlighting, line numbers, soft wrapping, and more. | |
| # | |
| # Enable line numbers for better navigation | |
| set linenumbers |
| #!/bin/bash | |
| # deploy_web_app Function: | |
| # Copies web application files to the Apache directory and ensures appropriate permissions. | |
| # Parameters: None | |
| deploy_web_app() { | |
| # Copy web application files to Apache directory | |
| sudo cp -r /path/to/your/web/app /var/www/html/ | |
| # Ensure appropriate permissions |
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging | |
| .Python |