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 | |
container="wp-cli-mysql" | |
container_status=$( docker container inspect -f '{{.State.Status}}' $container ); | |
echo "Setting environment variables" | |
export WP_CLI_TEST_DBHOST=127.0.0.1:3310 | |
export WP_CLI_TEST_DBROOTUSER=root | |
export WP_CLI_TEST_DBROOTPASS=password | |
export WP_CLI_TEST_DBNAME=wp_cli_test |
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 php | |
<?php | |
$command = 'xsetwacom --set "%s" MapToOutput 3840x2160+1920+0'; | |
$output = shell_exec( 'xsetwacom --list devices' ); | |
$output = explode( "\n", $output ); | |
// Parts will include: | |
// STYLUS |
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
[alias] | |
# === Common Commands === | |
a = add # Shortcut for add | |
br = branch # Shortcut for br | |
branches = branch -a # Shortcut for branch -a | |
co = checkout # Shortcut for checkout | |
cob = checkout -b # Shortcut for checkout -b | |
cp = cherry-pick # Shortcut for cherry-pick | |
po = push origin # Shortcut for push origin |
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
{{Item | |
|image= | |
|name=Amulet of Agility | |
|cabal= | |
|location= | |
|storable= | |
|dests= | |
|cost= | |
|sell=1000 | |
|type=Amulet |
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
{| width="250" align="right" class="info-box item" | |
|- | |
{{#if: {{{image|}}}| | |
{{!}} colspan="2" class="info-image" {{!}} {{{image}}}}} | |
|- | |
| colspan="2" class="info-name" | '''{{{name}}}''' | |
|- | |
| colspan="2" class="info" | '''General Information''' | |
|- |
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
{| width="250" align="right" class="info-box area" | |
|- | |
{{#if: {{{image|}}}| | |
{{!}} colspan="2" class="info-image" {{!}} {{{image}}}}} | |
|- | |
| colspan="2" class="info-name" | '''{{{name}}}''' | |
|- | |
| colspan="2" class="info" | '''General Information''' | |
|- |
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
<div style="clear:both"></div> |
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 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 | |
function convert_recurring_event_meta() { | |
global $wpdb; | |
// Get meta values | |
$event_recurrence_meta = $wpdb->get_results(" | |
SELECT post_id, meta_value | |
FROM $wpdb->postmeta | |
WHERE meta_key = '_EventRecurrence' |
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
// Calculate hours for any type of ticket in the next release | |
(function( $ ) { | |
var total = 0; | |
$('.estimated_hours').each(function() { | |
var $el = $( this ); | |
var $row = $el.closest( 'tr' ); | |
var $version = $row.find( '.fixed_version a' ); | |
if ( 'Next Release' !== $.trim( $version.html() ) ) return; |
NewerOlder