Skip to content

Instantly share code, notes, and snippets.

@mihaiandrei97
mihaiandrei97 / checkout.ts
Created January 11, 2025 07:39
Create checkout with dynamic product
return stripe.checkout.sessions.create({
mode: 'subscription',
customer: stripeCustomerId,
payment_method_types: ['card'],
line_items: [
{
price_data: {
currency: 'usd',
unit_amount: productPrice,
product_data: {
import asyncio
import base64
import json
import os
import pyaudio
from websockets.asyncio.client import connect
class SimpleGeminiVoice:
def __init__(self):
@willmcgugan
willmcgugan / mother.py
Created September 2, 2024 14:09
Aliens AI
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "llm",
# "textual",
# ]
# ///
from textual import on, work
from textual.app import App, ComposeResult
from textual.widgets import Header, Input, Footer, Markdown
@joekrill
joekrill / docker-compose.yml
Last active April 8, 2024 04:53
Linkwarden Docker Compose
version: "3.9"
volumes:
postgres:
services:
postgres:
image: postgres
restart: unless-stopped
healthcheck:
@Birch-san
Birch-san / README.md
Last active April 26, 2023 20:05
Using diffusers + pytorch + torchvision with Python 3.11 on Linux with Conda and CUDA 11.8 on Ubuntu 22.10 with Nvidia driver 525
@peanutbutterandcrackers
peanutbutterandcrackers / Guix-DE-Integration.md
Last active May 1, 2025 18:13
Guix Desktop-Environment Integration Guide

Guix Desktop-Environment Integration:

A guide to better DE-Integration for the GNU Guix Package Manager.

This has been tried and tested (successfully) in the following desktop environments:

  • GNOME (Debian 10.2 'Buster')
  • MATE, XFCE, KDE (Linux Mint 19 'Tara')
  • Cinnammon (Linux Mint 19.1 'Tessa')
  • Pantheon (Elementary OS 5.0 'Juno')
WITH
bytes AS (
SELECT 0x00 AS byte
UNION ALL
SELECT byte+1 FROM bytes WHERE byte < 0xFF
),
base AS (
SELECT 0x0000 AS cp
UNION ALL
SELECT cp+1 FROM base WHERE cp < 0x10FFFF
@fedir
fedir / fosdem_2019.md
Created February 18, 2019 22:23
FOSDEM 2019 > Videos ranking
@kragen
kragen / ideas.md
Last active January 23, 2019 02:03

What I have most of are ideas, that and paranoia about evildoers imperiling their realization with patents, or using patents to force them to be realized in ways that strengthen the existing structures of oppression. So here are a few ideas, in case anyone else is interested.

  • Programmable self-reproducing robots from inorganic raw materials, of course, are the absolute most important thing that anyone could be working on right now. This is the crucial missing piece that keeps us constrained to a political structure where the owners of