Skip to content

Instantly share code, notes, and snippets.

View trojblue's full-sized avatar

yada trojblue

  • Toronto
  • 18:31 (UTC -07:00)
View GitHub Profile
@jlia0
jlia0 / agent loop
Last active April 19, 2025 23:09
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
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active April 19, 2025 11:36
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@VictorTaelin
VictorTaelin / gpt4_abbreviations.md
Last active March 17, 2025 17:41
Notes on the GPT-4 abbreviations tweet

Notes on this tweet.

  • The screenshots were taken on different sessions.

  • The entire sessions are included on the screenshots.

  • I lost the original prompts, so I had to reconstruct them, and still managed to reproduce.

  • The "compressed" version is actually longer! Emojis and abbreviations use more tokens than common words.

@MrSedan
MrSedan / README.md
Last active August 25, 2024 15:36
NAI (NovelAI) prompt to WebUI prompt converter

NAI to WebUI prompt converter

Running

You just need to have python installed on your system and run:

python3 nai_to_webui.py '{{some word}} some prompt...'

Or (not on Windows):

chmod +x nai_to_webui.py
./nai_to_webui.py '{{some word}} some prompt...'
@crosstyan
crosstyan / swap_attn.py
Last active July 29, 2023 19:42
swap attn layer for stable diffusion model
# some code is from https://github.com/CCRcmcpe/scal-sdt
from typing import Any, Literal, Optional
from pathlib import Path
import warnings
import torch
import click
DType = Literal["fp16", "fp32", "bf16"]
LayerName = Literal["attn", "ff"]
StateDict = dict[str, Any]
@Miraculix200
Miraculix200 / gist:e0fc7c02e7911d840f3abe3c7cdae6f9
Created October 31, 2022 18:52
Dreambooth on SageMaker Studio Lab (save as .ipynb notebook)
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"cellView": "form",
"colab": {
"base_uri": "https://localhost:8080/"
},
@woyin
woyin / autosign.php
Created August 10, 2021 03:22
Auto Sign for Discuz DSU
<?php
header("Content-type:text/html;charset=utf-8");
// 设定cookie和网址
// 通过Chrome 或者Edge 找到对应的Cookie值,找到以saltkey和auth 结尾的Cookie 名称和值,填在这里
$cookie = 'xxxxxxx_saltkey=XXXXXXXX;xxxxxxxx_auth=XXXXXX';
// 获取formhash
$URL = "http://bbs.abc.com/forum.php"; //论坛地址
$str = loadcode($cookie,$URL);
/*
** Buggy-Mouse.ahk - Fix a buggy mouse. Stop it from double-clicking when you try to single-click.
**
** NOTE: Please use this URL when linking to Buggy Mouse: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse
**
** Updated: Thu, Nov 1, 2012 --- 11/1/12, 10:19:19am EDT
** Location: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse
**
** Keywords: mouse double clicks when I click once
** Keywords: mouse double clicks when I single click
@jasonwaters
jasonwaters / karabiner-rules.json
Last active April 4, 2025 13:16
Remap the home and end keys in macOS using Karabiner Elements
{
"rules": [
{
"description": "change home key to command + left_arrow",
"manipulators": [
{
"from": {
"key_code": "home"
},
"to": [