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
def assetKey = issue.fields?.issuelinks?.find{it.type.name == "Affected asset"}?.outwardIssue?.key | |
if (assetKey == null) return "No asset linked" | |
def assetIssue = Unirest.get("/rest/api/2/issue/" + assetKey).asJson().getBody().object | |
return Optional.ofNullable(assetIssue.fields.customfield_10267?.find{true}?.value).orElse("No category set") |
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
add_action( 'wp_loaded', 'set_postman_staging_settings'); | |
function set_postman_staging_settings() { | |
$staging_options = [ | |
"enc_type" => "none", | |
"hostname" => "localhost", | |
"port" => 1025, | |
"sender_email" => "[email protected]", | |
"envelope_sender" => "[email protected]", |
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
/** | |
* Add a custom action to order actions select box on edit order page | |
* | |
* @param array $actions order actions array to display | |
* @return array - updated actions | |
*/ | |
function ta_wc_add_order_meta_box_action( $actions ) { | |
global $theorder; | |
// add "Reprocess TA product access" custom action |
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
// Based on code written by Rik and Jens A. Koch (@jakoch) on StackOverflow: | |
// http://stackoverflow.com/questions/32256432/how-to-execute-7zip-without-blocking-the-innosetup-ui | |
[Code] | |
#IFDEF UNICODE | |
#DEFINE AW "W" | |
#ELSE | |
#DEFINE AW "A" | |
#ENDIF |
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
{ | |
"guid": "{b2ea4eb4-ab63-4710-a082-7263af541f2a}", | |
"hidden": false, | |
"name": "SSH: Machine Name", | |
"commandline": "powershell.exe -command \"ssh.exe -t some.host.name 'screen -S myscreen -rd || screen -S myscreen bash -l'\"", | |
"hidden": false, | |
"suppressApplicationTitle": true | |
}, |