Skip to content

Instantly share code, notes, and snippets.

View GGLinnk's full-sized avatar

Gabriel Grondin GGLinnk

View GitHub Profile
@GGLinnk
GGLinnk / co_import.sh
Last active September 4, 2023 18:48
Scripts for migrating CoreProtect database.db data to MySQL server - https://ralph.sh/coreprotect-sqlite-de20a
#!/bin/bash
# co_import.sh -- Import migrated CoreProtect data into a MySQL server.
# Copyright (C) 2019 Ralph Drake
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@GGLinnk
GGLinnk / 1-voice-synthesis.js
Last active December 9, 2022 06:41 — forked from kesor/1-voice-synthesis.js
Making chat OpenAI use TTS with pretty button for 1 and 2 ^^
// paste this into your chrome dev console for Speech Synthesis
// This version use a pretty button ^^
const originalFetch = window.fetch
const patchedFetch = (...args) => {
if (args[1].method == 'POST' && args[1].body.length > 0 && /moderations$/.test(args[0])) {
const aiResponse = JSON.parse(args[1].body)["input"].split("\n\n\n")
if (aiResponse.length > 1) {
const text = aiResponse.slice(1).join(". ").trim()