fortiguard category id list for cli

FG04-IAD2 (1) # set categorycategory ID 0 Unrated1 Drug Abuse2 Alternative Beliefs3 Hacking4 Illegal or Unethical5 Discrimination6 Explicit Violence7 Abortion8 Other Adult Materials9 Advocacy Organizations11 Gambling12 Extremist Groups13 Nudity and Risque14 Pornography15 Dating16 Weapons (Sales)17 Advertising18 Brokerage and Trading19 Freeware and Software Downloads20 Games23 Web-based Email24 File Sharing and Storage25 Streaming Media and Download26 Malicious […]

cpanel error install munin

/usr/local/cpanel/scripts/sysup/usr/local/cpanel/scripts/check_cpanel_rpms –fix [[email protected] www]# /scripts/check_cpanel_rpms –fix [2020-05-15 22:43:38 -0700] [2020-05-15 22:43:38 -0700] Problems were detected with cPanel-provided files which are RPM controlled. [2020-05-15 22:43:38 -0700] If you did not make these changes intentionally, you can correct them by running: [2020-05-15 22:43:38 -0700] [2020-05-15 22:43:38 -0700] > /usr/local/cpanel/scripts/check_cpanel_rpms –fix [2020-05-15 22:43:38 -0700] The following RPMs are […]

Monitoring response-time via nsclient++

setup remote ping check Monitoring response-time via NSClient++ Add a command to NSClient++’s configuration file custom.ini:command[check_ping]=C:\plugins\check_ping.exe -H $ARG1$ -w $ARG2$ -c $ARG3$ Add a command to NSClient++’s configuration file op5.ini check_ping = cmd /c scripts\op5\check_ping.exe -H $ARG1$ -w $ARG2$ -c $ARG3$

Shibboleth opensaml – FatalProfileException – Message was signed, but signature could not be verified

Client asked to update our cert to their adfs. Couldn’t find a good way to troubleshoot this using google so started to examine all the configuration files in /etc/shibboleth. Led me to federationmetadata.xml. Found section keydescriptor that looked like a certificate so I added a new section with the new cert. <KeyDescriptor use=”signing”> <KeyInfo xmlns=””> […]

SSL/TLS Strong Encryption: How-To # “Modern” configuration, defined by the Mozilla Foundation’s SSL Configuration # Generator as of August 2016. This tool is available at # SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 # Many ciphers defined here require a modern version (1.0.1+) of OpenSSL. Some # require OpenSSL 1.1.0, which as of this writing was in pre-release. SSLCipherSuite […]

ntpq -pn

[email protected]:~# ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== - 3 u 30 64 1 1.182 -0.029 0.000 + .GOOG. 1 u 20 64 1 52.571 0.660 0.240 + .GOOG. 1 u 20 64 1 36.033 1.016 0.176 - .GOOG. 1 u 24 64 1 140.712 1.154 0.286 * […]

Magento – Add images/icons to attribute options to replace placeholder image of your Magento products page

magento view.phtml around line 100 replace the if statement <?php if($_item->getColor()): ?> <?php $optionId = $_item->getColor(); $optionIdurl = Mage::helper(‘attributeoptionimage’)->getAttributeOptionImage($optionId) ?> <a href=”#” class=”color_swatch”> <?php if (strpos( $this->helper(‘catalog/image’)->init($_item, ‘small_image’)->resize(100, 150), ‘placeholder’)) { ?> <img src=”<?php echo $optionIdurl; ?>” /> <?php } else { ?> <img src=”<?php echo $this->helper(‘catalog/image’)->init($_item, ‘small_image’)->resize(100, 150); ?>” /> <?php } ?> […]

some backup links using rsync ElkarBackup is a free open-source backup solution based on RSync/RSnapshot Automated Rsync Backup   Here’s how to setup an automated backup process using Rsync. 1. Test rysnc using a password. Here we will be copying files from /src-dir to /dest-dir on [email protected] 1 > rsync -rvz -e ‘ssh -p 22’ –progress /src-dir [email protected]:/dest-dir 2. […]

Percona cluster failed

one of the nodes failed then the whole cluster went down. shutdown mysql on all nodes cat /var/lib/mysql/grastate.dat check which node has the highest seq number boot strap that node service mysql bootstrap-pxc then start the next node but before that mv /var/lib/mysql/grastate.dat ~ service mysql start this will start a full resync wait till it […]

Cloudrouter 3.0 eval

trying out cloudrouter 3.0. Doesn’t seem like much of a router when it doesn’t have dhcp. How To Install DHCP Server on CentOS 7          

WTF – VMware Update Manager 6.0 Install

I remember installing this was much easier back in da day…. First problem Trying to find vmware update manager. There is no download link for it on vmware website. After much searching you’ll find it in the vcenter iso. Second problem .net 3.5 sp1 installation in windows 2012 can only be done through server manager. This […]

Python setting up eclipse

kinda old article but mostly worked. to update java on Mac used this   i installed minimal eclipse install and then added pydev

Shitty documentation installing magmi

When you install magmi and you access magmi/web/magmi.php initial login/pass will be “magmi/magmi”. After you setup db connection info it will use magento back office login/password. create magmi/.htaccess Order deny,allow Deny from all then create magmi/web/.htaccess Order allow,deny Allow from all RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.+)$ RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Add passphrase to private key

