Skip to content

Instantly share code, notes, and snippets.

View sayhiben's full-sized avatar

Ben Menesini sayhiben

View GitHub Profile
@sayhiben
sayhiben / agent loop
Created March 12, 2025 21:31 — forked from jlia0/agent loop
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
@sayhiben
sayhiben / playeraid.md
Last active March 5, 2025 02:15
OSR Player Aid

Old-School Player’s Guide: Surviving and Thriving in Swords & Wizardry, OSRIC, and Classic D&D

Introduction: Enter the Old-School Dungeon

Welcome, adventurer! Whether you’re delving into Swords & Wizardry, OSRIC, or another classic D&D world, the old-school style of play is a thrilling throwback that rewards creativity, cunning, and courage. Unlike modern games with exhaustive rules and hand-holding, these retro RPGs harken to a time when “rulings, not rules” shaped the story and player ingenuity trumped character stats. In this guide, you’ll find authoritative advice and fun, immersive tips to help both newcomers and veterans make informed decisions during play. Prepare to learn the strategies of wise wizards and grizzled fighters, avoid common pitfalls, and embrace the spirit of old-school adventure. The dungeon depths await – let’s dive in!


Embrace the Old-School Mindset

@sayhiben
sayhiben / download_models.sh
Last active February 20, 2025 02:43
Krita AI - Download all required and optional models with wget. Useful for Runpod.io and other cloud providers
#!/bin/bash
#
# Simple script to download all required and optional models with wget
# Useful for installing Krita model dependencies on cloud providers like Runpod.io - works with their ComfyUI template
#
# To use:
# 1. Install ComfyUI
# 2. Get a shell/terminal/ssh into the machine
# 3. `cd <yourcomfyuidirectory>/models`
# 4. Place this script in that directory
@sayhiben
sayhiben / Rabbit_r1-Android_Guide.md
Created July 1, 2024 23:02 — forked from veritas06/Rabbit_r1-Android_Guide.md
Instructions to get stock Android or LineageOS21 on the Rabbit r1 (July 2024)

Android on Rabbit r1

July 01, 2024

System Backup

  • Before making any changes, make sure you backup your stock partitions with MTKClient
    • ./mtk rl --skip userdata "path/to/backup"
    • Based on your setup & OS, you may need to include python3 in front: python3 ./mtk rl --skip userdata "path/to/backup"

Stock Android on Rabbit r1

  • I am putting this together as a small guide for users trying to get stock Android (or LineageOS) running on the Rabbit r1.
@sayhiben
sayhiben / r1_apk_changelog.md
Created July 1, 2024 22:43 — forked from DavidBuchanan314/r1_apk_changelog.md
Unofficial RabbitLauncher.apk changelog

Unofficial Rabbit R1 APK Changelog

Executive Summary

The APK is stored in the firmware system partition, and gets updated as a side-effect of OTA firmware updates. Thus, a certain OS version implies a particular APK version. The OS version numbers are more compact, so I'll use them to identify APK versions below.

v0.8.50 seems like a pre-prod version that accidentally got shipped on some early devices. Like all future versions, it sends the device's IMEI during account activation.

v0.8.67 is the "launch day" firmware. It sets the OS-Version and App-Version HTTP headers. It also sends the device's IMEI during authentication.

@sayhiben
sayhiben / good_dog_scraper.py
Last active April 6, 2021 17:35
Save a list of available puppies on GoodDog.com in specific breeds to CSV - GoodDog.com's UX is based on navigating from breed -> breeder -> puppies. There are no options to browse available puppies across breeds or even to identify which breeders may soon have another litter. Good Dog expects its users to dig through its listings, page by page,…
import csv
import logging
import requests
import time
logging.basicConfig(level=logging.NOTSET)
logger = logging.getLogger(__name__)
# Seconds between requests
RATE_LIMIT = 2
@sayhiben
sayhiben / pg_import_csv_to_heroku.sh
Created October 27, 2015 22:33 — forked from jboesch/pg_import_csv_to_heroku.sh
Importing a CSV dump of Postgres data into Heroku
# You have your csv data and it looks like so... It's in a file named "my_data.csv" and we want to import it into a table named "my_things".
"1", "Something", "0.50", "2013-05-05 10:00:00"
"2", "Another thing", "1.50", "2013-06-05 10:30:00"
# Now you want to import it, go to the command line and type:
$ PGPASSWORD=PWHERE psql -h HOSTHERE -U USERHERE DBNAMEHERE -c "\copy my_things FROM 'my_data.csv' WITH CSV;"
# Voila! It's impoted. Now if you want to wipe it out and import a fresh one, you would do this: