This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # originally encouraged by L29ah https://gnusha.org/logs/2025-09-17.log | |
| # parameter is the url of the youtube video | |
| url="$1" | |
| temp=$(mktemp -d) | |
| echo "Made temporary directory $temp" | |
| cd "$temp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run --script --with=groq --with=pydub --with=soundfile --with=sounddevice | |
| # originally from aider's voice.py | |
| # and also https://raw.githubusercontent.com/groq/groq-api-cookbook/refs/heads/main/tutorials/audio-chunking/audio_chunking_code.py | |
| import argparse | |
| import json | |
| import math | |
| import os | |
| import queue | |
| import re | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import wx.adv | |
| import time | |
| # -------------------------- | |
| # GUI Application Definition | |
| # -------------------------- | |
| class MyFrame(wx.Frame): | |
| def __init__(self): | |
| super().__init__(parent=None, title="Simple wxPython App") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/aider/voice.py b/aider/voice.py | |
| index c9af7ae9..ae4bfba8 100644 | |
| --- a/aider/voice.py | |
| +++ b/aider/voice.py | |
| @@ -167,7 +167,7 @@ class Voice: | |
| with open(filename, "rb") as fh: | |
| try: | |
| transcript = litellm.transcription( | |
| - model="whisper-1", file=fh, prompt=history, language=language | |
| + model="groq/whisper-large-v3", file=fh, prompt=None, language=language |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import asyncio | |
| EXPECTED_INNOCENT_COROUTINE_DURATION = 5 # seconds | |
| INNOCENT_COROUTINE_TIMEOUT = EXPECTED_INNOCENT_COROUTINE_DURATION + 10 # seconds | |
| INNOCENT_COROUTINE_TOTAL_TIME = 0 | |
| async def do_nasty_work(): | |
| print("Starting a nasty, busy coroutine") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Used for processing the mbox files found in: | |
| # https://diyhpl.us/~bryan/irc/bitcoin/bitcoin-dev/bitcoin-dev-ml-archive.2024-02-09-004.tar.gz | |
| # | |
| # Why? | |
| # | |
| # Linux Foundation has deprecated lists.linuxfoundation.org, and now we need a url rewriting map | |
| # for the pipermail archive to numbered email files. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| A small Flask web application to demonstrate a shopping cart with simple checkout. | |
| This file was written mostly by Github Co-pilot! | |
| Only the webcash API endpoint was specialized knowledge. | |
| """ | |
| import secrets | |
| import datetime | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| #author: Bryan Bishop <[email protected]> | |
| #date: 2010-03-16 | |
| #updated: 2020-02-10 | |
| from datetime import datetime | |
| strptime = datetime.strptime | |
| logs = open("irclogs.txt", "r").read().split("\n") | |
| LOG_OPENED = "--- Log opened " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Timestamps! | |
| This file creates opentimestamps timestamps for daily IRC logs. It works when | |
| running on a daily basis (called from a cronjob) or when called manually with | |
| multiple days since the last run. | |
| The script will identify all new log files and create timestamps for those new | |
| logfiles. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include "bls.h" | |
| int main() { | |
| std::cout << "Signature aggregation toy attempt\n"; | |
| // create instance of Bls class | |
| bls::Bls my_bls = bls::Bls(); |
NewerOlder