- 🔒 Secure SSH configuration
- 🐍 Python environment with deadsnakes PPA
- 🚀 Nginx with UI management
- 🐳 Docker and Docker Compose
- 🔑 SSL/TLS with Let's Encrypt
- 📊 MongoDB Atlas integration
- 💾 Swap and system optimization
- 🔄 Auto-renewal and maintenance scripts
- ⏰ Custom MOTD with system stats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import random | |
import sys | |
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache | |
import torch | |
parser = argparse.ArgumentParser() | |
parser.add_argument("question", type=str) | |
parser.add_argument( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# update-shadcn-components.sh | |
# Script to bulk update all shadcn/ui components in a Next.js project | |
# Usage: ./update-shadcn-components.sh | |
# Set error handling | |
set -e | |
# Check if we're in a Next.js project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
installCursor() { | |
local CURSOR_URL="https://downloader.cursor.sh/linux/appImage/x64" | |
local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png" | |
local APPIMAGE_PATH="/opt/cursor.appimage" | |
local ICON_PATH="/opt/cursor.png" | |
local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop" | |
echo "Checking for existing Cursor installation..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Script to automatically update uv.lock and then update pyproject.toml dependencies. | |
Prerequisites: | |
1. Python 3.11+ (for tomllib) | |
2. tomli-w package (`pip install tomli-w`) | |
3. uv installed and available in PATH | |
Usage: | |
Run this script: `python upgrade_pyproject.py` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# https://gist.github.com/yhoiseth/c80c1e44a7036307e424fce616eed25e | |
from typing import Any | |
from re import match, Match | |
import toml | |
import subprocess | |
def main() -> None: | |
with open("pyproject.toml", "r") as file: |
A step-by-step guide to setting up Model Context Protocol (MCP) servers for Claude Desktop on Windows.
- Install Node.js (v18.x or later)
- Download from: https://nodejs.org/
- Verify installation by opening PowerShell and running:
node --version
npm --version
Provides filesystem operations within allowed directories.
Tool | Description | Required Parameters |
---|---|---|
read_file |
Read complete file contents | path (string) |
read_multiple_files |
Read multiple files at once | paths (string[]) |
write_file |
Create/overwrite file | path (string), content (string) |