Format USB Drive to exFat on Mac OS

OS X has been slowly hiding things, limiting things and making things for professional harder to do. The Disk utility used to be significantly easier to use as an multi-platform disk preparation tool. I had all gave up on it recently when attempting to setup an ubuntu image (.iso) on a thumb drive to setup a new developer server. How-to.

Well it happened again when trying to transfer large files between Mac and Windows. I recently learned about exFat, the new FAT32 that supports massive files. With video, images and images getting large than the 3.7 GB limit of FAT32, its necessary to start preparing my new devices at purchase to have them capable of the large formats before its to late to change.

The option for the exFat format is there in the disk utility and I did format a drive with that. It worked just fine between to Macs (It did seem slow reading the file system but no test to prove that). I needed to get a large video file off of a windows machine so I plugged in my exFat drive in and it said it wasn’t formatted. After a few different attempts and was about to give up, I tried one more google search and came upon this very helpful tip. Using a simple command, it gives you a new option for the type of boot partition – Master Boot Record. Now you can format as exFat and windows will now love the drive and your mac still won’t care. With this solved, I will be formatting all my USB drives as exFat from now on.

The Disk Utility advanced options of El Capitan are hidden and you needed, first:
Quit Disk Utility.
Open the Terminal utility.
Run the following Command:
defaults write com.apple.DiskUtility advanced-image-options 1
Relaunch Disk Utility
And now, just format your USB with MBR Partition (Master boot record) and exFAT file System.
The USB now can mount in OSX & Windows.
Reference

Continue reading Format USB Drive to exFat on Mac OS

Current Setup(s)

Browsers

Chrome (up to date)

  • Postman
  • Web Developer
  • Edit This Cookie
  • Gitlab Notifier
  • The Great Suspender

Safari (up to date)

Firefox (up to date)

For older versions of Firefox, I use a simple app called MultiFirefox.

You need to create a default profile for the up-to-date version and then a profile named after the version it is the profile it is for.

Firefox Release

Download each release you want, open the image one at a time, drag the Firefox.app file to your desktop, then rename it to the version it is Firefox_14.0.1.app. Take the file and now put it in your applications folder.

Open the MultiFirefox app and pick the version and profile you want and click start. You now can run as many version as you want and not break profiles.

Homebrew

This is a great application to install anything you need linux related.

Bash / iTerm2

Git

Git Flow

MySQL Workbench

Other options

Atom

Plugins

  • Atom Beautify
  • Bracket Matcher
  • Highlight Line
  • Highlight Selected
  • Merge Conflicts
  • Project Manager
  • Todo-Show

MacDown

OpenOffice

Mail

Evernote

SourceTree

Slack

Continue reading Current Setup(s)

Git Submodules

https://git-scm.com/book/en/v2/Git-Tools-Submodules

Git Submodules: Adding, Using, Removing, Updating

I took on a simple wordpress website. Well yes the site is very simple, almost no custom development but, it is wordpress and I am trying to do things with best practices. So it hasn’t been easy.

  1. Getting a virtual environment working has been a headache.

I settled on Scotchbox because it had a lot of tools but didn’t require to many strange dependencies like ruby plugins when my site is only php behind nginx or apache.

  1. I wanted to have a git repo for the environment to do code on multiple computers or to be able to hand off the project to someone else if I ever needed too.
  2. I wanted to have a git repo for the theme to be able to have releases and features.

This is the most difficult part.

Create the theme as its own git repository.
It can be a single file to start, this only to get the module setup going.

Create the top level of your project (ie the contents of a wordpress install). Use the GIST to ignore basically everything but the vagrant file, your gitmodule file and the path to the theme you are developing.

Structure:

/website-server
VagrantFile
.gitignore (see gist file below)
.gitmodules
.git
/public_html
    /wp-content
        /themes
            /website-theme-01
                .gitignore
                .git

wordpress-vagrant-gitignore

Follow these direction using the path to your theme in the themes folder.
git-submodules-adding-using-removing-and-updating

Once that is setup, you will be able to commit any vagrant file changes to your wordpress-site-vagrant repo and any changes to your theme can be committed to your website-theme-01 repo.

Now developing themes is a harmony and is easy to replicate across projects and is easy to share a project to multiple developers.

Continue reading Git Submodules

Bash – Passing associative arrays to function

After finding out you can’t pass an associative array normally in bash. I found a tutorials that showed me how to basically serializes and expand it back but it lost the keys so it wouldn’t work for what I needed.

I did a little more looking and found this link that passes things as a reference. It has no vote because it doesn’t fully answer the persons question but it perfectly worked for me.

http://stackoverflow.com/questions/1063347/passing-arrays-as-parameters-in-bash/29379084#29379084

Continue reading Bash – Passing associative arrays to function

Mac OS X Bash – upgrade

Usually the bash on mac is good enough. But I’ve recently been making some more complicated shell scripts and found out associative arrays and using key to get values wasn’t working at all. So here is how to upgrade.

http://apple.stackexchange.com/questions/24632/is-it-safe-to-upgrade-bash-via-homebrew

Here is some bash array examples:

Bash associative array examples

Continue reading Mac OS X Bash – upgrade