Skip to content

Instantly share code, notes, and snippets.

Santa Monica WordPress Developer

Austin Passy thefrosty

Santa Monica WordPress Developer
View GitHub Profile

Selective Restores on macOS

Note: This post is not yet finished

I have owned a Mac continuously for the last 8 years as part of my job and used it full time both professionally and personally. Over that time I have carried a lot of crap from machine to machine, and a lot of that was very work specific. Certs, credentials, applications, and other various configurations and files. I've always just performed a full Time Machine restore each time I upgraded.

I recently switched employers, and wanted to start mostly fresh, but with the ability to keep some of the more generic configurations on my Mac like VIM configurations, and the ability to bring over personal files. I wasn't sure how I was going to approach this at first. I imagined, that I would just take a Time Machine backup, perform a fresh install, and then use the Migration Assistant to uncheck some things I don't want.

Using the Time Machine backup and Migration Assistant, seemed like a great idea, although Migration Assistant doesn't give y

View wp-plugin-mu-loader.php
* Plugin initialization file
* @package WP_Plugin_MU_Loader
* @since 1.0.0
* @wordpress-plugin
* Plugin Name: WP Plugin MU Loader
* Plugin URI:
zthxxx / Activate Office 2019 for macOS
Last active Sep 19, 2020
crack activate office on mac with license file
View Activate Office 2019 for macOS

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above


Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.


jaredatch /
Created Jan 30, 2018
Install MailHog with MAMP Pro

Install MailHog with MAMP Pro, using HomeBrew.


First let's make sure HB is updated. Open up terminal for the following steps.

$ brew update
bradyvercher / register-plugin-icons.php
Created Oct 4, 2017
Register icons to display on the Manage Plugins screen for plugins that aren't in the directory.
View register-plugin-icons.php
* Register plugin icons.
* WordPress 4.9 introduced icons in the list table on the Manage Plugins
* screen. The icons are pulled from the update API. If an icon isn't
* available, a generic plugin Dashicon is shown instead.
* @param array $value Plugin update data.
* @return array
Majkl578 / Dockerfile
Last active Nov 8, 2019
Dockerized example for article at about running multiple PHP versions:
View Dockerfile
FROM debian:stretch
ENV DEBIAN_FRONTEND noninteractive
# install NGINX
RUN apt-get update && \
apt-get install -y nginx --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
JonnyWong16 /
Last active May 24, 2020
Sync Plex playlists to shared users.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests, xmltodict
import requests
import xmltodict
nmaggioni /
Last active Sep 12, 2020 — forked from andrey-str/ufw plexmediaserver app
Plex Media Server UFW rule


title=Plex Media Server (Standard)
description=The Plex Media Server

title=Plex Media Server (DLNA)
description=The Plex Media Server (additional DLNA capability only)
BretFisher /
Last active May 22, 2020
Simple Apache + Nginx Reverse Proxy Example in Docker Compose
  1. download these two files to the same directory
  2. docker-compose up
  3. http://localhost should show you "it works" which is apache being reverse-proxied through nginx
  4. docker sets up DNS for web based on compose service name so the nginx front-end can find http://web
  5. proxy is set to listen on public port 80 on host so it'll receive incoming traffic, then push to httpd
Rarst / RoboFile.php
Last active Dec 1, 2019
Robo command to build a release zip for Composer package.
View RoboFile.php
class RoboFile extends \Robo\Tasks {
* Creates release zip
* @param string $package Composer package in vendor/name format.
* @param string $version Version to build.
You can’t perform that action at this time.