Skip to content

Instantly share code, notes, and snippets.

@sametcn99
sametcn99 / traycer-agent-selection-guide.md
Last active September 5, 2026 19:12
Strict agent and model selection policy for Traycer, requiring explicit user choice for every task and keeping fast mode disabled unless explicitly requested.

Agent & Subagent Selection Guide

Core Rule

Never use, launch, or delegate work to a sub-agent unless the user explicitly requests sub-agent usage for the current task.

Do not decide on your own that a task would benefit from sub-agents, regardless of its size, complexity, duration, or parallelizability.

If the user does not mention sub-agents, perform the task normally without them.

@sametcn99
sametcn99 / README.md
Last active June 7, 2026 21:56
A userscript that automatically hides viewed job postings in LinkedIn Jobs.

LinkedIn Hide Viewed Jobs

Hide or highlight viewed job postings on LinkedIn Jobs with a privacy-first userscript built for Tampermonkey and Violentmonkey — or install as a standalone browser extension for Chrome and Firefox.

This project focuses on three things: stable LinkedIn SPA behavior, high-confidence multilingual viewed/applied detection, and safer scrolling with guard and cooldown protections.

Quick Links

@sametcn99
sametcn99 / README.md
Last active May 26, 2026 15:38
Glob patterns are a powerful mechanism for matching file and directory names in a file system.

Using Glob Patterns in TypeScript Projects: A Comprehensive Guide with Detailed Character Explanations and Examples

Introduction to Glob Patterns in TypeScript

Glob patterns are a powerful mechanism for matching file and directory names in a file system. In TypeScript projects, they play a crucial role in tasks such as file selection, automation, and maintaining a modular project structure. To harness the full power of glob patterns, it's essential to understand each character and its role in defining matching criteria. Let's dive into a detailed exploration of glob pattern characters:

* (Asterisk)

  • Usage: Represents any sequence of characters.
@sametcn99
sametcn99 / git-repos-cloner.ps1
Created February 18, 2026 21:24
GitHub Repo TUI Cloner (PowerShell)
<#
GitHub Repo TUI Cloner (PowerShell)
What this script does:
- Fetches your owned repositories from the GitHub API using a token.
- Shows an interactive terminal UI so you can pick exactly which repos to clone.
- Clones only selected repositories into a destination folder.
Authentication:
- Preferred: set `$env:GITHUB_TOKEN` in your shell.
@sametcn99
sametcn99 / hello_world.json
Created November 23, 2023 01:01
"Hello, World!" is a traditional and iconic phrase used in the programming world to mark the beginning of a programmer's journey with a new programming language or environment. This JSON file contains a multilingual greeting, "Hello World," translated into various languages. Each translation is associated with its respective language and region.…
{
"hello_world": {
"English (United Kingdom, United States, various English-speaking countries)": "Hello World",
"Spanish (Spain, Latin America)": "Hola Mundo",
"French (France, Belgium, Canada, Switzerland, various other countries)": "Bonjour le Monde",
"German (Germany, Austria, Switzerland, other German-speaking regions)": "Hallo Welt",
"Chinese (China, Taiwan, Singapore, various Chinese-speaking regions)": "你好,世界",
"Japanese (Japan)": "こんにちは、世界",
"Korean (South Korea, North Korea)": "안녕하세요, 세계",
"Russian (Russia, Belarus, Kazakhstan, various former Soviet countries)": "Привет, мир",
@sametcn99
sametcn99 / Dockerfile
Created December 25, 2025 13:21
Docker configuration files to run PayloadCMS using the Bun runtime and PostgreSQL database.
# To use this Dockerfile, you have to set `output: 'standalone'` in your next.config.js file.
FROM oven/bun:alpine AS base
WORKDIR /app
# Install dependencies only when needed
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
@sametcn99
sametcn99 / insta-public-archiver.py
Created December 23, 2025 23:10
A Python script designed to download all media (photos and videos) from public Instagram profiles without requiring a login.
import instaloader
import time
import random
import sys
import os
def download_posts_anonymous(username):
"""
Downloads posts from a specified profile anonymously.
It creates a dedicated sub-folder for EACH post to ensure
@sametcn99
sametcn99 / migrate.sh
Last active October 23, 2025 23:12
A fully automated Bash script to migrate from ESLint + Prettier to Biome. It initializes Biome, migrates ESLint and Prettier configurations, removes old config files, and updates package.json scripts. Designed for Bun environments with full Next.js ESLint compatibility.
#!/usr/bin/env bash
#
# migrate-to-biome.sh
# ---------------------------------------------------------------------------------------------------
# 🔧 Purpose:
# Fully automate the migration from ESLint + Prettier → Biome using Bun.
#
# 🧠 What it does:
# 1. Initializes Biome (if missing)
# 2. Migrates ESLint & Prettier configurations safely (handles Next.js)
@sametcn99
sametcn99 / theme.ts
Created October 22, 2025 15:26
shadcn theme configuration for mui
import { createTheme } from "@mui/material";
// Single, app-wide dark theme styled to resemble shadcn's default dark theme.
// Key choices (mapped from shadcn tokens → MUI):
// - background.default: zinc-950 (#09090B)
// - background.paper: same base, minimal elevation look
// - text.primary: zinc-200 (#E4E4E7), text.secondary: zinc-400 (#A1A1AA)
// - divider/border: zinc-800 (#27272A)
// - primary: near-white (#FAFAFA) with dark contrast (shadcn primary for dark)
// - secondary: neutral surface (#27272A)
@sametcn99
sametcn99 / biome.json
Created October 19, 2025 21:56
A clean and minimal Biome configuration for Next.js applications. Features tab indentation, double quotes for JavaScript strings, recommended linting rules, and automatic import organization. Includes Git integration and processes all file types for comprehensive code quality checks.
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},