Skip to content

Instantly share code, notes, and snippets.

View hidonet's full-sized avatar

Hidayet Ok hidonet

View GitHub Profile
@hidonet
hidonet / gist:f4ed9c64dca5ff6c5c8aea640e0deb53
Created October 15, 2018 16:38
Background scan Cpanel server with clamav
nohup clamscan --exclude=/home/virtfs/* --suppress-ok-results --move=/viruslu/ --exclude=/viruslu/* --follow-dir-symlinks=0 --follow-file-symlinks=0 --recursive=yes --infected / &
@hidonet
hidonet / magento.stpl
Last active September 23, 2019 12:22
vestacp magento nginx template
# Template Updated At 2019-04-17
upstream php_backend_%domain_idn%_%web_ssl_port% {
server %backend_lsnr%;
#server %backend_lsnr% backup;
}
server {
listen %ip%:%web_ssl_port%;
server_name %domain_idn% %alias_idn%;
@hidonet
hidonet / gist:c8b61bc6548174a51c67
Last active February 17, 2023 10:37
Türk bankaları için sanal pos test kartları
"EST (Akbank, IsBankasi, TEB, Anadolubank, Finansbank vs) " =>
"number" => "5404355404355405", "cvv" => "000", "type" => "MC", "expire_month" => "12", "expire_year" => "2019"
"GARANTI" =>
"number" => "4282209027132016", "cvv" => "232", "type" => "VI", "expire_month" => "04", "expire_year" => "2015"
"DENIZBANK (Interpos)" =>
"number" => "4090700015897901", "cvv" => "991", "type" => "VI", "expire_month" => "12", "expire_year" => "2014"
"HSBC" =>
@hidonet
hidonet / gist:1ce41160f25bda89536c
Created July 9, 2015 02:30
Magento Patch 6285
Magento Community 1.9 için
##------------------------------------------
rm -f PATCH_SUPEE-6285_CE_1.9.1.1_v1-2015-07-07-09-03-34.sh;
wget http://www.grinet.com.tr/magento_patches/PATCH_SUPEE-6285_CE_1.9.1.1_v1-2015-07-07-09-03-34.sh;
sh PATCH_SUPEE-6285_CE_1.9.1.1_v1-2015-07-07-09-03-34.sh;
mv PATCH_SUPEE-6285_CE_1.9.1.1_v1-2015-07-07-09-03-34.sh PATCH_SUPEE-6285_CE_1.9.1.1_v1-2015-07-07-09-03-34.sh.applied;
##------------------------------------------
Magento Community 1.7.0.2 için
##------------------------------------------
## Paste this code to /magmi_path/web/head.php file before first line of code...
### Magento admin yetkilendirmesi #####################################################
function authenticate($username="",$password=""){
require "../../app/Mage.php";
Mage::app('default');
$user = Mage::getModel('admin/user');
$user->login($username,$password);