This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Walker = require('puppeteer-walker') | |
var fs = require('fs') | |
var walker = Walker() | |
fs.writeFile('output.csv', 'URL, Title, H2\r\n', 'utf8', function (err) { | |
console.log(`Header written`) | |
}) | |
walker.on('end', () => console.log('finished walking')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace DeliciousBrains\Admin; | |
use DeliciousBrains\DBI; | |
class ACF { | |
public function init() { | |
add_filter( 'acf/settings/save_json', array( $this, 'get_local_json_path' ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
block="# WordPress multisite subdirectory rules. | |
# Designed to be included in any server {} block. | |
map \$uri \$blogname{ | |
~^(?P<blogpath>/[^/]+/)files/(.*) \$blogpath ; | |
} | |
map \$blogname \$blogid { | |
default -999; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Function that will automatically remove ACF field groups via JSON file update | |
* | |
*/ | |
function acf_auto_suppr($json_dirs) { | |
$groups = acf_get_field_groups(); | |
if (empty($groups)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://dl.ubnt.com/unifi/5.11.46/unifi_sh_api | |
#username=ubnt | |
#password=ubnt | |
#baseurl=https://unifi:8443 | |
#site=default | |
#[ -f ./unifi_sh_env ] && . ./unifi_sh_env | |
cookie=$(mktemp) |
OlderNewer