Skip to content

Instantly share code, notes, and snippets.

View lukaszhanusik's full-sized avatar
✨👁️🖤👁️✨ ⚡️

Lukasz Hanusik lukaszhanusik

✨👁️🖤👁️✨ ⚡️
View GitHub Profile
@jlia0
jlia0 / agent loop
Last active July 8, 2025 23:33
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@seqis
seqis / gist:b043ce792820b560b750898b443a1b6b
Last active March 28, 2025 12:56
This script will take anything in your clipboard, including graphics and create a quick Obsidian note. The graphics will be placed in the `Media` folder under the `Notes` folder. The paths are hard-coded for your current Obsidian vault Notes folder.
#!/bin/bash
# This script will take anything in your clipboard, including graphics and create a quick Obsidian note. The graphics will be placed in the `Media` folder under the `Notes` folder. The paths are hard-coded for your current Obsidian vault Notes folder. This script presumes a "Media" foler exists under your ""Notes" folder.
import os
import subprocess
from datetime import datetime
from PIL import Image
import pyperclip
@vrbadev
vrbadev / client.py
Created August 20, 2024 08:49
Simple Python socket server echoing all messages back to connected clients, keeping track of closed client threads
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 20 09:14:55 2024
@author: Vojtech Vrba ([email protected])
Simple socket client.
Connects to a server with an IP given by the current SSH connection, and with a port 12345.
Sends a sample message every 1 second and prints the server's response.
"""
@razhangwei
razhangwei / open_webui.md
Last active February 16, 2025 04:01
Open WebUI
  • How to use Pipe?

    • Find one on the website and import it.
    • Configure the Valves (paramters), usually just the API key is needed.
    • The Pipe's corresponding model will show up in the model list.
  • Add models

    • Add openrouter api in connection and manually add models so that the default list didn't overwelme
    • Add gemini api in the conneciton, but the model list won't be loaded correctly, so it also needs to manually add models (open-webui/open-webui#8445)
@billwallis
billwallis / customers-and-loans.sql
Created May 9, 2024 06:05
Mermaid + DuckDB for generating customer hierarchy diagrams
/*
Mermaid + DuckDB for generating customer hierarchy diagrams
DuckDB version: 0.10.2
Bill Wallis, 2024-05-09
*/
select version();
@billwallis
billwallis / er-diagram.mermaid
Last active March 18, 2025 14:39
Mermaid + DuckDB for generating entity-relationship diagrams
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@squarism
squarism / cli_replacements.md
Last active June 4, 2025 05:26
Modern CLI Replacements

There are a few lists already, I thought I'd create another one so we can have a long list of lists someday. 🤠 Ordered by approximately which ones I actually use often.

Modern CLI Replacements

  • zoxide - A smarter cd command. Supports all major shells.
  • mcfly - Fly through your shell history. Great Scott!
  • Procs - A modern replacement for ps written in Rust
  • sd - Intuitive find & replace CLI (sed alternative)
  • dust - A more intuitive version of du in rust
  • hyperfine - A command-line benchmarking tool
from openai import OpenAI
# initialize the client but point it to TGI
client = OpenAI(
base_url="https://api-inference.huggingface.co/v1",
api_key="hf_xxx" # Replace with your token
)
chat_completion = client.chat.completions.create(
model="google/gemma-7b-it",
@homanp
homanp / main.ts
Last active November 1, 2023 18:59
Superagent Github Researcher
// npm i superagentai-js
import { SuperAgentClient } from "superagentai-js";
const GITHUB_REPO_URL = "https://github.com/homanp/nagato";
const PROMPT = `You are a helpful AI assistant that's an expert at answering questions about the following Github repository: ${GITHUB_REPO_URL}\n\nAlways use the functions provided to answer all questions by the user.`;
interface Agent {
id: string;
name: string;
import autogen
from autogen.retrieve_utils import TEXT_FORMATS
from autogen.agentchat.contrib.retrieve_assistant_agent import RetrieveAssistantAgent
from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent
import chromadb
# Define the configuration list for different models
config_list = [
{