Credit: ph33nx
This guide provides simple, direct steps to manually install the Google USB Driver and ADB/Fastboot binaries using winget
on Windows 10/11.
#!/bin/bash | |
# backup_mysql_db.sh | |
# This script backs up each MySQL/MariaDB database into its own file daily. | |
# The backups are stored in /var/backups/mysql/<database_name>/<database_name>_<date_time>.sql | |
# Backups older than 30 days are automatically deleted. | |
# | |
# Author: Ph33nx | |
# GitHub: https://github.com/ph33nx | |
# |
#!/bin/bash | |
# Run cron jobs for all wordpress sites in a folder using WP CLI. | |
# Author: https://github.com/ph33nx | |
# !IMP: Change BASE_DIR below to the folder that has the wordpress sites. Ex: /var/www or /usr/share/nginx etc.. | |
BASE_DIR="/path_to_folder_that_has_wordpress_sites/" | |
# Check for wp-cli.phar existence in the system | |
if ! command -v wp &> /dev/null; then | |
echo "WP-CLI could not be found. Please install it first." |
sudo dnf update -y && sudo dnf autoremove -y | |
reboot | |
# Enable RPMFusion repos: https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/ | |
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
sudo dnf config-manager --enable fedora-cisco-openh264 | |
sudo dnf update @core | |
# If secure boot | |
sudo dnf install kmodtool akmods mokutil openssl |
#!/usr/bin/env python3 | |
""" | |
Author: ph33nx | |
URL: https://gist.github.com/ph33nx/861d9ff35721d56205c834c7f8308e0b | |
Description: | |
This script converts images from various formats (e.g., PNG, JPG, WebP) to either JPG or WebP for web optimization. | |
It preserves EXIF metadata, allows for optional parameter customization, and handles errors gracefully. |
#!/usr/bin/env python3 | |
import os | |
import sys | |
from babelfish import Language | |
from subliminal import download_best_subtitles, region, save_subtitles, scan_video | |
# Configure subliminal cache | |
region.configure('dogpile.cache.dbm', arguments={'filename': 'cachefile.dbm'}) |
#!/bin/bash | |
# Gaming Setup Script for Arch Linux with Nvidia GPU | |
# Author: ph33nx | |
# Description: Installs all necessary packages and configurations for gaming on Arch Linux | |
# Update system and keyring | |
echo "Updating system and keyring..." | |
sudo pacman -Syu --needed --noconfirm archlinux-keyring |
@echo off | |
:: Batch Script: block_folder.bat | |
:: Author: https://github.com/ph33nx | |
:: Description: Blocks all .exe files in the specified folder (and subfolders) from accessing the internet (both inbound and outbound) using Windows Firewall. | |
:: Usage: | |
:: block_folder.bat [FolderPath] | |
:: - Pass the folder path containing the .exe files to block. | |
:: block_folder.bat -h | |
:: - Displays this help message. |
#!/usr/bin/env python3 | |
""" | |
project2txt.py | |
Python script to scan a project's directory structure for common programming files and export it to a text file. | |
Respects .gitignore rules if present, handles subdirectories, and preserves file contents. | |
Only includes paths that contain common programming and project files. | |
Author: ph33nx | |
GitHub: https://gist.github.com/ph33nx/12ce315ef6dbcf9ef1d01f5371af4a3d |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] | |
"UserAgent"="Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/131.0.2903.86" |
This guide provides simple, direct steps to manually install the Google USB Driver and ADB/Fastboot binaries using winget
on Windows 10/11.