Skip to content

Instantly share code, notes, and snippets.

View WganMe's full-sized avatar

Wael Alnahari WganMe

View GitHub Profile
@WganMe
WganMe / 00-hide-server.conf
Created July 15, 2025 12:48
00-hide-server.conf
# High Priority Server Header Security
ServerTokens Prod
ServerSignature Off
<IfModule mod_headers.c>
# Multiple methods to ensure server header is hidden
Header always unset Server
Header onsuccess unset Server
Header unset Server
Header always set Server "WebServer"
@WganMe
WganMe / modsec2.user.conf
Created July 15, 2025 12:48
modsec2.user.conf
SecServerSignature Off
@WganMe
WganMe / instantclient
Created July 13, 2025 15:44
instantclient
yum install -y https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-basic-21.12.0.0.0-1.el9.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-sqlplus-21.12.0.0.0-1.el9.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-tools-21.12.0.0.0-1.el9.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-devel-21.12.0.0.0-1.el9.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-jdbc-21.12.0.0.0-1.el9.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-odbc-21.12.0.0.0-1.el9.x86_64.rpm
@WganMe
WganMe / Partition
Created July 2, 2025 05:25
Partition
AlmaLinux 9 Partition Scheme - MiB Units
Here's your partition table converted to MiB units:
Complete Partition Table in MiB
Order File System Mount Point LVM Name RAID Partition Size Space Used
1 ext4 /boot - 1 3,072 MiB 12,288 MiB
2 xfs / 10 668,467 MiB 1,336,934 MiB
3 xfs /var 10 153,600 MiB 307,200 MiB
4 xfs /var/log 10 64,000 MiB 128,000 MiB
5 xfs /var/log/audit 10 38,400 MiB 76,800 MiB
@WganMe
WganMe / start_ollama_rtx2060s.ps1
Last active April 12, 2025 11:45
start_ollama_rtx2060s.ps1
# PowerShell script for Ollama with CUDA support for RTX 2060 SUPER
# Add status window
Add-Type -AssemblyName System.Windows.Forms
$statusForm = New-Object System.Windows.Forms.Form
$statusForm.Text = "Ollama Status - RTX 2060 SUPER"
$statusForm.Size = New-Object System.Drawing.Size(500,300)
$statusForm.StartPosition = "CenterScreen"
$statusBox = New-Object System.Windows.Forms.TextBox
$statusBox.Multiline = $true
@WganMe
WganMe / VT Virtualization technology enabled but not detected
Created January 25, 2025 02:39
VT Virtualization technology enabled but not detected
bcdedit /set hypervisorlaunchtype off
@WganMe
WganMe / notepad++
Created January 4, 2025 15:53
notepad++
*.* !+\node_modules !+\vendor !+\.git
@WganMe
WganMe / homepage.blade.php
Last active February 8, 2024 11:29
Laravel time
<?php
use Carbon\Carbon;
$dt = Carbon::now();
// Global
$locale = ('app.locale');
Carbon::setLocale('$locale');
?>
{!! Theme::partial('header') !!}
@WganMe
WganMe / Custom CSS
Created February 5, 2024 09:12
Custom CSS
.auth-card .form-check .form-check-input {
margin-left: 3px;
}
.form-check-input {
position: initial;
margin-top: auto;
margin-left: auto;
}
.login-options {
text-align: center;
@WganMe
WganMe / ec_product_categories
Created February 5, 2024 09:10
product_categories
INSERT INTO `ec_product_categories` (`id`, `name`, `parent_id`, `description`, `status`, `order`, `image`, `is_featured`, `created_at`, `updated_at`, `icon`, `icon_image`) VALUES
(1, 'Animals & Pet Supplies', 0, 'Animals & Pet Supplies', 'published', 0, NULL, 0, '2023-12-31 21:00:00', '2023-12-31 21:00:00', NULL, NULL),
(8, 'Arts & Entertainment', 0, 'Arts & Entertainment', 'published', 0, NULL, 0, '2023-12-31 21:00:00', '2023-12-31 21:00:00', NULL, NULL),
(111, 'Business & Industrial', 0, 'Business & Industrial', 'published', 0, NULL, 0, '2023-12-31 21:00:00', '2023-12-31 21:00:00', NULL, NULL),
(141, 'Cameras & Optics', 0, 'Cameras & Optics', 'published', 0, NULL, 0, '2023-12-31 21:00:00', '2023-12-31 21:00:00', NULL, NULL),
(166, 'Apparel & Accessories', 0, 'Apparel & Accessories', 'published', 0, NULL, 0, '2023-12-31 21:00:00', '2023-12-31 21:00:00', NULL, NULL),
(222, 'Electronics', 0, 'Electronics', 'published', 0, NULL, 0, '2023-12-31 21:00:00', '2023-12-31 21:00:00', NULL, NULL),
(412, 'Food, Beverage