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 / LAMP.txt
Last active August 29, 2015 14:15
LAMP (Linux, Apache, MySQL, PHP)
#===================================================#
# LAMP (Linux, Apache, MySQL, PHP)
# CentOS 6.5
# Apache 2.2.15
# MySQL 5.1.73
# PHP 5.6.5 (phpMyAdmin 4.0.10.8)
#===================================================#
######################################################
## USERS & ACCESS
@emotality
emotality / MAMP.txt
Last active January 24, 2021 17:56
MAMP for OS X El Capitan 10.11.4 (2016)
#===================================================#
# MAMP (Mac OSX, Apache, MySQL, PHP)
# by Jean-Pierre Fourie <jp@emotality.com>
# Mac OSX 10.11.4 El Capitan
# Apache v2.4.18
# MySQL v5.7.12
# PHP v5.6.19 / v7.0
# [Ruby v2.3.1 / Rails v4.2.6]
#===================================================#
@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 ################## "
@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 / 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 / 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 / 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 / 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 / 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 / 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: