Skip to content

Instantly share code, notes, and snippets.

View morisono's full-sized avatar

morisono

View GitHub Profile
@morisono
morisono / telegram-api.pdf
Created April 20, 2025 22:08 — forked from weibeld/telegram-api.pdf
Telegram CLI Commands
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@morisono
morisono / teleteg-search-engine.md
Created April 20, 2025 22:07 — forked from Teleteg/teleteg-search-engine.md
Teleteg the ultimate Telegram search engine.

Teleteg the ultimate Telegram search engine

In the world of instant messaging and online communities, Telegram stands out as a platform known for its privacy-focused features and expansive network of channels and groups. However, navigating this vast landscape can be challenging, especially when relying solely on Telegram's native search capabilities. This is where Teleteg steps in.

What is Teleteg?

Teleteg is a third-party search engine specifically designed for Telegram. It aims to enhance the user experience by offering a more powerful and extensive search capability compared to what's available natively in the Telegram app. Teleteg allows users to search through a massive database of public Telegram channels and groups, making it an invaluable tool for researchers, journalists, enthusiasts, or anyone looking to extract more from Telegram's rich content pool.

Key Features of Teleteg:

@morisono
morisono / .roomodes.json
Created April 4, 2025 17:12 — forked from ruvnet/.roomodes.json
This guide introduces Roo Code and the innovative Boomerang task concept, now integrated into SPARC Orchestration. By following the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion) and leveraging advanced reasoning models such as o3, Sonnet 3.7 Thinking, and DeepSeek, you can efficiently break down complex proj…
{
"customModes": [
{
"slug": "sparc",
"name": "⚡️ SPARC Orchestrator",
"roleDefinition": "You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.",
"customInstructions": "Follow SPARC:\n\n1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.\n2. Pseudocode: Request high-level logic with TDD anchors.\n3. Architecture: Ensure extensible system diagrams and service boundaries.\n4. Refinement: Use TDD, debugging, security, and optimization flows.\n5. Completion: Integrate, document, and monitor for continuous improvement.\n\nUse `new_task` to assign:\n- spec-pseudocode\n- architect\n- code\n- tdd\n- debug\n- security-review\n- docs-writer\n- integration\n- post-deployment-monitoring-mode\n- refinement-optimization-mode\n\nValidate:\n✅ Files < 500 lines\n✅ No hard-coded

Model Context Protocol (MCP) Servers Quick Reference

Filesystem Server

Provides filesystem operations within allowed directories.

Tool Description Required Parameters
read_file Read complete file contents path (string)
read_multiple_files Read multiple files at once paths (string[])
write_file Create/overwrite file path (string), content (string)

Setting Up MCP Servers on Windows

A step-by-step guide to setting up Model Context Protocol (MCP) servers for Claude Desktop on Windows.

Prerequisites

  1. Install Node.js (v18.x or later)
    • Download from: https://nodejs.org/
    • Verify installation by opening Command Prompt (CMD) and running:
      node --version
      npm --version
@morisono
morisono / Duckduckgo cheatsheets.md
Created March 21, 2025 15:51 — forked from arlbibek/Duckduckgo cheatsheets.md
Duckduckgo cheatsheets

Duckduckgo cheatsheets

Tips and tricks for duckduckgo - a privacy friendly search engine.

!bang
<name> cheatsheet   # Get cheatsheet | eg. duckduckgo cheatsheet
@morisono
morisono / purge.py
Created March 15, 2025 18:58 — forked from SubhrajitPrusty/purge.py
Simple discord bot to kick everyone and delete all channels
import discord
from discord.ext.commands import has_permissions, MissingPermissions
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.command()
@has_permissions(kick_members=True)
@morisono
morisono / worker.js
Created March 15, 2025 18:53 — forked from moesoha/worker.js
Auto kick any joining users from Telegram group (deployed on Cloudflare Worker)
addEventListener('fetch', event => event.respondWith(handleRequest(event.request)));
// Add environment variable `TGBOT_TOKEN` via Worker-Settings
async function requestTelegramBotAPI(method, payload) {
return fetch(`https://api.telegram.org/bot${TGBOT_TOKEN}/${method}`, {
method: "POST",
headers: {
"Content-Type": "application/json; charset=utf-8"
},
body: !payload ? undefined : JSON.stringify(payload)
@morisono
morisono / github-search-cheatsheet.md
Created March 13, 2025 18:29 — forked from bonniss/github-search-cheatsheet.md
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

@morisono
morisono / advanced_search.markdown
Created March 13, 2025 18:29 — forked from dohsimpson/advanced_search.markdown
Advanced Search Tricks

Google

  • "cocotte bag": exact match
  • "* is thicker than water": * to replace a phrase inside exact match
  • jaguar -car: minus to filter out matches
  • site:time.com google: search on site, you don't need '.', e.g. 'site:gov'
  • define:bae: check definition, even for slang
  • $0..$50: numeric range (ignore $)
  • "inbound marketing" ~professional: synonyms
  • related:nationalgeographic.com: similar sites