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 / 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 / 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 / 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 / mamp_macos.md
Last active October 20, 2022 03:19
Install and configure Apache, MySQL and PHP on macOS

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 / CountriesTableSeeder.php
Created December 6, 2019 11:25
Countries Laravel table seed
<?php
use App\Country;
use Illuminate\Database\Seeder;
class CountriesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
@emotality
emotality / countries.json
Created December 6, 2019 11:29
Countries JSON
[
{
"id": 1,
"name": "Afghanistan",
"iso2": "AF",
"iso3": "AFG",
"tld": "af",
"fips": "AF",
"iso": "004",
"geo_name_id": "1149361",
@emotality
emotality / ubuntu_18_mail_server.md
Last active November 9, 2022 13:35
Ubuntu 18.04 Postfix with Dovecot mail server

Ubuntu 18.04 Mail Server

UPDATE: I will not be answering questions as this guide is outdated and just copied and pasted into a single page with improved order (not redoing steps or editing the same file over and over in different steps).

Please check out the original article which is being updated frequently:
LinuxBabe - Build Your Own Email Server on Ubuntu: Basic Postfix Setup

Overview

Steps were re-written from below links for faster setup.

@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 / macos_tools.md
Last active February 13, 2024 10:36
macOS apps, themes and settings I use
@emotality
emotality / cloudflare_ddns.md
Last active May 5, 2022 21:20
CloudFlare Dynamic DNS (DDNS) for home server

CloudFlare Dynamic DNS (DDNS)

A CloudFlare Dynamic DNS (DDNS) cronjob for your home server!

Steps will be added soon!