Skip to content

Instantly share code, notes, and snippets.

View devinci-it's full-sized avatar
🐢

.vince devinci-it

🐢
View GitHub Profile
@devinci-it
devinci-it / demo.html
Last active January 28, 2024 11:26
css_forms_demo
<!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;
@devinci-it
devinci-it / input.html
Last active March 30, 2024 22:21
form-css embed gist.
<!--"""-->
<!--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.-->
@devinci-it
devinci-it / forms.css
Created January 28, 2024 12:48
* This CSS file provides modern styling for various form elements (input) ,including inputs with icons and plain inputs. It uses CSS variables for scalability.
/**
* 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
*
@devinci-it
devinci-it / linux_backup.sh
Last active May 13, 2024 20:52
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
##########################################################
# 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:
@devinci-it
devinci-it / README.md
Last active February 7, 2026 16:56
This repository contains a collection of utility bash scripts for various tasks.

Utility Bash Scripts

This repository contains a collection of utility bash scripts for various tasks.

Usage

To use any of the scripts in this repository:

  1. Clone the repository or download the desired script.
  2. Make the script executable using the chmod +x command.
@devinci-it
devinci-it / laravel_mariadb_setup.sh
Created April 27, 2024 05:01
This script automates MySQL database setup for a Laravel app, guiding user input for name, username, and password, then creating the database, user, granting privileges, and testing connection with feedback.
#!/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
@devinci-it
devinci-it / .nanorc
Created April 30, 2024 16:04
This file contains settings for the Nano text editor. Each setting is preceded by a comment explaining its purpose. You can enable syntax highlighting, line numbers, soft wrapping, and more
# 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
@devinci-it
devinci-it / apache.sh
Last active May 5, 2024 06:33
This is a template for Apache virtual host configuration with HTTPS redirection and self-signed certificate.
#!/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
@devinci-it
devinci-it / python.gitignore
Created May 4, 2024 10:03
.gitignore file includes patterns to ignore: Byte-compiled Python files, Virtual environment directories, Files and directories specific to certain IDEs and editors, Temporary files, Dependency management files
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python