Skip to content

Instantly share code, notes, and snippets.

View polya20's full-sized avatar

polya polya20

View GitHub Profile
@polya20
polya20 / fast_speech_text_speech.py
Created February 16, 2024 13:49 — forked from thomwolf/fast_speech_text_speech.py
speech to text to speech
""" To use: install LLM studio (or Ollama), clone OpenVoice, run this script in the OpenVoice directory
git clone https://github.com/myshell-ai/OpenVoice
cd OpenVoice
git clone https://huggingface.co/myshell-ai/OpenVoice
cp -r OpenVoice/* .
pip install whisper pynput pyaudio
"""
from openai import OpenAI
import time
@polya20
polya20 / gist:080657ec27976fa2ae43998bf3d3d06f
Created November 27, 2023 14:06 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
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!
@polya20
polya20 / normcore-llm.md
Created September 14, 2023 10:50 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
#/usr/bin/bash
set -x
path=${APPNAME}/prod/k8s/cluster${1}
serviceaccount=${APPNAME}-prod-k8s-cluster${1}
underscore=${APPNAME}__prod__k8s__cluster${1}
dcos security org service-accounts keypair private-${serviceaccount}.pem public-${serviceaccount}.pem
dcos security org service-accounts delete ${serviceaccount}
dcos security org service-accounts create -p public-${serviceaccount}.pem -d /${path} ${serviceaccount}
dcos security secrets delete /${path}/private-${serviceaccount}
dcos security secrets create-sa-secret --strict private-${serviceaccount}.pem ${serviceaccount} /${path}/private-${serviceaccount}