Skip to content

Instantly share code, notes, and snippets.

View sametcn99's full-sized avatar
🎧
Focusing

samet sametcn99

🎧
Focusing
View GitHub Profile
@sametcn99
sametcn99 / README.md
Last active March 24, 2026 17:20
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.

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 / 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 / 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
},

Deploying Calibre-Web on Coolify with Docker Compose

This guide walks you through setting up and running on using . It focuses on building a stable, persistent deployment with proper permissions and fully working upload functionality.


Step 1 β€” Preparing the Docker Compose File

The first step is to prepare a reliable Docker Compose configuration. This defines the container, environment variables, and how data will be stored persistently.

@sametcn99
sametcn99 / sqlSafetyChecker.ts
Created June 11, 2025 10:28
sql-safety-checker
/**
* SQL Query Safety Checker
* Provides comprehensive security analysis for SQL queries including
* dangerous operations, injection patterns, and administrative commands
*/
export enum SecurityLevel {
SAFE = 'safe',
LOW_RISK = 'low_risk',
MEDIUM_RISK = 'medium_risk',
@sametcn99
sametcn99 / sqlQueryBuilder.ts
Created June 11, 2025 08:42
sql query builder
/**
* Database schema types for SQL Lab
*/
export type DatabaseColumn = {
column_name: string
data_type: string
is_nullable: boolean
column_default?: string
column_comment?: string