Skip to content

Instantly share code, notes, and snippets.

View wtfiwtz's full-sized avatar

Nigel Sheridan-Smith wtfiwtz

View GitHub Profile
@ruvnet
ruvnet / X-deno.md
Last active March 11, 2025 02:23
This implementation follows the official MCP specification, including proper message framing, transport layer implementation, and complete protocol lifecycle management. It provides a foundation for building federated MCP systems that can scale across multiple servers while maintaining security and standardization requirements.

Deno Nodejs version

complete implementation using both Deno and Node.js. Let's start with the project structure:

federated-mcp/
├── packages/
│   ├── core/               # Shared core functionality
│   ├── server/            # MCP Server implementation
│   ├── client/            # MCP Client implementation
│   └── proxy/             # Federation proxy
@rain-1
rain-1 / LLM.md
Last active April 8, 2025 13:49
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@Hacktivate-TH
Hacktivate-TH / frida-tamper-grpc.js
Last active December 1, 2022 14:17
Example Frida script to tamper gRPC messages
/*
# Author: Hacktivate Co., Ltd. (https://hacktivate.tech)
#
# Description: An example Frida script for tampering with streaming gRPC messages.
# Full blog post can be found at: https://hacktivate.tech/2022/10/27/a-hackish-way-to-tamper-grpc-traffic-in-android.html
*/
setTimeout(function() {
Java.perform(function() {
@Hacktivate-TH
Hacktivate-TH / grpc-edit.py
Last active August 8, 2024 11:05
Mitmproxy extension for editing gRPC messages
#
# Author: Hacktivate Co., Ltd. (https://hacktivate.tech)
#
# Description: This is an mitmproxy extension for editing gRPC messages over HTTP/2.
# Full blog post can be found at: https://hacktivate.tech/2022/10/27/a-hackish-way-to-tamper-grpc-traffic-in-android.html
#
from concurrent.futures.process import _threads_wakeups
@sas-starbuck
sas-starbuck / createAdminUser.sh
Created June 8, 2022 15:33
create local admin user
#!/bin/sh
#https://gist.github.com/dimitardanailov/6acdd54ab67d5a25c0229b2fe5bbb42b
#https://apple.stackexchange.com/questions/82472/what-steps-are-needed-to-create-a-new-user-from-the-command-line/84039#84039
LOCAL_ADMIN_FULLNAME="Full Name" # The local admin user's full name
LOCAL_ADMIN_SHORTNAME="username" # The local admin user's shortname
LOCAL_ADMIN_PASSWORD="Password123" # The local admin user's password
# this is optional:
@sas-starbuck
sas-starbuck / createUser.sh
Created June 8, 2022 15:31
create local user account (non-admin)
#!/bin/sh
#https://gist.github.com/dimitardanailov/6acdd54ab67d5a25c0229b2fe5bbb42b
#https://apple.stackexchange.com/questions/82472/what-steps-are-needed-to-create-a-new-user-from-the-command-line/84039#84039
LOCAL_USER_FULLNAME="Testing" # The local user's full name
LOCAL_USER_SHORTNAME="testing" # The local user's shortname
LOCAL_USER_PASSWORD="password!" # The local user's password
LOCAL_USER_HINT="terrible pwd!" # The local user's password
IMAGEURL= # local user's picture, comment out if not needed, plus lines 24-25
@szemate
szemate / package-lock-conflicts.md
Last active April 21, 2025 13:55
How to resolve package-lock.json conflicts

How to resolve package-lock.json conflicts

It is not possible to resolve conflicts of package-lock.json in GitHub's merge tool and you need to do a manual merge.

  1. Update the master branch with the latest changes:
    git checkout master
    git pull
    
  2. Merge your feature branch into master:
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active February 7, 2025 23:49
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
@yokawasa
yokawasa / ghcr.md
Last active April 8, 2025 01:08
ghcr (GitHub Container Registry)

ghcr (GitHub Container Registry) quickstart

CLI

To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT

  1. Get PAT (personal access token)

Personal Settings > Developer settings > Personal access tokens

@wolfv
wolfv / fetch.sh
Created September 8, 2021 13:08
Fetch from OCI registry (ghcr.io)
export TOKEN=$(curl --silent https://ghcr.io/token\?scope\=repository:wolfv/artifact:pull | jq -r .token)
curl \
--silent \
--request 'GET' \
--header "Authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.oci.image.manifest.v1+json" \
'https://ghcr.io/v2/wolfv/artifact/manifests/1.0'
echo "\n\nFetching image content now:\n\n"