Skip to content

Instantly share code, notes, and snippets.

View WganMe's full-sized avatar

Wael Alnahari WganMe

View GitHub Profile
@WganMe
WganMe / WJNLLC_Classification
Created September 19, 2019 13:58
WJN LLC Classification
Local Activity code isic4:
461022 البيع بالجملة عن طريق الانترنت
465102 البيع بالجملة للبرمجيات ويشمل الاستيراد
474151 البيع بالتجزئة للبرمجيات
477326 بيع معدات وأجهزة سلكية ولاسلكية
479120 البيع بالتجزئة عن طريق الانترنت
582001 نشر البرامج الجاهزة
620101 تحليل النظم
631121 إقامة البنية الأساسية لاستضافة المواقع على الشبكة وخدمات تجهيز البيانات والأنشطة المتصلة بذلك
702017 تقديم خدمات الاستشارات الإدارية العليا
@WganMe
WganMe / ykman piv reset
Created August 14, 2019 23:20
ykman piv reset
WARNING! This will delete all stored PIV data and restore factory settings. Proceed? [y/N]: y
Resetting PIV data...
Success! All PIV data have been cleared from your YubiKey.
Your YubiKey now has the default PIN, PUK and Management Key:
PIN: 123456
PUK: 12345678
Management Key: 010203040506070801020304050607080102030405060708
@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 / .htaccess
Created June 29, 2019 22:13
.htaccess
# BEGIN LSCACHE
# END LSCACHE
# BEGIN NON_LSCACHE
# END NON_LSCACHE
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
@WganMe
WganMe / manager
Created May 20, 2019 07:47
subscription manager
subscription-manager register --org="11467483" --auto-attach --force
@WganMe
WganMe / APITOKEN
Created May 15, 2019 19:18
CLANTAG
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<?php
$clantag = "<CLANTAG>";
$token = "<APITOKEN>";
$url = "https://api.clashofclans.com/v1/clans/" . urlencode($clantag);
@WganMe
WganMe / libsodium-mcrypt
Created February 14, 2019 05:04
mcrypt libsodium
yum install mcrypt.x86_64 libmcrypt-devel.x86_64 libmcrypt.x86_64 ea-libmcrypt-devel.x86_64 --skip-broken libsodium libsodium-devel -y
https://pecl.php.net/get/mcrypt-1.0.2.tgz
libsodium
@WganMe
WganMe / perl5
Created February 13, 2019 23:19
Can't locate strict.pm: /root/perl5/lib/perl5/strict.pm: Permission denied
chmod a+x /root
@WganMe
WganMe / Unknown media type
Created February 8, 2019 00:04
Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles'
sudo mv -vi /usr/share/mime/packages/kde.xml /usr/share/mime/packages/kde.xml.bak
sudo update-mime-database /usr/share/mime
@WganMe
WganMe / MUNIN Plugin WARN: MySQL InnoDB free tablespace
Created September 27, 2018 03:51
MUNIN Plugin WARN: MySQL InnoDB free tablespace
vi /etc/munin/plugin-conf.d/mysql_innodb
[mysql_innodb]
env.warning 0
env.critical 0
/etc/init.d/munin-node restart
su munin -c /usr/bin/munin-cron