Skip to content

Instantly share code, notes, and snippets.

🚁
Doing best..

Jean-Pierre Fourie emotality

🚁
Doing best..
Block or report user

Report or block emotality

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@emotality
emotality / mamp_macos.md
Last active Sep 5, 2019
Install and configure Apache, MySQL and PHP on macOS
View mamp_macos.md

MAMP (LAMP stack on macOS)

macOS Mojave comes pre-installed with apache 2.4.34 and PHP 7.1.19. This guide is just to configure apache and install MySQL 5.7.25.

Apache

Make a Sites folder in your home folder

$ mkdir ~/Sites
@emotality
emotality / redis_macos.md
Last active Sep 5, 2019
Install Redis on macOS
View redis_macos.md

Redis on macOS

If you don't have Homebrew, install it:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

After Homebrew is install, use Homebrew to install Redis

@emotality
emotality / composer_macos.md
Last active Sep 5, 2019
Install composer on macOS
View composer_macos.md

Composer on macOS

If you don't have Homebrew, install it:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

If you don't have wget, install it:

@emotality
emotality / node6_macos.md
Last active Sep 5, 2019
Install node v6 on macOS for Laravel
View node6_macos.md

Node v6 on macOS

If you don't have Homebrew, install it:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

To see your current node version

@emotality
emotality / php73_macos.md
Last active Sep 18, 2019
Install PHP 7.2 on macOS
View php73_macos.md

PHP 7.3 on macOS

Install PHP

$ curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.3

Add path to your bash profile to access it globally:

@emotality
emotality / tools_macos.md
Last active Sep 5, 2019
macOS apps for development and productivity
View tools_macos.md
@emotality
emotality / omz_with_jovial.md
Last active Sep 5, 2019
Oh My Zsh with Jovial
View omz_with_jovial.md

Oh My Zsh with Jovial on macOS

Oh My Zsh bash with the Jovial theme

omz-jovial.png

Steps

If you don't have Homebrew, install it:

@emotality
emotality / split_files_fat.md
Created Sep 26, 2018
Split files bigger than 4GB for FAT drives on macOS
View split_files_fat.md

Split big files

Split files bigger than 4GB for FAT drives on macOS

To split files (into 1Gb files in this example)

# If your file is named YourFile.iso
$ split -b 1024m "YourFile.iso" "YourFile.iso."
# split -b <size> <in_filename> <out_filenames>
@emotality
emotality / reset_mysql_password.md
Last active Sep 5, 2019
Reset MySQL Password on macOS
View reset_mysql_password.md

Reset MySQL Password on macOS

1. Stop all MySQL services

Note: It HAS to be closed before this will work!

First, go to System Preferences, go to MySQL, and Stop MySQL Server.

$ launchctl unload /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
@emotality
emotality / duplicate_line_xcode.md
Last active Oct 18, 2019
Xcode - Duplicate Line key binding
View duplicate_line_xcode.md

Xcode line duplicate

Bind keys to duplicate lines in Xcode

  1. Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
You can’t perform that action at this time.