One of my automated builds suddenly failed with an unusual error that says ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular.git", exit code of #69 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. As the error suggests, the quick fix is to re-Agree to the Xcode/iOS license and […]
Read More
For my own reference, GhostScript is a great tool to compress those huge PDF files that your scanner generates. In order to use GhostScript PDF compressor, you need to install GhostScript first: brew install ghostscript Then you can run the following command to compress your original file to a smaller file gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook […]
Read More
I’m sure you’ve all used or at least heard of New Relic application monitoring tool. If you haven’t, you’ve been living in a cave for the last couple of years 🙂 It’s a great tool for pinpointing bottlenecks in your application. However, most people have this tool installed on their production systems only. What if […]
Read More
I’m currently working on migrating a large publishing website form Drupal to WordPress and one of the things that occurred to me was that WordPress generates 3 sizes for each image that’s uploaded into Media Library. However, our Drupal website only contains a single image. To make the media library work nicely in WordPress we’ve […]
Read More
I’ve been using Charles HTTTP Proxy for bandwidth throttling and network monitoring in general. It’s a great little tool, but when it comes to bandwidth throttling, it will only throttle HTTP and HTTPS traffic on ports 80 and 443 respectively. I thought there had to be a way to throttle bandwidth on any port using […]
Read More
The first of multiple files that make up a split archive created with WinZip; uses the same compression as a standard .ZIP file, but must be decompressed along with the related split archives (.Z02, .Z03, etc.). Split archives are often used to shrink the size of large files for e-mail attachments or file downloads. They […]
Read More
Here’s another useful command line utility – Secure Copy or SCP, that allows you to securely transfer computer files between a local and a remote host. sudo scp localfile.dmg remoteuser(at)somehost.com://pathtoupload/ Much neater that using an SFTP client no? Thanks to my work colleague Luke for bringing this to my attention 🙂 Marko
Read More
I just stumbled upon?30 Fantastic Geeky Tricks To Get The Most From Your Mac?and I thought I’d write down a couple of tricks I found useful. Recent Items Stack Type this in terminal window to show a stack of your ‘recent applications’. defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; […]
Read More
I have just set up Apache Tomcat startup script on Snow Leopard and I thought I’d blog about it while it’s still fresh in my head.? Assuming you have installed Tomcat in /usr/local/tomcat directory, you can do the following to start Tomcat on system startup. 1. Create your startup script: sudo nano /usr/local/tomcat/bin/tomcat #!/bin/sh # […]
Read More
I’ve had problems starting up MySQL database server on startup on Snow Leopard. ?MySQL preference pane seems to be flaky and it often fails to start MySQL server. I created this startup script myself and it seems to work nicely. sudo nano /System/Library/LaunchDaemons/org.mysql.mysqld.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> […]
Read More
I’m writing this one for my own reference because almost everything I do for work, is done through SSH port forwarding. If you’re not familiar with SSH port forwarding, you’ll have to read up on it elsewhere. And the reason why we use SSH port forwarding is because it is secure and powerful. I generally […]
Read More
I recently upgraded to Snow Leopard from 10.5 and everything went relatively smoothly. I was particularly pleased to see extra 13GB of hard drive space. However, I noticed a couple of things that I wasn’t so pleased about: Apache unable to start PHP disabled MySQL unable to start I’ve already walked a couple of people […]
Read More