Skip to content

Instantly share code, notes, and snippets.

View greglamb's full-sized avatar

Greg Lamb greglamb

View GitHub Profile
@RaiAnsar
RaiAnsar / BUILD_YOUR_OWN_MCP_SERVER.md
Created June 10, 2025 21:38
Claude_Code-Gemini-MCP

Building Your Own MCP Server for Claude Code

This guide will walk you through creating a custom MCP (Model Context Protocol) server that integrates with Claude Code, allowing you to extend Claude's capabilities with external tools, APIs, or even other AI models.

What is MCP?

MCP (Model Context Protocol) is a protocol that allows Claude to communicate with external servers to access tools and capabilities beyond its built-in features. Think of it as a plugin system for Claude.

Prerequisites

substitutions:
name: your-device-name
friendly_name: Your Friendly Device Name
micro_wake_word_model: okay_nabu # alexa, hey_jarvis, hey_mycroft are also supported
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
min_version: 2024.2.0
/* Source of MySQL Raytracer -- https://www.pouet.net/prod.php?which=83222
* Pasted here for convenience, see original for copyright information */
/* MySQL raytracing engine by Nick ([email protected]) */
Select if(repeat(char(
/* Parameters */
@w := 100, /* width of the output in pixels */
@h := 100, /* height of the output in pixels */
@cam.x := 0.0, /* x-position of the camera */
@cam.y := 0.0, /* y-position of the camera */
@adojos
adojos / customize-GitBashPrompt.md
Last active August 2, 2025 02:37
Git: Customizing GitBash Shell Prompt #gitbash

Customizing GitBash Shell Prompt and Theme


As an example, lets assume we want to change / customize the following :

  • Change the Title of the GitBash window from default [MINGW64:/directoryName] to [Tushars Gitbash (Win64)]
  • Change the default prompt () to a customized prompt e.g [GitBash (Win64):> ]

👉 Note ($HOME/.bash_profile vs $HOME/.bashrc vs $HOME/.config):

The below described method only focusses on customizing the 'GitBash' prompt and NOT about customizing default 'Bash' prompt on Linux terminals. Hence this method uses the '$HOME/.config' folder for storing 'GitBash' prompt customization as per XDG Directory Specs. If you are looking for customizing default 'Bash' prompt for your Linux terminal you should be using '$HOME/.bashrc' for storing your customization and hence advised not to continue with this method.

@dhoeric
dhoeric / 0_README.md
Last active November 1, 2025 14:38
Google Calendar - Public Holiday Calendars
@rmcdongit
rmcdongit / macOS_SytemPrefs.md
Last active October 29, 2025 07:07
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane
@IanColdwater
IanColdwater / twittermute.txt
Last active October 25, 2025 19:14
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@n055
n055 / vt420 guide.md
Last active September 21, 2021 02:03
Connecting a VT420 to a Linux PC

Connecting a VT420 to a Linux PC

Hardware

The DEC VT420 terminal only has 6P6C MMJ connectors. We need a converter to make this work with a standard serial to USB adapter. The originals are hard to find or expensive, but we can assemble one new.

  • D9 Female to DEC MMJ. You need to wire up the DE-9/DB9 plug's wires to the adapter's MMJ jack yourself. They actually sent me a DE-9 male adapter by mistake, so I ended up just using an easily obtainable DE-9 gender changer once I'd wired up the adapter.

  • MMJ Null Modem Cable. You could also use a cable that isn't a null modem cable, and use a null modem adapter/cable on the DE-9 side. Or, you could wire up the D9 to MMJ adapter to be null modem.

@legowerewolf
legowerewolf / hyperstart.bat
Last active December 31, 2024 09:17
Selecting a shell on startup in the Hyper terminal emulator
@ECHO off
:top
CLS
ECHO Choose a shell:
ECHO [1] cmd
ECHO [2] bash
ECHO [3] PowerShell
ECHO [4] Python
ECHO.
ECHO [5] restart elevated
@Red-Folder
Red-Folder / nuget.config
Last active July 31, 2024 09:28
Sample nuget.config to show how to add personal nuget server
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NAME" value="FEEDURL" />
<add key="NuGet official package source" value="https://nuget.org/api/v2/" />
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>