Skip to content

Instantly share code, notes, and snippets.

View loopyd's full-sized avatar

Robert Michael Smith loopyd

View GitHub Profile
@loopyd
loopyd / deigear.ps1
Last active November 30, 2023 07:00
[POLYGLOT] DeiGEAR - Bootstrapper for Windows Subsystem for Linux
# =================================================================================
# Title: Dei G. E. A. R. - Grossly Enormous Automated Runner
# WSL2 Polyglot Bootstrapping Script
#
# Description: This script configures WSL2 the easy way. It is useful from
# outside of a WSL container to configure the WSL2 environment. It is also
# useful from within a WSL container to configure the WSL2 environment. Thus it is
# an all-in-one single file solution to configure/manage WSL2.
#
# ---------------------------------------------------------------------------------
@loopyd
loopyd / ini-parselib.sh
Last active November 14, 2023 04:35
[Bash] ini parselib - Bash/perl library for reading/modifying ini files
#!/bin/bash
#
# 📯 * AAAAAAAAAAAAAAAAAAAUUUUUUUUUUUUUUUUHHHHHHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN!!!! * 📯
#
# You didn't ask. I did it anyway. Now as a zero-dependency gulp.sh
#
# CONTRIBUTIONS? BUGFIXES? UNCONVERED EDGE CASES? Make them known.
#
# update_ini_file: Updates or adds a key-value pair in a specific section of an INI file
@loopyd
loopyd / wsl-init.sh
Last active October 27, 2023 00:24
[WSL2] Configuration injector
#!/bin/bash
# wsl-init.sh | Version 1.0.0
# License: Unilicense <https://unlicense.org/>
# Author: loopyd <loopyd@github.com>
#
# Simple bash script that injects preferred WSL configuration, and updates the system.
#
# USAGE INSTRUCTIONS
#
@loopyd
loopyd / roar.ps1
Last active October 21, 2023 21:06
[R. O. A. R.] Ridiculous Output Augmentation Routine - A pretty multithreaded PowerShell console-based HUD wrapper for shell commands using runspaces. Customize it as you like. Perfect for long-running operations to show a heads-up display and real time status.
<#
.SYNOPSIS
Ridiculous Output Augmentation Routine - R. O. A. R.
.DESCRIPTION
This function invokes a command. It displays a timer with resource usage while the command is running. It also displays the command name, and entertains the user with an animation.
.PARAMETER Command
The command to invoke.
.PARAMETER Arguments
The arguments to pass to the command.
.EXAMPLE
@loopyd
loopyd / BlAse.ps1
Last active October 23, 2023 08:13
[BlAse.ps1] Autonomous Single-File Aseprite Build Tool
################################################################################
#
# BLASE - AUTOMATED AESPRITE BUILDING FOR WINDOWS
#
# Created by loopyd <loopyd@github.com>
# Version: 1.0.0
# License: Unlicense (https://unlicense.org/)
#
# ==============================================================================
# Inferred from Blep - the draconic windows automation tool
@loopyd
loopyd / blep.ps1
Last active August 10, 2023 06:53
[Powershell] Blep.ps1 - ShadowPC setup in the Draconic Way.
<#
----------------------------------------------
Blep - Draconic keystroke saver for ShadowPC
==============================================
Author: LoopyD <loopyd@github.com>
Version: 1.1.0
License: Unlicense (https://unlicense.org)
----------------------------------------------
INRODUCTION
@loopyd
loopyd / Remove-HPbloatware.ps1
Created August 5, 2023 04:54 — forked from mark05e/Remove-HPbloatware.ps1
Remove HP bloatware
# ██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗██████╗
# ██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██║ ██║██╔══██╗
# ██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ██║█████╗ ███████║██████╔╝
# ██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██║██╔═══╝
# ██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗ ██║ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ ╚═╝ ╚═╝╚═╝
#
# ██████╗ ██╗ ██████╗ █████╗ ████████╗██╗ ██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██║ ██╔═══██╗██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██████╔╝██║ ██║ ██║███████║ ██║ ██║ █╗ ██║███████║██████╔╝█████╗
@loopyd
loopyd / run.ps1
Created May 17, 2023 10:56
[PowerShell] Simple Azure DevOps pipeline executor
# Author: Robert Smith <loopyd@github> | Date Created: 2023-05-17 | License: DBAD Public License vv1.1 09-2016
#
# Description: This script will create a pipeline in Azure DevOps, and run it.
#
# Usage: run.ps1 -Organization https://dev.azure.com/organization -Project ProjectName
# -Repository RepositoryName -RepositoryType github -Branch master -PATToken <PATToken>
# -PipelineName PipelineName -YAMLFilePath /path/to/yaml/file
# -ConfigFilePath /path/to/config/file -DeleteExistingPipeline $true -BuildStage BuildStageName
#
# Parameters:
@loopyd
loopyd / NoesisViewManager.cs
Last active May 27, 2023 00:53
[Unity 3D] [Corgi Engine] [NoesisGUI] [Component] NoesisView Manager - Corgi Singleton
/* **********************************************************************************************************************
NoesisViewManager.cs - A lightweight Noesis singleton ribbon for NoesisView pool management - Release 1.1.0
Copyright (C) 2023 DeityDurg / LoopyD / Saber7ooth
DBAD Licensed -> Please read LICENSE: section for details
**********************************************************************************************************************
FEATURES (current):
- Single component on the Manager prefab does it all
- Queries accelerated by LINQ compile time optimizations (can handle a lot of NoesisView components)
@loopyd
loopyd / catmull-rom.glsl
Last active December 9, 2022 09:36
[GLSL] Catmull-rom as expressed by ChatGPT
// As expressed by ChatGPT -> https://openai.com/blog/chatgpt/
// Calculates a point along a Catmull-Rom spline
// given a set of control points, a tension parameter,
// and a step value in the range [0, 1].
vec2 catmullRom(vec2 p0, vec2 p1, vec2 p2, vec2 p3, float t, float tension) {
vec2 a = 0.5 * (tension * (p2 - p0) + 2.0 * p1 + tension * (p3 - p1)) * t * t * t +
(2.0 * tension * p0 - 3.0 * tension * p1 + (tension + 2.0) * p2 - tension * p3) * t * t +
(tension * p1 + p3 - tension * p2) * t +
2.0 * p1;