Category Archives: Programming

Suspicious process running under user

I was tired of getting WHM email for processes that I was very much aware that were running.  You can add these to the ignore file to relieve the excessive emails.  Mine happened to be a php program so the syntax is as follows.  Open up the file and add: then you just need to restart the service for your changes to take effect.  

How to Install SSL from SSH

This is more of a reference for myself to come back to, but if anyone else needs the details here they are. This was for ubuntu so structure may be different depending on setup. Ensure SSL is enabled Generate CSR Request (Which will create private keys and csr) in etc/ssl/private Move CSR to Certs Folder Secure Copy Certificates from Desktop to server If you need to bundle the certs use Edit VHosts for Port 443 Check vhosts config Restart Apache Verify it worked http://www.sslshopper.com/ssl-checker.html#hostname=www.yoururl.com

How to change file permissions after SVN UPDATE

I was frustrated because SVN takes umask to assign file permissions for the user and I had one file that needed different permissions to run. After researching for a while at the best approach, I decided to create a 3 line bash script to do change the file permissions afters the svn update.



I named the file svnupdate.sh so running bash svnupdate.sh from shell changes the directory to public_html, updates the files, and then changes the permissions of the index.php file.

This is not meant to be an elaborate solution, but hopefully will point someone to a direction quicker that it took me.

Solved X11 GUI not working in putty

I was having all kids of issues trying to get a RETS server admin GUI display up and running. It uses java and the first error I was receiving from the command line was

Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

I am sshing into the server with putty on Windows. The error above led me to download and install Xming. After downloading and installing I went to Putty > Connection > SSH > X11 > Click enable and set display location to 127.0.0.1:0.

Still no dice. It wasn’t getting any error in putty window, but learned if you right click putty window > Event Log will give you tons of information. I found this gem:

2013-11-03 17:20:26 Remote debug message: No xauth program; cannot forward with spoofing.

of course, xauth wasn’t installed. I ran the follow to install and had gui up in no time.

yum search xauth
yum install xorg-x11-xauth


Another thing to look at is your sshd_config make sure you have the following set X11Forwarding yes

Finding the Google Places Reference String

The illusive Reference String. A client needed to pull their reviews from google and after research I found out that I needed to use the getDetails() method to gather this information. Upon going to their API docs, I was left with this

This method takes a request, containing the desired Place’s reference value.
If only they told you how to get the value…ugh… After playing around with it, I found that the textSearch() method included this value in its response. I put together a client side script that uses a jQuery geocomplete plugin to get the lat/lng to pass the textSearch() method to retrieve the Reference String. You only need to know the address of place you are searching for.

I am not going to provide the script for it, but if you view source you can pull the appropriate code. ——> Find Google Places Reference String Now