There are two nice utilities to reduce the file size of PDF documents in Ubuntu: Download the following zip and extract the .sh file shrinkpdf.sh Then issue the following command:…
Reduce PDF size Ubuntu
Add Google Analytics code to WordPress
There are a good number of plugins to add Google Analytics code to WordPress, but I did the following: Edit header.php Paste your tracking code directly after the opening tag…
Block BitTorrent traffic PfSense
A quick and dirty way to block torrents from being downloaded on your network is to create a LAN firewall rule in PfSense. Click Firewall -> Rules -> LAN Ensure that…
The MySQL adapter mysqli is not available – WHM
After deploying a new server and installing WHM the following error was showing when accessing a Joomla site: Error displaying the error page: Application Instantiation Error: The MySQL adapter mysqli…
Convert DMG to ISO Ubuntu – bootable disk
Quite a nifty piece of software in Ubuntu is DMG2IMG which converts DMG images to IMG (same as ISO). Install DMG2IMG: sudo apt-get install dmg2img Convert the DMG to IMG: dmg2img…
GeoOrbital wheel – motorise any bicycle
This project is seriously cool! You can pretty much motorise any bicycle by swapping out the front wheel. [https://ksr-video.imgix.net/projects/2431220/video-661490-webm.webm](https://ksr-video.imgix.net/projects/2431220/video-661490-webm.webm) Check out the Kickstarter project [here](https://www.kickstarter.com/projects/1266381423/geoorbital-wheel-make-your-bike-electric-in-60-sec?ref=category_recommended)
FlipFlic – motorise your blinds
Where cool meets functional – FlipFlic is a great little device which allows you to control your blinds and adjust the amount of light entering a room. [https://ksr-video.imgix.net/projects/2371963/video-644535-webm.webm](https://ksr-video.imgix.net/projects/2371963/video-644535-webm.webm) Check out…
Failed opening required '/usr/share/php/php-gettext/gettext.inc' – Ubuntu 16.04
A nice simple solution for this: sudo apt-get install php-gettext
Adjust Bootstrap Navbar breakpoint
Sometimes the Bootstrap Navbar collapses into the minified version too early, or too late. The following snippet allows you to adjust at what point the collapsing takes place (courtesy of…
No wrap text CSS
If you would like to display some text without line breaks within that text, you can apply the following CSS to the p or span element surrounding the text in…









