Friday, 5 January 2018

find and delete files based off grep search

at some point it could be useful to search for the text within a group of file names and delete those,  here's an example terminal command to find and execute a deletion of files which meet a certain criteria

find . -name "*2017-11*" -exec /bin/rm {} \;

Sunday, 10 December 2017

Make Bootable OSX drive from install app

From a terminal:

sudo /Applications/Install\ OS\ X\ Yosemite/Contents/Resources/createinstallmedia --volume /Volumes/DRIVENAME --applicationpath /Applications/Install\ OS\ X\ Yosemite\  --nointeraction

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.