Skip to content

Instantly share code, notes, and snippets.

View emotality's full-sized avatar

Jean-Pierre Fourie emotality

  • South Africa
View GitHub Profile
emotality /
Created May 11, 2022 19:16
Install Cloudflare DoH (DNS over HTTPS) for macOS

Cloudflare DoH (DNS over HTTPS)

Currently all DNS queries are being queried over normal HTTP that can be intercepted and the hacker/scammer can then respond with a different IP address, misleading you to a clone of the original website that the hacker owns. This can be avoided by installing Cloudflare's own app, cloudflared, on your machine to route all your DNS queries over HTTPS which is secure and can't be altered. It's also a lot faster! 💡 Learn More

This is a guide on how to install cloudflared to query Cloudflare's DNS server over an HTTPS connection.

👨‍🔧 Installation

  1. Install Homebrew if you don't have it
emotality / .php-cs-fixer.php
Created February 20, 2022 23:12 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Coding Style Ruleset
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
emotality /
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!

emotality /
Last active February 13, 2024 10:36
macOS apps, themes and settings I use
emotality /
Last active August 12, 2020 15:09
Laravel 7 Request stub for store & update

Laravel 7 Request


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.


  1. If you are using Laravel 7, you can now override default stubs:
emotality /
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


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

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 / CountriesTableSeeder.php
Created December 6, 2019 11:25
Countries Laravel table seed
use App\Country;
use Illuminate\Database\Seeder;
class CountriesTableSeeder extends Seeder
* Run the database seeds.
emotality /
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.


Make a Sites folder in your home folder

$ mkdir ~/Sites
emotality /
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"

After Homebrew is install, use Homebrew to install Redis