Skip to content

Instantly share code, notes, and snippets.

View Sly777's full-sized avatar

Ilker Guller Sly777

View GitHub Profile
@Sly777
Sly777 / blacklist-filters.txt
Created November 2, 2025 16:17
Adblock Lists
||graph.instagram.com^
||adservice.google.de^
||adservice.google.co.uk^
||imasdk.googleapis.com^
||graph.facebook.com^
||grammarly-marketing.s3.amazonaws.com^
@Sly777
Sly777 / update-domain-rules.sh
Last active August 11, 2025 15:39
Adding UFW rules based on domains (Cloudflare, github and debian)
#!/bin/bash
# UFW Domain Rules Updater - Enhanced Version
# Updates UFW rules for domains with current IPs and timestamps
# =============================================================================
# CONFIGURATION - UPDATE THIS SECTION TO ADD/REMOVE DOMAINS
# =============================================================================
# Domain patterns to match in UFW rule comments (for cleanup)
DOMAIN_PATTERNS=(
@Sly777
Sly777 / remove-domain-rules.sh
Last active August 11, 2025 12:56
Removing UFW Rules by domain-based check
#!/bin/bash
# UFW Domain Rules Remover - Centralized Domain Configuration
# Removes domain-based UFW rules with configurable patterns
# =============================================================================
# CONFIGURATION - UPDATE THIS SECTION TO ADD/REMOVE DOMAINS
# =============================================================================
# Domain patterns to match in UFW rule comments
# Add or remove patterns here - they will be used throughout the script
@Sly777
Sly777 / compare-apps-with-cask.sh
Last active December 15, 2023 13:00
Identify mac apps installable via Brew Cask from installed applications
#!/bin/bash
echo "⊚ Starting the application comparison process..."
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
# Define a list of applications to ignore (normalized names)
declare -a ignore_apps=(
@Sly777
Sly777 / next.config.js
Last active October 12, 2020 14:29
Next.js 9.4+ Sitemap on Serverless or SSR projects
// ...etc.
// ------------------------------------------------------------
// For sitemap stuff
const globby = require('globby');
const globalUtilities = require('./src/utils/globalUtil');
const excludePagePattern = [
// NOTE: add your custom routes that must not visible on sitemap