some backup links using rsync

https://github.com/elkarbackup/elkarbackup 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 your.open.key 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 http://magento.stackexchange.com/questions/29891/magmi-images-excluded added 3 columns: media_gallery,super_products_sku,configurable_attributes http://stackoverflow.com/questions/16166425/magmi-importing-configurable-product Used magmi to import the csv http://sourceforge.net/projects/magmi/ 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: 173.197.xxx.xx, server: papertine.com, request: “GET /zeki893.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “papertine.com”

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: 173.197.173.75, server: papertine.com, request: “GET /zeki893.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “papertine.com” Fix: yum install php-soap

some stuff nginx stuff

https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms https://www.digitalocean.com/community/tutorials/understanding-and-implementing-fastcgi-proxying-in-nginx https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/ https://serversforhackers.com/nginx-caching/ http://myjeeva.com/php-fpm-configuration-101.html https://github.com/nicolargo/varnish-nginx-wordpress

Observium client setup notes

observium server on ubuntu http://www.observium.org/docs/debian_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 https://securedrop.org/ https://www.eff.org/privacybadger https://tails.boum.org/ https://gpgtools.org/gpgsuite.html  

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); js.id = id; js.async = true; js.src = “//connect.facebook.net/{/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 https://linuxnlenux.wordpress.com/2013/07/28/memcache-installation-in-cpanel-server-via-yum/  

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: https://gist.github.com/CodingMinds/509bd12a7c7e22f0cfdd https://discussions.apple.com/thread/6611817?start=15&tstart=0

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 98.126.58.2 netmask 255.255.255.248 gateway 98.126.58.1 dns-nameservers 8.8.8.8 4.2.2.2 dns-search itheadaches.com

notes: install node.js on centos 6 i386

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 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=http://dl.fedoraproject.org/pub/epel/6/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch to baseurl=http://dl.fedoraproject.org/pub/epel/6/$basearch #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch error: http://download.fedoraproject.org/pub/epel/6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 503” Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for […]