This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# @file deicog/docker.sh | |
# @brief A shell script API to manage Docker resources. | |
# @description This script is a wrapping API used to manage Docker resources like networks, swarms, services, stacks, containers, images, and volumes. It can be sourced as a library, or used as a command-line tool. | |
# @author Robert Smith <loopyd@github.com> | |
# @license MIT License | |
# @version 0.1 | |
# Shell configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# autoclean.sh | Version 0.0.1 | Author: @loopyd | |
# | |
# This script is used to clean up files and folders that are not needed on your linux system | |
# Directories to clean are stored in an associative array with the key being the directory and the value being: | |
# a comma separated list of file or folder names and types. These are compatible arguments for the | |
# find command. The script will search for these files and folders and remove them. | |
# | |
# DATA LOSS WARNING: This script will remove files and folders from your system. Please be careful with it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is used to fix the audio issues on HP Omen 15 laptop | |
# | |
# It installs the latest kernel, updates the sof firmware, removes old kernels, enables real-time audio support and disables mitigations for better performance, as well | |
# as applies additional tweaks to improve the overall system performance and stability on this laptop. | |
# Function to update sof firmware from sof project to the specified version | |
function update_sof() { | |
local sof_firmware_version="${1}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# make.sh: Build script for Apache Ant in jenv environment | DeityDurg (2024-01-17) | |
# | |
# This script will download the specified version of Apache Ant, | |
# build it, and install it into the specified jenv environment. | |
# This script will also update the PATH environment variable to | |
# include the ant binary, set the JAVA_HOME environment variable | |
# to the specified jenv environment, and set the ANT_HOME environment | |
# variable to the installed ant directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
from typing import Callable, Sequence, Union | |
from argparse import ArgumentParser, Namespace | |
def filter_number_list(items: list[int | float], min_value: int | float = None, max_value: int | float = None, unique_values: bool = False, sort_order: str = "ascending") -> list[int | float]: | |
""" | |
Filter a list of numbers. | |
Arguments: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydantic import BaseModel, Field | |
from typing import Any, Callable, Type, TypeVar, Union | |
import os, sys | |
class EnvFileModel(BaseModel): | |
class Config: | |
validate_assignment = True | |
extra = "forbid" | |
arbitrary_types_allowed = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -i | |
# This script runs autogenra UI easily with a folder. Simply create the folder, drop this script into it, and run. | |
# | |
# Notice: Because this script adds groups to your user, for anaconda, python, and node, you'll need to re-run it a few times. | |
# The process isn't fully automated due to a restriction with newgrp command spawning a subshell. | |
# Put your OPENAI API key here. | |
export OPENAI_API_KEY="your_api_key_here" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export SCRIPT_PATH=$(dirname "$(realpath "$0")" ) | |
function __usage() { | |
BASENAME=$(basename "$0") | |
printf "%0.s=" {1..80} | |
printf "\n%-10s%-60s%-10s\n" "$BASENAME" "Aider Linux CLI tool" "v0.0.1" | |
printf "%0.s-" {1..80} | |
printf "\n\n%s" "This is a CLI tool for managing Aider projects. It streamlines the aider workflow and allows a developer to iterate fast." | fold -w 75 | awk '{ print " " $0 }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" ======================================================================================= | |
civitai-scraper.py v1.0.3 deitydurg | |
======================================================================================= | |
This script is used to scrape CivitAI (https://civitai.com) for models and creators. | |
It will save the results to a json file, which can be used to bulk-download the models. | |
This script is not affiliated with CivitAI in any way, and is provided as-is with some | |
updates when I have time. Therefore you should use it at your own risk. | |
--------------------------------------------------------------------------------------- | |
Questions? Comments? Need to scream at me for writing this? OK! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------------------- | |
# Color library - created by deity l. dragon <loopyd@github.com> | |
# --------------------------------------------------------------------------------- | |
# | |
# Covers all ANSI colors and formatting options in standard 7-color TTY mode. | |
# | |
C_Reset="\033[0m" | |
# Normal Bold Underline | |
C_Black="\033[0;30m"; C_B_Black="\033[1;30m"; C_U_Black="\033[4;30m" |
NewerOlder