Skip to content

Instantly share code, notes, and snippets.

View WganMe's full-sized avatar

Wael Alnahari WganMe

View GitHub Profile
@WganMe
WganMe / Optimize and repair all tables in all databases
Created April 16, 2017 02:32
Optimize and repair all tables in all databases
mysqlcheck --auto-repair -o --all-databases
@WganMe
WganMe / my.cnf
Last active September 3, 2017 04:04
my.cnf
[client]
default-character-set=utf8
character-sets-dir=/usr/share/mysql/charsets
[mysql]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
bind-address=127.0.0.1
symbolic-links=0
@WganMe
WganMe / How to Install OpenVPN Access Server
Created April 26, 2017 22:30
How to Install OpenVPN Access Server
cipher AES-256-CBC
auth SHA256
https://www.upcloud.com/support/openvpn-access-server/
@WganMe
WganMe / curl libcurl libcurl-devel rhel7 rpm
Last active April 28, 2017 16:37
curl libcurl libcurl-devel rhel7 rpm
http://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/
wget http://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/curl-7.54.0-3.0.cf.rhel7.x86_64.rpm
wget http://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/libcurl-7.54.0-3.0.cf.rhel7.x86_64.rpm
wget http://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/libcurl-devel-7.54.0-3.0.cf.rhel7.x86_64.rpm
rpm -Uvh curl-7.54.0-3.0.cf.rhel7.x86_64.rpm libcurl-7.54.0-3.0.cf.rhel7.x86_64.rpm libcurl-devel-7.54.0-3.0.cf.rhel7.x86_64.rpm
rpm -Uvh http://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/mirror-2.9-13.noarch.rpm
@WganMe
WganMe / Country
Last active April 30, 2017 02:56
Country
<center>
<option value="al">Albania</option>
<form name="al">
<select name="Albania">
<option value="https://itunes.apple.com/al/rss/toppaidebooks/limit=100/xml">Books</option>
<option value="https://itunes.apple.com/al/rss/newpaidapplications/limit=100/xml">iOS Apps</option>
<option value="https://itunes.apple.com/al/rss/toppaidmacapps/limit=100/xml">Mac Apps</option>
<option value="https://itunes.apple.com/al/rss/toppodcasts/limit=100/explicit=true/xml">Podcasts</option>
@WganMe
WganMe / Blacklist
Created May 1, 2017 03:11
Blacklist
سكس
طيز
شرج
لعق
لحس
مص
تمص
بيضان
ثدي
بز
@WganMe
WganMe / named.conf
Last active March 23, 2018 03:22
named.conf
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { 127.0.0.1; localhost; } keys { "rndc-key"; };
};
options {
/* make named use port 53 for the source of all queries, to allow
* firewalls to block all ports except 53:
*/
@WganMe
WganMe / pdns.conf
Created May 2, 2017 18:43
pdns.conf
vi /etc/powerdns/pdns.conf
allow-axfr-ips=216.218.133.2,2001:470:600::2
service pdns restart
@WganMe
WganMe / Holy Quran
Created May 5, 2017 05:41
Holy Quran
الفاتحة
البقرة
آل عمران
النساء
المآئدة
الأنعام
الأعراف
الأنفال
التوبة
يونس
@WganMe
WganMe / translate
Created May 5, 2017 19:08
translate
<?php if (!isset($_SERVER['HTTP_USER_AGENT']) || stripos($_SERVER['HTTP_USER_AGENT'], 'Speed Insights') === false): ?>
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript">(function(){var gtConstEvalStartTime = new Date();function d(b){var a=document.getElementsByTagName("head")[0];a||(a=document.body.parentNode.appendChild(document.createElement("head")));a.appendChild(b)}function _loadJs(b){var a=document.createElement("script");a.type="text/javascript";a.charset="UTF-8";a.src=b;d(a)}function _loadCss(b){var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.charset="UTF-8";a.href=b;d(a)}function _isNS(b){b=b.split(".");for(var a=window,c=0;c<b.length;++c)if(!(a=a[b[c]]))return!1;return!0}
function _setupNS(b){