Skip to content

Instantly share code, notes, and snippets.

Avatar
✌️
Hustling

Jean-Pierre Fourie emotality

✌️
Hustling
View GitHub Profile
@emotality
emotality / cloudflared_doh.md
Created May 11, 2022
Install Cloudflare DoH (DNS over HTTPS) for macOS
View cloudflared_doh.md

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
emotality / .php-cs-fixer.php
Created Feb 20, 2022 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Coding Style Ruleset
View .php-cs-fixer.php
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@emotality
emotality / cloudflare_ddns.md
Last active May 5, 2022
CloudFlare Dynamic DNS (DDNS) for home server
View cloudflare_ddns.md

CloudFlare Dynamic DNS (DDNS)

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

Steps will be added soon!

@emotality
emotality / macos_tools.md
Last active May 31, 2022
macOS apps, themes and settings I use
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 Jun 3, 2022
Ubuntu 18.04 Postfix with Dovecot mail server
View ubuntu_18_mail_server.md

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.

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