You can still add a passphrase to a private key even after a certificate is generated. openssl rsa -des3 -in your.key -out your.encrypted.key mv your.encrypted.key your.key the -des3 tells openssl to encrypt the key with DES3. remove it openssl rsa -in your.key -out you will be asked for your passphrase one last time by […]

How to install magmi

extract magmi to your magento folder go to magmi/web/ create htpasswd using ‘/usr/local/apache/bin/htpasswd -c .htpasswd itheadaches’ set owner to files ‘chown -R fill4style.fill4style itheadaches’ set permission to files install php-mbstring, in my case I had to recompile apache with mbstring    

FUCK: syntax error in /etc/sudoers file

[email protected]:~$ sudo >>> /etc/sudoers: syntax error near line 33 <<< sudo: parse error in /etc/sudoers near line 33 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin   [email protected]:~$ pkexec visudo -f /etc/sudoers ==== AUTHENTICATING FOR org.freedesktop.policykit.exec === Authentication is needed to run `/usr/sbin/visudo’ as the super user Multiple identities can […]

svchost.exe high cpu on windows 7

svchost.exe high cpu on windows 7 used process explorer to figure out what service is taking up all the cpu. process explorer is a free tool from microsoft. found it was dnscache. read here to try disabling the dns service. I disabled the service and DNS resolution was working, but after a while it would stop […]

Pagespeed higher score for magento with cache-control

Add this at the end of .htaccess file ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg “access 1 week” ExpiresByType image/jpeg “access 1 week” ExpiresByType image/gif “access 1 week” ExpiresByType image/png “access 1 week” ExpiresByType text/css “access 1 week” ExpiresByType application/pdf “access 1 week” ExpiresByType application/javascript “access 1 week” ExpiresByType application/x-javascript “access 1 […]

Create Download CMS Page on OpenCart 2.x Quick and Dirty

~/www/catalog/view/theme/default/template/download/download.tpl   <?php echo $header; ?> <?php echo $content_top; ?> <div class=”container”>  <div class=”row”><?php echo $column_left; ?>    <?php if ($column_left && $column_right) { ?>    <?php $class = ‘col-sm-6’; ?>    <?php } elseif ($column_left || $column_right) { ?>    <?php $class = ‘col-sm-9’; ?>    <?php } else { ?>    <?php $class = ‘col-sm-12’; ?>    <?php } ?> […]

image/gif was stretched even though width/height was set

Use object-fit:contain in CSS styles to contain image inside width/height. <div class=”swatch-loader” style=”text-align:center;”><img src=”<?php echo $this->getSkinUrl(‘images/ajaxcartpopup/loading.gif’);?>” width=”17″ height=”17″ style=”object-fit:contain;display:inline;” /></div>

[Prestashop] How to fix edit product and delete product in back office order

Test should work for any 1.6.x.x, but only tested on,, and There is a problem with the token. orders.js is the new file and orders.js.bak is the original js file. You will see the token is pulled from the url/href. [email protected] [/home/bozzolo/www]# diff js/admin/orders.js js/admin/orders.js.bak 595c595 < token: window.location.href.split(‘token=’)[1].split(“&”)[0], — > token: token, […]

mariadb ibdata1 file huge

Magento – Menu toggle dropdown broken in left column

design/frontend/mogan/default/template/catalog/layer/view.phtml moved javascript to the very bottom <script> jQuery(document).ready(function(){ jQuery(document).on(‘click’,”#shop-by-header”,function(){ jQuery(“#shop-by-content”).slideToggle(); }); jQuery(document).on(‘click’,”dt[data-toggle=’true’]”,function(){ var elm=jQuery(this),name=jQuery(this).attr(‘data-name’).split(‘-‘)[1]; console.log(‘dd[data-toggle=”toggle-‘+name+'”]’); jQuery(‘.toggle-‘+name).slideToggle( “slow”,function(){ if(elm.text()===’- ‘){ elm.find(‘span’).text(‘+ ‘); }else{ elm.find(‘span’).text(‘- ‘); } }); }); }); </script>java  

Magento – swatches slowing down site

The category page aka product-list page was really slow to load, about 25 seconds plus To troubleshoot Magento’s cpu usage, first enable varien profiler You can also try aoe_profiler Found out it was the configurable swatches. Tried the first method in this post. My load time went from 25s to 10s. Then I […]

import sample magento magmi configurable product csv

I used the export all products dataflow as a template then started modifying it from there. Put configurable product at the end. Added + in front of image url so that it will not add as exclude image added 3 columns: media_gallery,super_products_sku,configurable_attributes Used magmi to import the csv in magmi enabled itemprocessors, “Magmi Optimizer, Magmi Magento […]

PHP message: PHP Fatal error: Class ‘SoapClient’ not found in …..php on line 134″ while reading response header from upstream, client:, server:, request: “GET /zeki893.php HTTP/1.1”, upstream: “fastcgi://”, host: “”

Problem: “PHP message: PHP Fatal error: Class ‘SoapClient’ not found in /usr/share/nginx/html/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php on line 134” while reading response header from upstream, client:, server:, request: “GET /zeki893.php HTTP/1.1”, upstream: “fastcgi://”, host: “” Fix: yum install php-soap

wordpress high cpu load

first installed mysql query this is a bad ass plugin this plug lead me to a huge mysql query then found it was a bug in wordpress v4.3  

some stuff nginx stuff