Setting up Postfix to use an external mail server
Sometimes sending mail to a dev account is all well and good, but if the mail server you are sending to is not accepting the mail for one reason or…
Check open ports on Linux
To run a scan on the port status on a Linux box, you can use the Nmap tool: nmap -sT -O localhost Obviously localhost can be a fully qualified domain…
Vagrant – Errors trying to start
Using Vagrant as a dev environment is great apart from when it goes arry after an OS crash, or battery fault… Chriss-MacBook-Pro:ceta chris$ vagrant reload Setting the name of the…
Saving username and password OpenVPN config
I use the openvpn command line to connect to a certain VPN site, and I get annoyed at having to find the password everytime So, in the .ovpn file, there…
Passing variable as key in jQuery ajax
I wanted to pass a simple key/value string to an Ajax request, but you cannot simply use the variable as the key in the data: var $fieldname = 'company_name'; var…
Change jQuery autosuggest to 2 column dropdown
I often have the problem that the autosuggest isn’t flexible enough, and I need to show contact name AND client name in the drop down Here is a way you…
Log in to SSH with no password
So you want to have your password remembered by a remote SSH connection? Easy, following these steps On your local machine, create a new SSH key: ssh-keygen It will ask…
jQuery tablesorter custom date sort
I needed a custom sort column for jquery tablesorter (http://tablesorter.com/docs/) for dates in the format of 12-Aug-2013 as the default tried to sort it as a string Was quite complicated…
MySQL Profiling
MySQL allows you to profile queries, enabling you to see whats being run on your server. They are stored in a special profile table in the INFORMATION_SCHEMA database. You can…