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/zsh | |
# Wi-Fi Site Survey | |
# 2020.07.22 Rev. 0.1 | |
# First release | |
# 2023.01.30 Rev. 0.2 | |
# Fixed channel and BSSID not being retrieved by Monterey | |
# Fail on unset variables and command errors | |
set -ue -o pipefail |
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 | |
/* | |
Plugin Name: Gutenberg Audit | |
Plugin URI: http://highbrow.com.au/plugins/gutenberg-audit | |
description: What blocks is your site using? | |
Version: 0.1 | |
Author: Hugh Campbell | |
Author URI: http://highbrow.com.au/ | |
License: GPL2 | |
*/ |
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
import { Fragment, useCallback } from '@wordpress/element'; | |
import { useDispatch, useSelect } from '@wordpress/data'; | |
const useMeta = ( key ) => { | |
const meta = useSelect( ( select ) => { | |
const { getEditedPostAttribute } = select( 'core/editor' ); | |
const values = getEditedPostAttribute( 'meta' ) || {}; | |
return values[ key ] || ''; | |
}, [] ); |
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
update text inside a post | |
(we work with 3rd party vendors, their urls occasionally change; | |
or we changed a campaign's name used in google analytics) and limit it to ONLY published posts. | |
(sometimes, our marketing team wants to what see how content was EXACTLY in the past). wp-cli's search-replace command by default make edits in revisions. | |
(in this command, 'before' is what you want to get rid of and 'after' is what you want to replace 'before' with. | |
`wp db query "UPDATE $(wp db tables "*_posts") SET post_content = REPLACE(post_content, 'before', 'after') WHERE post_status = 'publish';"` | |
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
# EditorConfig helps keep your project formatting consistent. | |
# See https://EditorConfig.org | |
# | |
# This is a modified version of the WordPress coding standards. | |
# | |
# Author: Sal Ferrarello (@salcode) | |
# https://salferrarello.com/wordpress-editorconfig/ | |
# | |
# You can download this file directly | |
# to your project from the command-line with |
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 | |
/** | |
* Plugin Name: Hatamoto | |
* Plugin URI: https://wpist.me/ | |
* Description: This is a awesome cool plugin. | |
* Version: 0.1.0 | |
* Author: Takayuki Miyauchi | |
* Author URI: https://wpist.me/ | |
* License: GPLv2 | |
* Text Domain: hatamoto |
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 | |
/* | |
Plugin Name: must use functions. | |
Plugin URI: | |
Description: | |
Version: 0.1 | |
Author: DigitalCube | |
Author URI: | |
License: GPLv2 or later | |
*/ |
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
export PS1="[\u@\h \W]\\$ " | |
HISTIGNORE=rm\ * | |
alias vi="vim" | |
alias delmacfile="find . -name \".DS_Store\" -exec rm -f {} \;" | |
alias ql='qlmanage -p "$@" >& /dev/null' | |
alias svndel="svn st | grep '^!' | sed -e 's/\![ ]*/svn del /g' | sh" | |
alias svnadd="svn st | grep '^?' | sed -e 's/\?[ ]*/svn add /g' | sh" | |
alias yuicomp="/usr/local/bin/yuicompressor --charset UTF-8 -o" |
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
モルト | |
2-ROW 10,400g | |
WHEAT MALT 3,900g | |
ホップ | |
1st | |
チヌーク 15g | |
3rd | |
ストリアンゴールディング 30g | |
カスケード 25g |
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
/* | |
WordPressのテーマにおいて、テンプレート階層に基づきどのテンプレートファイルが使われているか書き出すコード。 | |
ただし、header.php や get_template_part などでインクルードされているファイルを除く。 | |
*/ | |
add_action('wp_footer', 'view_template_files'); | |
if ( !function_exists( 'view_template_files' ) ): | |
function view_template_files() { | |
if ( defined('WP_DEBUG') && WP_DEBUG ) { | |
global $template; |
NewerOlder