Skip to content

Instantly share code, notes, and snippets.

Begin by enclosing all thoughts within <thinking> tags, exploring multiple angles and approaches.
Break down the solution into clear steps within <step> tags. Start with a 20-step budget, requesting more for complex problems if needed.
Use <count> tags after each step to show the remaining budget. Stop when reaching 0.
Continuously adjust your reasoning based on intermediate results and reflections, adapting your strategy as you progress.
Regularly evaluate progress using <reflection> tags. Be critical and honest about your reasoning process.
Assign a quality score between 0.0 and 1.0 using <reward> tags after each reflection. Use this to guide your approach:
0.8+: Continue current approach
0.5-0.7: Consider minor adjustments
Below 0.5: Seriously consider backtracking and trying a different approach
@mikeslattery
mikeslattery / webcam2html.sh
Last active November 16, 2023 21:11
AI Webcam to html
#!/bin/bash
# Takes a photo and converts to a project text artifact.
# Just experimental for now.
set -euo pipefail
THISDIR="$(dirname "$0")"
#shellcheck disable=SC1091
source "$THISDIR/.env"
@yayuniversal
yayuniversal / raspi-reset
Last active December 21, 2024 04:02
raspi-reset
#!/bin/bash
BS=64M
ROOT_DEV=/dev/mmcblk0
BOOTFS_BACKUP=${ROOT_DEV}p3
BOOTFS_TARGET=${ROOT_DEV}p1
ROOTFS_BACKUP=${ROOT_DEV}p2
ROOTFS_TARGET=${ROOT_DEV}p4
print_yellow() {
echo -e "\033[1;33m${1}\033[0m"
@modded-soldier-9
modded-soldier-9 / index.pug
Created March 28, 2023 14:29
Pure CSS Particle Animation
.container
img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/221808/sky.jpg").background
p.message all your dreams can come true<br>if you have the courage to pursue them
- for (i = 1; i <= 100; i++)
.circle-container
.circle

Кунг-фу на клавиатуре. Искусство сочетать клавиши


Сочетания клавиш для тех, кто хочет войти в IT и не только.


Содержание

@FreddieOliveira
FreddieOliveira / docker.md
Last active May 12, 2025 11:26
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@ppoffice
ppoffice / README.md
Last active May 8, 2025 07:48
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@tomhicks
tomhicks / plink-plonk.js
Last active May 12, 2025 16:01
Listen to your web pages
@avivace
avivace / telegramRestore.md
Last active May 11, 2025 19:07
Restore deleted Telegram messages from groups

Restore deleted Telegram messages, medias and files from groups

There's not telegram API method for this, we need to call MTProto methods to retrieve messages from the "Recent Actions" (Admin Log) since deleted messages (and medias) gets moved there for 48 hours before the permanent deletion.

from telethon import TelegramClient, events, sync
from telethon.tl.types import InputChannel, PeerChannel