Skip to content

Instantly share code, notes, and snippets.

View dasilva333's full-sized avatar

Richard Pinedo dasilva333

View GitHub Profile
@dasilva333
dasilva333 / flux-workflow.json
Created October 15, 2024 18:53
Flux GGUF + KSampler
{
"output": {
"1": {
"inputs": {
"unet_name": "Fluximate_v1_Q8_0.gguf"
},
"class_type": "UnetLoaderGGUF",
"_meta": {
"title": "Unet Loader (GGUF)"
}
@dasilva333
dasilva333 / deploy.sh
Created September 22, 2024 18:04
Runpod Deploy Script
#!/bin/bash
# Step 0: Check if CUDA is available before proceeding
if ! python -c "import torch; print(torch.cuda.is_available())" | grep -q "True"; then
echo "CUDA is not available. Proceeding with termination process."
# Download and install runpodctl
echo "Downloading and installing runpodctl..."
wget -qO- cli.runpod.net | bash
@dasilva333
dasilva333 / compare-pony-models.py
Created September 17, 2024 05:21
Comparison of Weights for Pony Models
import os
import json
import torch
from safetensors.torch import load_file
# Define the base paths
checkpoint_dir = "./models/checkpoints"
pony_base_path = os.path.join(checkpoint_dir, "ponyDiffusionV6XL_v6StartWithThisOne.safetensors")
results_file = 'similarity_results.json'
results = {}
@dasilva333
dasilva333 / discord_extension.js
Created August 3, 2024 21:27
Discord Image Metadata Copier
// ==UserScript==
// @name Discord Image Metadata Copier
// @run-at document-start
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Add a new link to copy Discord image metadata to clipboard
// @author You
// @match https://discord.com/*
// @grant none
// ==/UserScript==
import { LimitOrder, MakerTraits, Address } from "@1inch/limit-order-sdk"
import { Wallet } from 'ethers'
import { Api, HttpProviderConnector } from "@1inch/limit-order-sdk"
import axios, { AxiosRequestHeaders } from 'axios';
// Implementing the HttpProviderConnector interface
class AxiosHttpProviderConnector implements HttpProviderConnector {
async get<T>(url: string, headers: AxiosRequestHeaders): Promise<T> {
const response = await axios.get<T>(url, { headers });
import DPSUnit from '../../classes/DPSUnit';
import AoEHelper from '../../classes/AOEHelper.js'; // Path to the AoEHelper class
import DamageValues from '../classes/DamageValues.js'; // Path to the AoEHelper class
class Pyrotechnic extends DPSUnit {
static defaultImage = "pyrotechnic.png";
static name = "Pyrotechnic";
constructor(config) {
super(config);
@dasilva333
dasilva333 / gist:67904e3e75a5bb69a16808c532671364
Last active October 12, 2023 11:27
Crystal mancer talents
{
"name": "Crystalmancer",
"talents": [
[
{
"name": "CrystalArcanist",
"label": "Crystal Arcanist",
"description": "Mages have a chance to appear with a crystal. Merging this mage summons an Arcanist, which can reduce armor by 0.5% with its attacks. The Arcanist also has a 40% chain attack possibility.",
"extraFields": [
{
[
{
"name": "AbsorptionOfEvil",
"label": "Absorption of Evil",
"description": "Marks are distributed among the highest-ranked Hunters upon merging or absorbing marked Hunters. Damage increases with each mark.",
"extraFields": [
{
"name": "marks",
"label": "Marks",
"type": "number",
@dasilva333
dasilva333 / gist:8b85eb56328368da9e543a93cc07e7e4
Last active March 14, 2021 22:44
editMessageMedia not working
const TeleBot = require('telebot');
const devKey = '';
const bot = new TeleBot(devKey);
var lastMessage;
var photoUrl = 'https://telegram.org/img/tl_card_destruct.gif';
bot.on('/start', msg => {
console.log('message_id', msg.message_id, 'sender_chat_id', msg.sender_chat.id, 'chat_id', msg.chat.id);
@dasilva333
dasilva333 / index.html
Created November 8, 2020 17:47
Interactive Wheel Menu
<h1>Click and hold anywhere, then move the cursor</h1>
<div class="wheel">
<div class="arc"><i class="fas fa-home"></i></div>
<div class="arc"><i class="fas fa-question"></i></div>
<div class="arc"><i class="fas fa-bell"></i></div>
<div class="arc"><i class="fas fa-camera"></i></div>
<div class="arc"><i class="fas fa-trash-alt"></i></div>
<div class="arc"><i class="fas fa-save"></i></div>
<div class="arc"><i class="fas fa-flag"></i></div>