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=””> […]

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. […]

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 […]

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 […]

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

some stuff nginx stuff

Observium client setup notes

observium server on ubuntu observium agent wget http://x.x.x.x/apache wget http://x.x.x.x/mysql wget http://x.x.x.x/nginx ubuntu #setup agent apt-get -y install xinetd wget cd /etc/xinetd.d/ wget http://x.x.x.x/observium_agent_xinetd cd /usr/bin/ wget http://x.x.x.x/observium_agent chmod 775 /usr/bin/observium_agent mkdir /usr/lib/observium_agent mkdir /usr/lib/observium_agent/local service xinetd restart #monitor with mysql agent apt-get -y install php5-cli php5-mysql cd /usr/lib/observium_agent/local wget http://x.x.x.x/mysql chmod 775 mysql […]

Change username in Ubuntu

To manage every aspect of the user database, you use the usermod tool. To change username (it is probably best to do this without being logged in): usermod -l newUsername oldUsername This however, doesn’t rename the home folder. To change home-folder, use usermod -d /home/newHomeDir -m newUsername after you changed the username.

Just installed privacy badger

DuckDuckGo Donates $100,000 Among Four FOSS Projects  

invalid app Id: Must be a number or numeric string representing the application id. FB.getLoginStatus() called before calling FB.init().

this was my original code (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); = id; js.async = true; js.src = “//{/literal}{$st_lb_locale}{literal}/all.js#xfbml=1; fjs.parentNode.insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’)); I tried to add FB.init above it with app id but I get an error that FB.init was already called. FB.init […]

setup memcached for cloudlinux

#yum install memcached #yum install libmemcached   Even though memcached is happily running on the server, it’s not accessible from PHP without the PECL extension. Fortunately this is a very easy process, just use the pecl command. # pecl install memcache  

Can’t resolve *.local domain on VPN Mac Yosemite

After running sudo discoveryutil mdnsactivedirectory yes in the terminal we’re able to resolve .local FQDNs again. This gets it to use regular (unicast) DNS for .local domains rather than just using multicast DNS (mDNS, aka Bonjour) to look-up .local addresses. Place the following file in /Library/LaunchDaemons:

Set Static IP on Ubuntu 14.04

dmesg | grep eth look for ethX interface modify /etc/network/interfaces auto eth0 iface eth0 inet static address netmask gateway dns-nameservers dns-search

notes: install node.js on centos 6 i386

rpm -ivh error: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again go edit /etc/yum.repos.d/epel.repo. remove comment from baseurl change #baseurl=$basearch mirrorlist=$basearch to baseurl=$basearch #mirrorlist=$basearch error: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 503” Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for […]