Skip to content

Instantly share code, notes, and snippets.

View ph33nx's full-sized avatar
🥷
Cooking

Abhi ph33nx

🥷
Cooking
View GitHub Profile
@ph33nx
ph33nx / lrc_to_srt.py
Created December 8, 2025 18:32
Python script that converts LRC lyric files into clean SRT subtitles for lyric videos and Final Cut Pro.
"""
LRC to SRT Subtitle Converter in Python
======================================
Author: ph33nx
GitHub: https://github.com/ph33nx
License: MIT
Description:
------------
@ph33nx
ph33nx / disable-google-chromecast-in-microsoft-edge.reg
Created December 7, 2025 16:13
Disable Google Chrome Cast in Windows and Microsoft Edge (2026)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"EnableMediaRouter"=dword:00000000
@ph33nx
ph33nx / wordpress-development-docker.md
Last active November 30, 2025 04:03
WordPress Local Development Setup with Docker | LocalWP | Quick start guide for WordPress dev server with persistent data 2025

WordPress Local Development Environment with Docker

Quick setup for local WordPress development (plugins and themes) using Docker. Works with VSCode Remote - Containers.

1. Create a docker-compose.yml file with the following content in your project directory:

services:
  db:
    image: mariadb:latest
@ph33nx
ph33nx / antivirus-scan-on-fedora-using-clamav.md
Last active October 23, 2025 03:00
Antivirus Scan on Fedora 42 using ClamAV (2025)

Step 0: Install ClamAV with Daemon and Updater

sudo dnf install clamav clamav-freshclam clamd

Step 1: Enable SELinux Boolean for Full System Scanning

@ph33nx
ph33nx / cleanup_and_harden_windows.ps1
Last active June 6, 2025 09:16
[JUN 2025 UPDATE] Windows 10/11 Hardening & Cleanup Script – Disable Telemetry, Turn Off Search Indexing, Purge Temp & Update Caches for Privacy and Security (sysadmin, remove telemetry, clean temp files, disable diagnostics, Windows privacy)
<#
.SYNOPSIS
Hardens Windows 10/11 by disabling telemetry, turning off indexing, disabling Start-menu search suggestions, and cleaning up temp files, update caches, event logs, and the Recycle Bin.
.DESCRIPTION
This script will:
• Stop & disable Connected User Experiences & Telemetry (DiagTrack)
• Disable WAP Push Agent (dmwappushsvc) and Diagnostic Policy Service (DPS)
• Set AllowTelemetry = 0 in the registry (minimal data collection)
• Disable the scheduled tasks “ProgramDataUpdater” and “Microsoft Compatibility Appraiser”
@ph33nx
ph33nx / cleanup_and_harden_macos.sh
Last active October 30, 2025 20:05
Automated macOS Sequoia Hardening & Cleanup Bash Script – Disable Telemetry, Turn Off Spotlight Indexing, Purge Caches & Logs for Privacy and Security (sysadmin, macOS harden, privacy, disable telemetry, cleanup script)
#!/usr/bin/env bash
###############################################################################
# Author: ph33nx
# URL: https://github.com/ph33nx
#
# Description:
# This bash script automates the process to harden macOS (tested on Sequoia 15.5) by disabling
# or minimizing telemetry, turning off Spotlight indexing, and performing
# routine cleanup of caches, logs, temporary files, and the Trash. It is ideal
# for sysadmins, power users, and privacy-focused developers who want to:
@ph33nx
ph33nx / bulk_img_convert_and_rename.py
Created May 4, 2025 23:53
Lightning‑fast Python CLI Script to bulk convert any image format (PNG, JPEG, WebP, BMP, TIFF, GIF…) into compressed, progressive JPEGs, bulk renamed, with all metadata stripped and every CPU core engaged. Ideal for web performance, SEO, e‑commerce product galleries, and batch uploads.
#!/usr/bin/env python3
"""
bulk_img_convert_and_rename.pyBulk Image Convert & Rename Python Script
Productionready commandline utility for web developers, photographers, SEO specialists and ecommerce teams who need to bulk convert and bulk rename thousands of images before pushing to GitHub, S3, CDN or serving them on highperformance websites.
Core features:
- Bulk image convert: reads every format Pillow supports (PNG, JPEG, WebP, BMP, TIFF, GIF, etc.) and compresses them into small, progressive JPEGs optimised for web delivery.
- Automatic bulk rename: each output is saved as img_<n>.jpg, ready for CDN caching and staticsite generators.
- Oneclick metadata stripping: removes EXIF, GPS, ICC and all other heavy data to protect privacy and improve SEO scores.
@ph33nx
ph33nx / directplay.py
Last active May 8, 2025 04:12
Python script that converts videos to H.264/AAC MP4 so Jellyfin, Plex, Emby, Android TV and Chromecast devices stream without transcoding. Perfect for media servers, homelabs, NAS boxes and Proxmox LXC VMs. #ffmpeg #chromecast #jellyfin #transcode #remux #batch-encode #python #smart-tv #media-server #directplay
#!/usr/bin/env python3
"""
directplay.py
=============
Batch-optimise any video library so every file direct-plays on
Chromecast, smart-TVs and desktop/mobile browsersno server-side
transcoding required.
Key features
@ph33nx
ph33nx / audio-conversion-ffmpeg-opus-webm.md
Last active April 22, 2025 15:35
FFmpeg Audio Conversion Guide: Convert MP3 to high-quality Opus in a WebM container for efficient audio streaming and compression on Windows, Linux, and macOS

Audio File Conversion with FFmpeg for Audio Streaming

Author: ph33nx

This guide provides detailed instructions for converting your audio files (e.g., MP3) into a high-quality, compressed Opus format encapsulated in a WebM container using FFmpeg. It is designed for developers, system administrators, and audio engineers looking for efficient audio streaming, optimal media conversion, and reliable audio compression solutions across multiple operating systems.

Table of Contents

@ph33nx
ph33nx / TurnOffMonitor.ps1
Created March 3, 2025 08:20
PowerShell Windows API Script: Instantly Turn Off Your Monitor (Developer Hack) Leverage this advanced PowerShell script that uses Windows API calls to instantly power off your monitor without disrupting background tasks. Perfect for system automation, IT efficiency, and developer productivity. Follow the included shortcut instructions to set up…
# TurnOffMonitor.ps1
# This script leverages the Windows API via .NET to power off the display while keeping background processes running.
# Author: ph33nx (https://github.com/ph33nx)
# Shortcut Instructions:
# 1. Right-click on your Desktop and select "New > Shortcut".
# 2. In the "Type the location of the item" field, paste:
# powershell.exe -ExecutionPolicy Bypass -File "C:\path\to\TurnOffMonitor.ps1"
# 3. Click "Next", give your shortcut a name (e.g., "Turn Off Monitor"), and finish.
# 4. (Optional) Assign a hotkey by right-clicking the shortcut, selecting "Properties", and setting your desired key combination.
# Keywords: Windows API, PowerShell, monitor off, turn off display, display sleep shortcut, Windows shortcut, system automation,