Friday, 20 October 2017

create a playlist file from the linux command line

Here's a quick way to make a .m3u file from the linux command line for a bunch of folders of videos.

navigate to the top folder that contains all your sub-folders of videos and type the following command.

find -type f -iname "*.avi" > playlist.m3u

I'll usually open the .m3u after and add any global path names that happen at the beginning of the entries.

Wednesday, 18 October 2017

How to see Disk Utilization in % from linux command line

You can get a pretty good measure of this using the iostat tool.

iostat -dx /dev/sde1

The disk utilisation is listed in the last column.

Wednesday, 11 October 2017

Enabling Exodus Downloads on Kodi

1.Open Exodus
2.Now scroll down a bit and choose Tools option.
3.Then go the EXODUS: Downloads option.
4.Here you have to turn on the Enable downloads.
5.Click on Movies and TV to select the folder for saving the downloaded files.
6.Find a movie and load its sources
7.Find a working source,  then long press on the source and select 'download' from menu.

Monday, 2 October 2017

Outlook constantly shows welcome screen in Office 365 for OSX

I found I was having this issue due to a bad .plist file.
For outlook, you would go to ~/Library/Containers/

In my case, the '' file was unable to be opened by XCode due to an incorrect format.  I renamed the file by adding '.old' to the end of it and re-started Outlook. 

This re-created a new .plist file. After going through the welcome screen again, it no longer opens after restarting.

Wednesday, 13 September 2017

Browsing internet doesn't work on OSX but it works in recovery.

I recently discovered a macbook pro at my office which was unable to browse the web over both wifi and ethernet regardless of browser.   I was however able to ping sites fine from the terminal.   I tried creating new user accounts and the problem still existed.   Booting into recovery mode however would fix the issue and I could browse the web from recovery mode (command+R at start).

The fix was fairly simple but it took a long time to figure out the problem.

Navigate to /System/Library/Extensions/  and have a look at the dates of all the files in this directory. For me there was a very obvious rogue extension which was added that had a really old date of 2014 and it was some NetNanny.kext file

I deleted the suspect kext file and rebooted.  All my problems where solved.  Back surfing without having to reinstall the OS.

Friday, 7 July 2017

installing composer on osx

First install the composer like mentioned in the composer installation documentation. I just added here for reference.

curl -sS | php

and then move the file to '/usr/local/bin'.

sudo mv composer.phar /usr/local/bin/composer

Try to run composer -V. If you get a output like Composer version followed by the version number then the composer is installed successfully.

If you get any output like composer: command not found means use the following command to create a alias for the composer. So it will be executed globally.

alias composer='/usr/local/bin/composer'

Now if you run composer -V means you will get the output as Composer Version followed by the version number.


Yes, you need to make sure that ~/.composer/vendor/bin directory is in your system's PATH, you can check this by running:

echo $PATH

If you can't see it there, then you need to add this to your ~/.bash_profile:

export PATH=$PATH:~/.composer/vendor/bin

Wednesday, 28 September 2016

Prevent terminal in osx from copying style when copying text.

You can disable copy/pasting the formatting from Terminal by changing the preferences file. Open Terminal on your Mac and enter the following command:

defaults write CopyAttributesProfile

This will strip all text attributes out of copy/pasting from Terminal