Skip to content

Instantly share code, notes, and snippets.

View 0xdevalias's full-sized avatar
👀
Open to opportunities

Glenn 'devalias' Grant 0xdevalias

👀
Open to opportunities
View GitHub Profile
@Cortexelus
Cortexelus / udio.py
Last active May 10, 2024 12:59
Automate Udio (2024-04-13)
# AUTOMATE UDIO
# by DADABOTS dadabots.com
# was working on 2024-04-13
# tldr; get your login cookie, use it to automate udio from python
import requests
import json
from time import sleep
import re
const fs = require("fs");
const { SourceMapConsumer, SourceMapGenerator } = require("source-map");
function reverseSourceMap(sourceMap) {
return SourceMapConsumer.with(sourceMap, null, (consumer) => {
const reversedMap = new SourceMapGenerator();
consumer.eachMapping((mapping) => {
reversedMap.addMapping({
generated: {
line: mapping.originalLine,
@ivanfioravanti
ivanfioravanti / sd_webp_workflow.json
Created November 27, 2023 06:56
(basic) ComfyUI Stable Video Diffusion workflow webp
{
"last_node_id": 25,
"last_link_id": 43,
"nodes": [
{
"id": 14,
"type": "VideoLinearCFGGuidance",
"pos": [
487.799932861328,
265.6999450683599
@levelsio
levelsio / gist:5bc87fd1b1ffbf4a705047bebd9b4790
Last active April 26, 2024 19:34
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
@j0lol
j0lol / style.css
Last active March 21, 2024 03:13
Beeper compact sidebar
/*
Gist link for desktop users: https://gist.github.com/j0lol/9674befc870e2b62fe9a24fe29ef9e1a
Made by @j0lol:beeper.com. For support, message me on Beeper or at https://j0.lol
*/
/* Shorten room height */
.rooms_scroll-container ._2iYRbtxMK350NUKTyKq6TP {
height: 32px;
}
This file has been truncated, but you can view the full file.
function(e,n,t){var r=t(99581);n.createRoot=r.createRoot,n.hydrateRoot=r.hydrateRoot}
function(e,n,t){/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
@danielgross
danielgross / ai-plugin.json
Created March 23, 2023 22:59
ChatGPT Plugin for Twilio
{
"schema_version": "v1",
"name_for_model": "twilio",
"name_for_human": "Twilio Plugin",
"description_for_model": "Plugin for integrating the Twilio API to send SMS messages and make phone calls. Use it whenever a user wants to send a text message or make a call using their Twilio account.",
"description_for_human": "Send text messages and make phone calls with Twilio.",
"auth": {
"type": "user_http",
"authorization_type": "basic"
},

I created a dedicated HTTP API for official ChatGPT API, its using POST so it can handle long prompts and it supports setting all OpenAI properties

Example in NodeJS: (Its same for other languages you need to create a post request like below)

Ask ChatGPT a question

axios({
    method: 'post',
    url: 'https://chatgpt.pawan.krd/ask',
    headers: {
@thomasantony
thomasantony / chatgpt_parser_md.py
Last active January 11, 2024 13:21
Convert saved HTML transcripts from ChatGPT to Markdown
# Save the transcripts using the "Save Page WE" Chrome Extension
# This script was generated by ChatGPT
import sys
from bs4 import BeautifulSoup
# Check if a file was provided as a command line argument
if len(sys.argv) < 2:
print("Please provide an HTML file as a command line argument.")
sys.exit(1)
@zer0TF
zer0TF / convert_to_safe.py
Created November 28, 2022 04:53
Convert all CKPT files to SAFETENSOR files in a directory
# Got a bunch of .ckpt files to convert?
# Here's a handy script to take care of all that for you!
# Original .ckpt files are not touched!
# Make sure you have enough disk space! You are going to DOUBLE the size of your models folder!
#
# First, run:
# pip install torch torchsde==0.2.5 safetensors==0.2.5
#
# Place this file in the **SAME DIRECTORY** as all of your .ckpt files, open a command prompt for that folder, and run:
# python convert_to_safe.py