$argon2id$v=19$m=8192,t=2,p=4$slDRAy6SRi2oLOxmGNd0Ag$YAo/C4HiBEjuJGbK0GB4vAkDSaE3WMF0
This file contains 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 | |
## | |
# Fixes a Pantheon site's gitignore and (optionally) applies any upstream updates. | |
## | |
function usage() { | |
NO_FORMAT="\033[0m" | |
F_BOLD="\033[1m" | |
C_GREEN="\033[38;5;2m" |
This file contains 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 | |
/** | |
* Sets WP_HOME and WP_SITEURL based on environment settings. | |
* | |
* @return void | |
*/ | |
/** | |
* Sets WP_HOME and WP_SITEURL based on environment settings. | |
* | |
* @return void |
This file contains 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
--- | |
# Separate from .env.local and .env.pantheon used by Roots, these are added to the lando containers. | |
# See https://docs.lando.dev/core/v3/env.html#environment-files | |
env_file: | |
- .env.lando | |
tooling: | |
update-user: | |
description: Adds/updates a local WP user account used for local administration. | |
service: appserver |
This file contains 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 | |
## | |
# Generates the site.env from a Pantheon site URL. | |
## | |
function getPantheonSiteEnv() { | |
if [[ "${1}" == *"pantheonsite.io"* ]]; then | |
./pantheon-sitename.sh "${1}" | |
else | |
printf "Could not convert %s to a site.env" "${1}" |
This file contains 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/bash | |
# Enable Docker.app completions in shells | |
# | |
# @param string $shell The shell to load completions for. Accepts "zsh", "bash", "fish". Default current shell. | |
function link_docker_completions() { | |
local shell="${1:-$(basename "$SHELL")}" | |
local etc="/Applications/Docker.app/Contents/Resources/etc" | |
local share_path="/usr/local/share/${shell}" | |
local completions_path |
This file contains 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/bash | |
# | |
# Parses Slack JSON exports for files and downloads them. | |
# | |
# Requires 'jq' (https://stedolan.github.io/jq/) and 'httpie' (https://httpie.org/). | |
# | |
## | |
# Checks for a single dependency. | |
# |
This file contains 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/bash | |
# Creates a new shell script or library | |
# | |
# Libraries should have a .sh file extension and ARE NOT executable. | |
# Commands should have no file extension and ARE executable by default. | |
function new_shell_script() { | |
local file="${1:-"my_new_script"}" | |
local filename | |
local extension |
This file contains 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
/** | |
* This script adds the jquery effects to the Navigation Pro Theme. | |
* | |
* @package Navigation\JS | |
* @author StudioPress | |
* @license GPL-2.0-or-later | |
*/ | |
( function( $ ) { | |
// Cache DOM selectors. |
This file contains 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
import { applyFilters, addFilter } from "@wordpress/hooks"; | |
addFilter('plugins.registerPlugin', 'bigwing/editor-sidebar', (settings, name) => { | |
console.log(settings, name); | |
if ('bigwing-editor-sidebar' !== name) { | |
return settings; | |
} | |
console.log(settings); | |
if (settings.hasOwnProperty('icon')) { |
NewerOlder