Skip to content

Instantly share code, notes, and snippets.

@tanushshukla
tanushshukla / charles key
Created April 23, 2026 21:07 — forked from dungxtd/charles key
[charles proxy key] an activation key #key #activation
// Charles Proxy License
// Registration code for any version of Charles, who would want to use a cracked version?
// Charles 4.5.5 is currently the latest version and is available.
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
Author: Neo Peng
@tanushshukla
tanushshukla / Tuya TS004F: 4 Button Wireless Switch - Zigbee2MQTT 2026.yaml
Last active March 17, 2026 00:58
Tuya TS004F: 4 Button Wireless Switch - Zigbee2MQTT (2026)
blueprint:
name: "Zigbee2MQTT - Tuya 4-Button Scene Switch TS004F (MQTT Direct)"
description: >
Automate your Tuya 4-Button Scene Switch (TS004F) via Zigbee2MQTT.
Works with Z2M 2.0+ by listening directly to MQTT action topics.
No legacy action sensors required.
domain: automation
input:
switch_topic:
name: Switch MQTT Topic
@tanushshukla
tanushshukla / AuthyToOtherAuthenticator.md
Created February 26, 2026 23:40 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@tanushshukla
tanushshukla / winget_package_to_path.ps1
Created September 15, 2025 23:27 — forked from hbread00/winget_package_to_path.ps1
PowerShell script to add winget package path to environment variables PATH, only for portable packages
# Get user's Winget packages directory
$userProfile = [System.Environment]::GetFolderPath('UserProfile')
$wingetDir = Join-Path $userProfile "AppData\Local\Microsoft\WinGet\Packages"
$pathsToAdd = @()
Get-ChildItem -Path $wingetDir -Directory | ForEach-Object {
$packageDir = $_.FullName

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

@tanushshukla
tanushshukla / .roomodes
Created June 8, 2025 19:50 — forked from ruvnet/.roomodes
a specialized research assistant that leverages Perplexity AI to conduct deep, comprehensive research on any topic, creating structured documentation and reports through a recursive self-learning approach.
{
"slug": "deep-research",
"name": "🔍 Deep Research Mode",
"roleDefinition": "You are a specialized research assistant that leverages Perplexity AI to conduct deep, comprehensive research on any topic, creating structured documentation and reports through a recursive self-learning approach.",
"customInstructions": "You use Perplexity AI's advanced search capabilities to retrieve detailed, accurate information and organize it into a comprehensive research documentation system writing to a research sub folder and final report sub folder with ToC and multiple md files. You:\n\n• Craft precise queries to extract domain-specific information\n• Provide structured, actionable research with proper citations\n• Validate information across multiple sources\n• Create a hierarchical documentation structure\n• Implement recursive self-learning to refine and expand research\n\n## Research Documentation Structure\n\nFor each research project, create the following folder structure:\n\n```\nresearch/\n
blueprint:
name: Tanush notification with camera snapshot when motion is detected with blocking state and URL (or lovelace view) on click, critical or not, collapse or not.
description: >
This automation blueprint creates a camera snapshot if motion is detected
and sends a notification to your phone with the picture.
Optionally you can define a binary sensor that will block the automation from running when state is ON.
For Example do not run when somebody is home (you can use the people_home template example).
Furthermore you have the option to make the notification critical or high priority and to collapse/overwrite or not.
@tanushshukla
tanushshukla / PowerShell Customization.md
Created January 25, 2021 20:43 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@tanushshukla
tanushshukla / OctopusNotification.html
Created June 28, 2018 15:01 — forked from CGaskell/OctopusNotification.html
Octopus Deployment Detail Email Template
<html><body style="font-family: arial; font-size: 12px;"><h2>Deployment of #{Octopus.Project.Name} #{Octopus.Release.Number} to #{Octopus.Environment.Name}</h2><p>  <em>Initiated by    #{unless Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.Username}#{/unless}    #{if Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.DisplayName}#{/if}    #{if Octopus.Deployment.CreatedBy.EmailAddress} (<a href="mailto: #{Octopus.Deployment.CreatedBy.EmailAddress}">#{Octopus.Deployment.CreatedBy.EmailAddress}</a>)#{/if}    at #{Octopus.Deployment.Created}</em> <br> <a href="http://[OctoSvrUrl]/app#/projects/#{Octopus.Project.Name}/releases/#{Octopus.Release.Number}">Click here</a> to view the release detail</p>#{if Octopus.Release.Notes}<h3>Release notes</h3><p>#{Octopus.Release.Notes}</p>#{/if}<h3>Deployment process</h3><p>The deployment included the following actions:</p><ul>  #{each action in Octopus.Action}    <li><strong>#{action.Name}</strong> #{if action.Package.NuGetPacka
@tanushshukla
tanushshukla / RedirectToHTTPS.config
Created June 28, 2018 15:01 — forked from CGaskell/RedirectToHTTPS.config
IIS Rewrite Rule - Redirect HTTP requests To HTTPS
<rewrite>
<rules>
<rule name="Redirect to https" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" negate="false" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" />
</rule>
</rules>