Skip to content

Instantly share code, notes, and snippets.

View loopyd's full-sized avatar

Robert Michael Smith loopyd

View GitHub Profile
@loopyd
loopyd / nerdfont-install.ps1
Last active June 7, 2022 21:27
Font installer
<#
Name: nerdfont-install.ps1
Author: loopyd <[email protected]>
Description: Script that installs all "Windows Compatible" nerdfonts.
Notes: Compatible with Windows 10 post-build 1806. Please run this script as Administrator
as it performs modifications to the Windows Registry. It is very useful if you just clone the
nerdfont website source repository if you want them all located at: https://github.com/ryanoasis/nerd-fonts
and plop this in the root. This script will walk on in recursively and grab them, then install them.
License: Script is subject to DBAD 1.1 License <https://dbad-license.org/>. A copy of the license
is provided below:
@loopyd
loopyd / gradiotooth.py
Created August 26, 2022 04:08
Gradiotooth - Syntactic python sugar for gradio panels
import functools, argparse, mimetypes, sys, itertools
from sys import platform
from pyclbr import Function
from enum import Enum, auto
import gradio as gr
# gradiotooth.py | Release v0.1
#
# Code is Copyright (C) 2022 saber7ooth <https://www.github.com/loopyd>
# Licensed under DBAD: https://dbad-license.org/
@loopyd
loopyd / install.sh
Created October 4, 2022 05:28
[Script] Unattended installation in WSL (Custom Installer)
#!/bin/bash -ie
########################################################################################
## kinky-ui installer by saber7ooth#7527 - Release 1.3.3
########################################################################################
##
## CREDITS AND GREETZ:
##
## CompVis (required citation under the RAIL license): https://github.com/CompVis/stable-diffusion
## Official Stable Diffusion Discord: https://discord.gg/stablediffusion
## HuggingFace: https://huggingface.co/
@loopyd
loopyd / calmd.conf
Created October 8, 2022 11:17
[ClamAV] clamd.conf for Windows
# YouTube Config ClamAV
LogFile "E:\Program Files\ClamAV\clamd.log"
#LogFileUnlock yes
LogFileMaxSize 2M
LogTime yes
LogClean yes
LogVerbose yes
LogRotate yes
PreludeEnable yes
@loopyd
loopyd / freshclam.conf
Created October 8, 2022 11:18
[ClamAV] freshclam.conf for Windows
DatabaseDirectory "E:\Program Files\ClamAV\database"
UpdateLogFile "E:\Program Files\ClamAV\freshclam.log"
LogFileMaxSize 2M
LogTime yes
LogVerbose yes
LogSyslog yes
LogFacility LOG_MAIL
LogRotate yes
PidFile "E:\Program Files\ClamAV\freshclam.pid"
DNSDatabaseInfo current.cvd.clamav.net
@loopyd
loopyd / starfield.sh
Created October 12, 2022 23:12
[ANSI Art] Starfield
#!/bin/bash
# Have an ascii starfield a really half ass one I wrote while drunk. It looked good
# while i was drinking, now i'm sober and it has problems and so do I please don't tell my husband.
#
# Just call:
#
# msg_anim 'Pooping is healthy' 'Moved the bowels today!' 30
#
# and it will be gone after 30 seconds.
@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;
@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 / 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 / Remove-HPbloatware.ps1
Created August 5, 2023 04:54 — forked from mark05e/Remove-HPbloatware.ps1
Remove HP bloatware
# ██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗██████╗
# ██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██║ ██║██╔══██╗
# ██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ██║█████╗ ███████║██████╔╝
# ██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██║██╔═══╝
# ██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗ ██║ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ ╚═╝ ╚═╝╚═╝
#
# ██████╗ ██╗ ██████╗ █████╗ ████████╗██╗ ██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██║ ██╔═══██╗██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██████╔╝██║ ██║ ██║███████║ ██║ ██║ █╗ ██║███████║██████╔╝█████╗