Disable Payment Method Based on Country Woocommerce PHP

// Disable gateway based on country function payment_gateway_disable_country( $available_gateways ) { global $woocommerce; if ( isset( $available_gateways['cod'] ) && $woocommerce->customer->get_country() <> 'IN' ) { unset( $available_gateways['cod'] ); } return $available_gateways; } add_filter( 'woocommerce_available_payment_gateways', 'payment_gateway_disable_country' ); ...

0
0

Fix Blurry Screen in DayZ

Im sure if you've played DayZ then you've faced the dreaded blurry screen when you get hit by a zombie or another player.   Well let's fix that.  Follow these simple steps below. First Step Press ESC Second Step  Click Configure Third Step Click Video That's it.  Blur is gone.  Now close out of...

0
0

Rust Experimental Console Commands

UID stands for User ID - this refers to someone’s SteamID64 key. To add an owner add the file users.cfg to your /cfg/ directory Moderating To define someone as an admin, or a moderator on your server simply type into the server console moderatorid 76561197960279927 garry   or ownerid 76561197960279927 garry     god true or false...

0
0

Default Rust Legacy server.cfg File

##Current server cfg ##Edit the dickens out of these variables! rcon.password "YourPassword" server.hostname "Your Cool Server Name" server.maxplayers 50 server.pvp "true" sleepers.on "true" truth.enforce "true" airdrop.min_players "2" env.time "12" env.timescale "0.0066666667" crafting.instant "true" crafting.instant_admins "true" crafting.timescale "1" falldamage.enabled "true" player.backpackLockTime "0" cheaters.log "true" ...

0
0

Install phpmyadmin on nginx

Paste this code inside the server{} code in your etc/nginx/sites-available/example.com file. location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; }...

0
0