Skip to content

Instantly share code, notes, and snippets.

View WganMe's full-sized avatar

Wael Alnahari WganMe

View GitHub Profile
@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
@WganMe
WganMe / ec_product_categories_translations
Created February 5, 2024 09:08
product_categories_translations
INSERT INTO `ec_product_categories_translations`(`lang_code`, `ec_product_categories_id`, `name`, `description`) VALUES
('en_US', 1, 'Animals & Pet Supplies', 'Animals & Pet Supplies'),
('en_US', 8, 'en_USts & en_UStertainmen_USt', 'en_USts & en_UStertainmen_USt'),
('en_US', 111, 'Business & Industrial', 'Business & Industrial'),
('en_US', 141, 'Cameras & Optics', 'Cameras & Optics'),
('en_US', 166, 'Appen_USel & Accessories', 'Appen_USel & Accessories'),
('en_US', 222, 'Electronics', 'Electronics'),
('en_US', 412, 'Food, Beverages & Tobacco', 'Food, Beverages & Tobacco'),
('en_US', 436, 'Furniture', 'Furniture'),
('en_US', 469, 'Health & Beauty', 'Health & Beauty'),
@WganMe
WganMe / requirements.txt
Last active February 1, 2024 02:31
Odoo 17.0 Python 3.12.1
aiohttp==3.9.3
aiohttp-retry==2.8.3
aiosignal==1.3.1
altgraph==0.17.3
appdirs==1.4.4
astor==0.8.1
async-timeout==4.0.2
attrs==23.1.0
Babel==2.9.1
bcrypt==4.0.1
@WganMe
WganMe / partneradvantage.goog
Created September 20, 2023 12:57
partneradvantage.goog
https://skillshop.exceedlms.com/student/catalog/list?category_ids=7781-google-workspace
https://skillshop.exceedlms.com/student/catalog/list?category_ids=7782-google-education
Package: base-files
Pin: release *
Pin-Priority: -1
Package: dovecot*
Pin: release *
Pin-Priority: -1
Package: exim*
Pin: release *
@WganMe
WganMe / message has lines too long for transport
Last active May 24, 2023 03:51
message has lines too long for transport
#https://features.cpanel.net/topic/mail-delivery-reports-wrap-long-text
#[Home]/usr/local/cpanel/whostmgr/docroot
#mail.css
#Lines, 885, 886, 887, 888, 889
.yui-dt-liner {
word-wrap: break-word;
text-wrap: unrestricted;
word-break: break-all; #Add this
}
#[Home]/usr/local/cpanel/base/webmail/jupiter/css
@WganMe
WganMe / Add RTM and metrics repository for CentOS
Created October 2, 2020 07:53
Add RTM and metrics repository for CentOS
vi /etc/yum.repos.d/ovh-rtm.repo
[rtm]
name=OVH RTM RHEL/ CentOS $releasever - $basearch
baseurl=http://last.public.ovh.rtm.snap.mirrors.ovh.net/centos/$releasever/$basearch/Packages/
enabled=1
repo_gpgcheck=1
gpgkey=http://last.public.ovh.rtm.snap.mirrors.ovh.net/ovh_rtm.pub
[metrics]
@WganMe
WganMe / CakePHP
Created August 21, 2020 01:14
CakePHP
The answer is that there are 3 different .htaccess files:
/var/www/app/webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]