Skip to content

Instantly share code, notes, and snippets.

@evalstate
evalstate / mcp-install.ps1
Created December 12, 2024 10:22
Powershell Script to install a Node packaged MCP Server for Claude Desktop
param(
[Parameter(Mandatory=$true)]
[string]$PackageName
)
Write-Host "Starting installation process for $PackageName..."
# Check Claude Desktop folder
Write-Host "Checking Claude Desktop installation..."
$claudeFolder = Join-Path $env:APPDATA "Claude"
@senderle
senderle / hand-modify-pdf.md
Created September 23, 2020 15:03
So you want to modify the text of a PDF by hand

So you want to modify the text of a PDF by hand...

If you, like me, resent every dollar spent on commercial PDF tools, you might want to know how to change the text content of a PDF without having to pay for Adobe Acrobat or another PDF tool. I didn't see an obvious open-source tool that lets you dig into PDF internals, but I did discover a few useful facts about how PDFs are structured that I think may prove useful to others (or myself) in the future. They are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.

@jlia0
jlia0 / agent loop
Last active March 17, 2025 23:00
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
@jagregory
jagregory / gist:710671
Created November 22, 2010 21:01
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork [email protected]
@leopoldhub
leopoldhub / Youtube default original soundtrack.user.js
Last active March 17, 2025 23:04
Youtube default original soundtrack - Tampermonkey script
// ==UserScript==
// @name Youtube default original soundtrack
// @namespace http://tampermonkey.net/
// @version 2025-03-17
// @description Automatically switch the Youtube video soundtrack to the original language.
// @author leopoldhub
// @match https://www.youtube.com/watch*
// @icon https://youtube.com/favicon.ico
// @grant none
// ==/UserScript==
@brazilnut2000
brazilnut2000 / gitignore template.txt
Last active March 17, 2025 22:54
GIT: gitignore template for c# development
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
@cjlawson02
cjlawson02 / README.md
Last active March 17, 2025 22:51
Repurposing an Android Digital Photo Frame as a Home Assistant Dashboard

Repurposing an Android Digital Photo Frame as a Home Assistant Dashboard

This project is a simple way to repurpose a digital photo frame as a Home Assistant dashboard. The idea is to have a device that is always on and always connected to the Home Assistant server, so you can have a quick look at the status of your home automation system.

Results

Here's a photo of the Nexfoto frame running Fully Kiosk Browser with Home Assistant:

Nexfoto frame running Fully Kiosk Browser with Home Assistant

@markasoftware
markasoftware / enterprise_token.rb
Last active March 17, 2025 22:51
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@tblakex01
tblakex01 / .py
Created March 17, 2025 22:50 — forked from Madhav-MKNC/.py
All the code you need to create a powerful agent that can create and edit any file on your computer using the new text_editor tool in the Anthropic API.
import anthropic
import os
import sys
from termcolor import colored
from dotenv import load_dotenv
class ClaudeAgent:
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000):
"""Initialize the Claude agent with API key and model."""
@scyto
scyto / docker-swarm-architecture.md
Last active March 17, 2025 22:49
My Docker Swarm Architecture