Skip to content

Instantly share code, notes, and snippets.

@gempir
gempir / langflow.py
Created October 6, 2025 11:45
OpenWebUI Function for Langflow Integration Streaming
"""
title: [BROKEN] Langflow Integration Streaming
description: broken because it can cause the whole openwebui server to crash if the context is too big like "list all tables in our db"
"""
from pydantic import BaseModel, Field
import requests
import json
import os
@gempir
gempir / gist:7508d47844376960ca4b0771b92a9b3b
Created June 13, 2025 07:49
Firefox Client Certificates
about:config
security.default_personal_cert
Select Automatically
@gempir
gempir / readme.md
Last active March 30, 2024 19:59
Constellations Installation Hints

https://next.nexusmods.com/skyrimspecialedition/collections/9zfscf?tab=about

Installing Skyrim Anniversary Upgrade

  • When you don't have the 148 cc files go into Creation in Skyrim press O and download all owned.
  • If you still don't have 148 files (like me 140) verify game integrity and start the game again and check creation club again.
  • If then still not 148, try looking through the creations store for Bethesda Creations that are not installed
@gempir
gempir / gist:adabced53888fcf100ba30ab07773dfb
Last active December 18, 2023 07:18
Bitbucket Cloud PR Shortcuts
// ==UserScript==
// @name Bitbucket Shortcuts advanced
// @namespace https://bitbucket.org
// @version 0.2
// @description Shortcuts
// @author Marco, Denes, Daniel
// @match https://bitbucket.org/*/*/pull-requests/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bitbucket.org
// @grant none
// ==/UserScript==

/etc/systemd/system/[email protected]

EnvironmentFile=-/etc/env.%i
ExecStart=/bin/sh -c "$SOME_ARGUMENT xD" 

/etc/env.123

@gempir
gempir / filters.md
Last active May 9, 2025 03:24
Chatterino Filter Collection
Filter out every user without color (greynames) 2.0
(!(author.no_color) || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message)
Filter out every user without color (greynames)
!(author.no_color)
export default class Collection {
[Symbol.iterator]() {
return Object.values(this.items)[Symbol.iterator]();
}
}
@gempir
gempir / PageCollection.php
Last active July 24, 2020 14:10
Type Safe PHP Collection
<?php declare(strict_types=1);
use ArrayIterator;
use IteratorAggregate;
use Traversable;
class PageCollection implements IteratorAggregate
{
/** @var Page[] */
private $items;
queue = [];
rl.on("line", (link) => {
queue.push(link);
});
while(true) {
if (queue.length === 0) {
continue
@gempir
gempir / Rekursion Aufgabe 1.cs
Created September 14, 2016 14:06
Rekursion Aufgabe 1.cs
using System;
using System.Collections.Generic;
namespace a
{
class Program
{
public static void Main(string[] args)
{
Console.WriteLine(getSumUpTo(2));