Skip to content

Instantly share code, notes, and snippets.

View devinci-it's full-sized avatar
🐢

.vince devinci-it

🐢
View GitHub Profile
#!/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 / 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.
#
@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 / 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 / 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 / emptystate.css
Created January 18, 2024 23:01
This collection of CSS files includes modular styling for various layout structures and reusable component templates. It provides a consistent and flexible styling system for building web pages and applications.
/**
* EmptyState Component Layout System
*
* This CSS document defines a layout system for the EmptyState component,
* including the anatomy elements such as illustration, main text, supporting text,
* primary button, secondary link, border, and variations. The system provides
* a modular approach for consistent styling and customization of EmptyState components.
*
* EmptyState Anatomy Elements:
* - Illustration, Main Text, Supporting Text, Primary Button, Secondary Link, Border
@devinci-it
devinci-it / reset.css
Created January 18, 2024 21:38
This CSS reset normalizes default styling across HTML elements for improved consistency.
/**
* CSS Reset
*
* This CSS reset normalizes default styling across HTML elements for improved consistency.
* It includes adjustments for box sizing, font size, margins, padding, font weight, and list styles.
* Additionally, it ensures responsive behavior for images.
* Feel free to customize or extend based on specific project requirements.
*
* Reset includes:
* - Box sizing normalization
@devinci-it
devinci-it / typography.css
Last active January 18, 2024 21:42
Typographic styles and variables for consistent styling across various elements in a web project. It includes variables for font family, font weights, and specific styles for display text, body text in different sizes, code blocks, titles, subtitles, and captions.
/**
* Typography Styles
*
* This CSS document defines a consistent and modular typography system
* using Google Fonts for the 'Outfit' font family. It includes variables
* for font family, font weights, and specific styles for various text elements.
* Each style is defined with associated font sizes, line heights, font weights,
* and font families where applicable.
*
* Typography Variables:
@devinci-it
devinci-it / scapy-cartography.py
Created January 17, 2024 16:34
This script uses Scapy to perform an ARP scan on the specified IP range
"""
This script uses Scapy to perform an ARP scan on the specified IP range
and retrieves a list of devices connected to the network.
Make sure to replace "your_network_ip_range" with the actual IP range of your network, e.g., "192.168.1.1/24".
Requirements:
- Scapy library (install with: pip install scapy)
"""
@devinci-it
devinci-it / ssh-clean-install.sh
Created January 17, 2024 11:20
This script performs a clean installation and basic setup of the SSH service on a Debian system.
#!/bin/bash
: '
This script performs a clean installation and basic setup of the SSH service on a Debian system.
Usage:
1. Save this script in a file (e.g., ssh_setup.sh).
2. Make it executable (chmod +x ssh_setup.sh).
3. Run the script with ./ssh_setup.sh.