Skip to content

Instantly share code, notes, and snippets.

Avatar
✌️
Hustling

Jean-Pierre Fourie emotality

✌️
Hustling
View GitHub Profile
@emotality
emotality / macos_tools.md
Last active Mar 3, 2021
macOS apps I use on a daily basis
View macos_tools.md
@emotality
emotality / laravel_7_request.md
Last active Aug 12, 2020
Laravel 7 Request stub for store & update
View laravel_7_request.md

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 / ubuntu_18_mail_server.md
Last active Apr 1, 2021
Ubuntu 18.04 Postfix with Dovecot mail server
View ubuntu_18_mail_server.md
View countries.json
[
{
"id": 1,
"name": "Afghanistan",
"iso2": "AF",
"iso3": "AFG",
"tld": "af",
"fips": "AF",
"iso": "004",
"geo_name_id": "1149361",
@emotality
emotality / CountriesTableSeeder.php
Created Dec 6, 2019
Countries Laravel table seed
View CountriesTableSeeder.php
<?php
use App\Country;
use Illuminate\Database\Seeder;
class CountriesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
@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 / 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 / omz_with_jovial.md
Last active Oct 23, 2020
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: