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 / 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 / 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 / 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 / redis_macos.md
Last active September 5, 2019 06:21
Install Redis on macOS

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 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 / 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 / laravel_7_request.md
Last active August 12, 2020 15:09
Laravel 7 Request stub for store & update

Laravel 7 Request

Overview

This request stub is to demonstrate how it is possible to share a single form request for the same model, to store and to update the model.

Install

  1. If you are using Laravel 7, you can now override default stubs:
@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]
#===================================================#