Skip to content

Instantly share code, notes, and snippets.


Salah Alkhwlani yemenifree

View GitHub Profile
View Match.php
class Match
protected $value;
protected $result;
protected $hasMatch;
public function __construct($value)
SethCalkins /
Last active Apr 4, 2020
Little Snitch Script to block Ad Servers

Here is a script to take the hosts from From and convert them to rules for Little Snitch.

It has options to grab the entire list or grab new entries past a certain date.

Just grab the output and copy/paste into Little Snitch.

The script is written to block access to any process, any port. You can also delete those lines and it will only block Mail. Or use the options to enter any process, port or protocol you want to block.

benlinton /
Last active Jul 31, 2020
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.

You can’t perform that action at this time.