Skip to content

Instantly share code, notes, and snippets.

View scott-coates's full-sized avatar

Scott Coates scott-coates

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

@thealphadollar
thealphadollar / fb_accept_friends.js
Last active August 26, 2025 10:53
Script To Accept All Facebook Friend Requests
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950
Facebook = {
config: {
actionDelay: 1000,
scrollDelay: 5000,
// set to -1 for no limit
maxRequestsToAccept: -1,
totalRequestsAccepted: 0,
// set string to be present in names to be accepted, leave empty to accept all
@jylopez
jylopez / stripe_currency_codes.js
Last active September 3, 2024 15:25
Stripe Currency Codes
[
{currency: 'Afghan Afghani', code: 'AFN'},
{currency: 'Albanian Lek', code: 'ALL'},
{currency: 'Algerian Dinar', code: 'DZD'},
{currency: 'Angolan Kwanza', code: 'AOA'},
{currency: 'Argentine Peso', code: 'ARS'},
{currency: 'Armenian Dram', code: 'AMD'},
{currency: 'Aruban Florin', code: 'AWG'},
{currency: 'Australian Dollar', code: 'AUD'},
{currency: 'Azerbaijani Manat', code: 'AZN'},
@codediodeio
codediodeio / database.rules.json
Last active November 9, 2025 17:54
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@dwilkie
dwilkie / docker-cheat-sheat.md
Last active May 12, 2024 14:08
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

How to use SASS with create-react-app

This will require only one dependency, and one line added to your package.json and it's super fast.

  1. Create an app wih create-react-app.
  2. Install node-sass.
  3. Create your base sass file inside src/sass.
  4. Add a new script to package json that will watch the file, process sass and compile it into src/css.
  5. Include the compiled css into React via require, this way your app will reload whenever the new css is compiled.
  6. ran the new script along with npm start.
@ZwodahS
ZwodahS / copy_redis_key.sh
Created March 1, 2016 06:07
copy a redis db key to another place (use MIGRATE COPY for v3.0<= redis)
#!/bin/bash
# source http://stackoverflow.com/questions/23222616/copy-all-keys-from-one-db-to-another-in-redis
#set connection data accordingly
source_host=localhost
source_port=6379
source_db=1
target_host=localhost
target_port=6379
target_db=2
@mauvm
mauvm / Jasmine-and-Babel6.md
Created November 12, 2015 10:51
Jasmine ES6 run script for use with Babel 6
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine

.babelrc:

{
 "presets": ["es2015"]
@wolfeidau
wolfeidau / app.jsx
Created May 15, 2015 04:50
Simple auth JSX.
'use strict';
var React = require('react');
var Router = require('react-router');
var { DefaultRoute, Route, RouteHandler, Link } = Router;
require('purecss');
require('./app.css');
class App extends React.Component {
@ryaan-anthony
ryaan-anthony / DefaultKeyBinding.dict
Last active June 28, 2017 22:58
~/Library/KeyBindings/DefaultKeyBinding.dict
{
/* Home */
"\UF729" = "moveToBeginningOfLine:";
/* End */
"\UF72B" = "moveToEndOfLine:";
/* Shift + Home */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";