Skip to content

Instantly share code, notes, and snippets.

@jterry
jterry / ngrok-installation.md
Created November 25, 2017 00:16 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory
#!/usr/bin/env python
import distutils.dir_util
import distutils.file_util
import os
from subprocess import call, check_output
for file in os.listdir("./screenshots/en-US/"):
if file.endswith(".png"):
@jterry
jterry / admin_notice.php
Last active December 16, 2015 17:08
Simple WP function to insert admin notices and errors.
/**
* Include
* add_action('admin_notices', 'lm_admin_message');
* in your setup, then call
* lm_admin_message('error', 'the message, fool!'); or
* lm_admin_message('notice', 'the notice, fool!');
* to display the admin message.
*
* @param string|null $type Supports "error" and "notice" (or null if it's the setup hook call)
* @param string|null $message Body of your message (or null if it's the setup hook call)