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

How to check if you are running in a VM in linux

On Linux you can use the command virt-what [[email protected]]# virt-what vmware  

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