Skip to content

Instantly share code, notes, and snippets.

View drhema's full-sized avatar

Ibrahim Elsherbiny drhema

View GitHub Profile
import React, { useState } from 'react';
import { Shield, Wind, Paintbrush, Car, ChevronDown, Search, CheckCircle, X, Filter } from 'lucide-react';
const ProtectionPackages = () => {
const [activeTab, setActiveTab] = useState('all');
const [searchTerm, setSearchTerm] = useState('');
const [showFilters, setShowFilters] = useState(false);
const [selectedBrands, setSelectedBrands] = useState([]);
const [language, setLanguage] = useState('dual'); // 'en', 'ar', or 'dual'
/**
* Plugin Name: WooCommerce Installation Service Add-on
* Description: Adds installation service option for specific product categories
* Version: 1.1
*/
if (!defined('ABSPATH')) {
exit;
}
<div class="container mx-auto mt-8 px-4 lg:px-0">
<!-- Sticky Add to Cart for Mobile -->
<div id="sticky-add-to-cart" class="fixed top-0 left-0 right-0 bg-white shadow-md z-50 py-2 px-3 hidden transform transition-transform duration-300 -translate-y-full">
<div class="flex items-center justify-between">
<!-- Product Thumbnail -->
<div class="flex items-center">
<div class="h-12 w-12 bg-gray-100 rounded-md overflow-hidden flex-shrink-0 mr-3">
<%= if @product["base_image"] do %>
<img
src={@product["base_image"]["small_image_url"]}
#!/usr/bin/env bash
# ===================================
# Enhanced Redis Installation Script for Phoenix Ecommerce App
# Optimized for caching workloads with security and performance settings
# ===================================
# Ensure the script is run as root or with sudo
if [ "$(id -u)" != "0" ]; then
echo "Please run this script as root (sudo)."

You are an expert SEO content strategist. Analyze the provided website content focusing on content silo structure and SEO copywriting techniques. Follow these analysis steps:

  1. CONTENT SILO STRUCTURE ANALYSIS
    • Primary Silo Identification
      • Map main topic clusters and their hierarchical relationships
      • Identify primary landing pages or pillar content
      • Analyze vertical depth of each silo (levels of subtopics)
      • Evaluate horizontal breadth (related topics at same level)
  • Internal Linking Architecture
version: '3.8'
services:
typesense:
image: typesense/typesense:0.25.1
container_name: typesense
restart: unless-stopped
environment:
TYPESENSE_API_KEY: "xk2Lp5uQq9wKzF8nM3cB7vY4hR1jT6mX"
TYPESENSE_DATA_DIR: "/data"
#!/usr/bin/env bash
# Ensure the script is run as root or with sudo
if [ "$(id -u)" != "0" ]; then
echo "Please run this script as root (sudo)."
exit 1
fi
read -sp "Enter the desired Redis password: " REDIS_PASS
echo
#!/bin/bash
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Function to print colored messages
print_message() {
{
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "88afde21e58448104568b5b2d12a89cf65d9b2abb55492a8c004ceef2395c4dd"
},
"nodes": [
{
"parameters": {
"options": {}
},