Apache is running on port 80 and interfering with Valet.
- Stop Apache:
sudo /usr/sbin/apachectl stop - Restart Valet:
valet restart
| /** | |
| * Sort array of objects based on another array | |
| */ | |
| function mapOrder (array, order, key) { | |
| array.sort( function (a, b) { | |
| var A = a[key], B = b[key]; | |
| #!/bin/bash | |
| USER="root" | |
| PASSWORD="" | |
| FILES="/Users/tenold/Backups/MySQL/*" | |
| for f in $FILES | |
| do | |
| echo "Processing $f file..." |
| #!/bin/sh | |
| ## backup each mysql db into a different file, rather than one big file | |
| ## as with --all-databases. This will make restores easier. | |
| ## To backup a single database simply add the db name as a parameter (or multiple dbs) | |
| ## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is | |
| ## Create the user and directories | |
| # mkdir -p /var/backups/mysql/databases | |
| # useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup | |
| ## Remember to make the script executable, and unreadable by others |
| <?php | |
| // SHOW YOAST PRIMARY CATEGORY, OR FIRST CATEGORY | |
| $category = get_the_category(); | |
| $useCatLink = true; | |
| // If post has a category assigned. | |
| if ($category){ | |
| $category_display = ''; | |
| $category_link = ''; | |
| if ( class_exists('WPSEO_Primary_Term') ) |
| <?php | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, Array( | |
| CURLOPT_URL => 'http://blogs.guggenheim.org/map/feed/', | |
| CURLOPT_USERAGENT => 'spider', | |
| CURLOPT_TIMEOUT => 120, | |
| CURLOPT_CONNECTTIMEOUT => 30, | |
| CURLOPT_RETURNTRANSFER => TRUE, |
| <?php | |
| function prefix_customizer_register( $wp_customize ) { | |
| $wp_customize->add_panel( 'panel_id', array( | |
| 'priority' => 10, | |
| 'capability' => 'edit_theme_options', | |
| 'theme_supports' => '', | |
| 'title' => __( 'Example Panel', 'textdomain' ), | |
| 'description' => __( 'Description of what this panel does.', 'textdomain' ), |
| <?php | |
| /** | |
| * Plugin Name: Envira Gallery - Load Lightbox from Link | |
| * Plugin URI: http://enviragallery.com | |
| * Version: 1.0 | |
| * Author: Tim Carr | |
| * Author URI: http://www.n7studios.co.uk | |
| * Description: Launch a gallery's lightbox from a link. Requires that the gallery be embedded into the Page. | |
| */ |
| <?php | |
| /** | |
| * Return a custom field stored by the Advanced Custom Fields plugin | |
| * | |
| * @global $post | |
| * @param str $key The key to look for | |
| * @param mixed $id The post ID (int|str, defaults to $post->ID) | |
| * @param mixed $default Value to return if get_field() returns nothing | |
| * @return mixed | |
| * @uses get_field() |