۱۶ مطلب در آذر ۱۳۹۵ ثبت شده است

نمونه iptables

http://www.tecmint.com/linux-iptables-firewall-rules-examples-commands/
۲۶ آذر ۹۵ ، ۰۰:۴۳ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

اجرای php در cli با شرط تگ

php.exe -d short_open_tag=on -q
۲۴ آذر ۹۵ ، ۲۱:۴۲ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

چک کردن ssl

https://www.sslshopper.com/ssl-checker.html
۲۴ آذر ۹۵ ، ۱۷:۲۹ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

شورت کات در لینوکس

ln -s /usr/bin/easy_install-2.7 /usr/bin/easy_install


easy_install-2.7 = = مسیری هست که الان نصبه
easy_install == اسم شورتکات
۲۴ آذر ۹۵ ، ۱۶:۰۹ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

update gcc

https://gist.github.com/stephenturner/e3bc5cfacc2dc67eca8b

 

 ln -s /opt/rh/devtoolset-3/root/usr/bin/gcc /usr/bin/gcc
 ln -s /opt/rh/devtoolset-3/root/usr/bin/gfortran /usr/bin/gfortran

۲۴ آذر ۹۵ ، ۱۴:۰۴ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

RPM-GPG-KEY-cern

GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern

لازم میشه
http://linuxsoft.cern.ch/cern/slc68/i386/RPM-GPG-KEY-cern
۲۴ آذر ۹۵ ، ۱۴:۰۰ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

mysql backup windows

:: MySQl DB user
set dbuser=root

:: MySQl DB users password
set dbpass=

:: Switch to the MySQL data directory and collect the folder names
pushd "E:\wamp64\bin\mysql\mysql5.7.9\data"

:: Loop through the folders and use the fnames for the sql filenames, collects all databases automatically this way

echo "hello"

echo "Pass each name to mysqldump.exe and output an individual .sql file for each"

FOR /D %%F IN (*) DO (
"E:\wamp64\bin\mysql\mysql5.7.9\bin\mysqldump.exe" --user=%dbuser% --password=%dbpass% --databases %%F > "C:\SQLBackup\%%F.sql"
)
۲۰ آذر ۹۵ ، ۱۳:۲۹ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

directadmin utf8

perl -pi -e 's/iso-8859-1/UTF-8/' /usr/local/directadmin/data/skins/enhanced/lang/en/lf_standard.html
perl -pi -e 's/windows-1252/UTF-8/' /usr/local/directadmin/data/skins/power_user/header.html
۱۸ آذر ۹۵ ، ۲۱:۵۵ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

ریپوزیتوری mysql 5.7

https://repo.mysql.com/yum/mysql-5.7-community/el/6/x86_64/
۱۴ آذر ۹۵ ، ۱۷:۳۶ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری

حذف پکیج بدون دپندسی ها

rpm -e --nodeps "mysql-community-common-5.7.16-1.el6.x86_64"
۱۴ آذر ۹۵ ، ۱۶:۱۷ ۰ نظر موافقین ۰ مخالفین ۰
محسن داوری