Skip to content

Instantly share code, notes, and snippets.

View WganMe's full-sized avatar

Wael Alnahari WganMe

View GitHub Profile
@WganMe
WganMe / checkmark_good.png
Created July 22, 2019 08:36
checkmark_good.png
You are in a sales team meeting with a company whose information technology (IT) department is not very familiar with what is cloud technology. What is the best way to describe cloud technology to the customer?
Choose an answer:
Cloud technology occurs when a company shifts to virtual machines.
Cloud technology is where the company stores its data and files.
Cloud technology is all of the technology and processes needed to store, manage, and access data running on programs that are transferred to the cloud.
Cloud technology is the process of migrating a company from on-premises to a data center.
@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
@WganMe
WganMe / checksum
Created June 11, 2017 22:16
checksum
LDAP: How to fix "ldif_read_file: checksum error"
10 months ago
57aaf7bb ldif_read_file: checksum error on "/etc/ldap/slapd.d/cn\=config/olcDatabase\=\{0\}config.ldif"
Haha, guess you decided that the warning wasn't for you ;)
# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
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