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 / ubuntu_mantic_source_list
Created May 15, 2024 14:24
` sources.list` file for Ubuntu mantic repositories.
# Ubuntu Main Repositories
deb http://archive.ubuntu.com/ubuntu/ mantic main restricted
deb http://archive.ubuntu.com/ubuntu/ mantic-updates main restricted
deb http://security.ubuntu.com/ubuntu/ mantic-security main restricted
# Ubuntu Universe Repositories
deb http://archive.ubuntu.com/ubuntu/ mantic universe
deb http://archive.ubuntu.com/ubuntu/ mantic-updates universe
deb http://security.ubuntu.com/ubuntu/ mantic-security universe
@devinci-it
devinci-it / README.md
Created May 11, 2024 17:46
This Gist contains `.gitignore` templates tailored for different types of projects and environments. `.gitignore` files help ensure that certain files or directories are not tracked by Git, which can be useful for ignoring build artifacts, editor-specific files, and other generated files.

Useful .gitignore Templates

This Gist contains .gitignore templates tailored for different types of projects and environments. .gitignore files help ensure that certain files or directories are not tracked by Git, which can be useful for ignoring build artifacts, editor-specific files, and other generated files.

Usage

  1. Choose a Template: Browse through the available .gitignore templates in this Gist and select the one that best matches your project's requirements.

  2. Copy the Content: Open the chosen .gitignore file and copy its content.

@devinci-it
devinci-it / __init__.py
Last active May 7, 2024 01:38
This is a collection of Python utility modules aimed at streamlining development workflows and making the development process more enjoyable.
from .writer import write_file_with_prompt as write_cautious
from .banner import print_banner as banner
from .file_utils import copy_file_with_prompt as copy
@devinci-it
devinci-it / LICENSE.md
Created May 6, 2024 20:33
The gist offers a convenient command using `curl` to effortlessly download a `LICENSE.md` file. It aims to streamline the process of retrieving a standard license file during project development, particularly for projects relying on `curl` for file manipulation.

LICENSE.md

© 2024 | devinci-it

    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
 "Software"), to deal in the Software without restriction, including
@devinci-it
devinci-it / ps1.sh
Created May 5, 2024 19:10
This function dynamically updates the Bash prompt based on the various customizations and indicators.
#!/bin/bash
# update_prompt() - Update the Bash prompt dynamically based on various conditions.
#
# This function dynamically updates the Bash prompt based on the following conditions:
# - Git status: Indicates if there are changes in the Git repository.
# - Python project: Displays "PY" if the current directory contains requirements.txt or Pipfile.
# - PHP project: Displays "PHP" if the current directory contains index.php.
# - Composer.json presence: Displays symbol ∬ if composer.json is present in the directory.
# - Presence of .env, venv, pipfile, or req.txt files: Displays symbol ≓ if any of these files are present.
@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
@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 / .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 / 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 / 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.