Skip to content

Instantly share code, notes, and snippets.

View emotality's full-sized avatar
✌️
Hustling

Jean-Pierre Fourie emotality

✌️
Hustling
  • South Africa
View GitHub Profile
@emotality
emotality / composer_macos.md
Last active September 5, 2019 06:21
Install composer on macOS

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 / php73_macos.md
Last active March 13, 2022 14:03
Install PHP 7.2 on macOS

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 / omz_with_jovial.md
Last active September 24, 2023 20:17
Oh My Zsh with Jovial

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 September 26, 2018 23:33
Split files bigger than 4GB for FAT drives on macOS

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   
@emotality
emotality / reset_mysql_password.md
Last active April 7, 2021 19:37
Reset MySQL Password on macOS

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 April 6, 2024 04:23
Xcode - Duplicate Line key binding

NOTE (2022-07-09): Xcode finally added this functionality in Xcode 14, please see release notes here:

New Features in Xcode 14 Beta 3
When editing code, the Edit > Duplicate menu item and its corresponding keyboard shortcut now duplicate the selected text — or the line that currently contains the insertion point, if no text is selected. (8614499) (FB5618491)


Xcode line duplicate

Bind keys to duplicate lines in Xcode

@emotality
emotality / delete_ds_store.sh
Created July 7, 2015 21:15
Delete all .DS_Store files in OSX.
#!/bin/bash
#### Created by Jean-Pierre Fourie
### https://github.com/emotality
## delete_ds_store.sh
#
clear
echo " "
echo " ########################################################## "
echo " #################### DELETE .DS_STORE #################### "
@emotality
emotality / set_permissions.sh
Created July 7, 2015 21:12
Set file and folder permissions in OSX.
#!/bin/bash
#### Created by Jean-Pierre Fourie
### https://github.com/emotality
## set_permissions.sh
#
clear
echo " "
echo " ######################################################### "
echo " ############## FOLDER AND FILE PERMISSIONS ############## "
@emotality
emotality / force_empty_trash.sh
Created July 7, 2015 21:06
Force empty Trash for all volumes in OSX.
#!/bin/bash
#### Created by Jean-Pierre Fourie
### https://github.com/emotality
## force_empty_trash.sh
#
clear
echo " "
echo " ####################################################### "
echo " ################## FORCE EMPTY TRASH ################## "
@emotality
emotality / hide_desktop.sh
Created July 7, 2015 21:06
Hide or show desktop items in OSX.
#!/bin/bash
#### Created by Jean-Pierre Fourie
### https://github.com/emotality
## hide_desktop.sh
#
clear
echo " "
echo " ######################################################## "
echo " ################## HIDE DESKTOP FILES ################## "