See https://github.com/anthonygelibert/QLColorCode for details.
- Download
QLColorCode.plist - Download
qlcolorcode-config.shto the same directory and run it
| <?xml version="1.0"?> | |
| <ruleset name="BigWing WP"> | |
| <description>A custom coding standard for BigWing themes.</description> | |
| <rule ref="WordPress-Extra"> | |
| <exclude name="Squiz.PHP.DisallowMultipleAssignments"/> | |
| <exclude name="Squiz.Commenting.LongConditionClosingComment"/> | |
| </rule> | |
| <!--<rule ref="WordPress-Docs"/>--> |
| <?php | |
| /** High-performance, cached query for custom post types */ | |
| namespace Morgan_Estes\WP_Query; | |
| /** | |
| * Gets the cache group used by the plugin. | |
| * | |
| * @since x.x.x | |
| * @uses \apply_filters() |
| #!/usr/bin/env bash | |
| # Uses http://slackcat.chat/ to upload a file to a Slack channel | |
| function _slackit() { | |
| if [ $# -eq 0 ]; then | |
| echo 'No file provided.' | |
| echo 'Usage: slackit <filename> [channel]' | |
| return 0 | |
| fi |
See https://github.com/anthonygelibert/QLColorCode for details.
QLColorCode.plistqlcolorcode-config.sh to the same directory and run it| #!/bin/sh | |
| for site_url in $(wp site list --field=url); do wp rewrite flush --url=${site_url}; done |
| #!/bin/sh | |
| for site_url in $(wp site list --field=url); do wp media regenerate --only-missing --yes --url=${site_url}; done |
| # Bash completion of commands and projects for https://github.com/jonathantneal/ok | |
| __ok_completion() { | |
| local commands projects | |
| local cur prev | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| prev="${COMP_WORDS[COMP_CWORD-1]}" | |
| commands="$(find $HOME/.ok/command -name '*.sh' -exec basename {} .sh \;)" |
| # Description: | |
| # Chaos monkey. Randomly throws poo or flowers. | |
| # | |
| # Configuration: | |
| # HUBOT_CHAOS_MONKEY_USERS | |
| # | |
| # Dependencies: | |
| # None | |
| # | |
| # Commands: |
| { | |
| "bucket": [ | |
| { | |
| "startTimeMillis": "1517205600000", | |
| "endTimeMillis": "1517292000000", | |
| "dataset": [ | |
| { | |
| "dataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:aggregated", | |
| "point": [ | |
| { |
| <?php | |
| add_action( 'wp', function() { | |
| $callbacks = wp_list_pluck( $GLOBALS['wp_filter'], 'callbacks' ); | |
| var_export( $callbacks ); | |
| }); |