Skip to content

Instantly share code, notes, and snippets.

Avatar

Salah Alkhwlani yemenifree

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

Here is a script to take the hosts from From http://pgl.yoyo.org/adservers/ 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
benlinton / multiple_mysql_versions_for_development.md
Last active Jul 31, 2020
Multiple MySQL Versions with Homebrew
View multiple_mysql_versions_for_development.md

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.