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
| // These sripts are very useful for testing desktop apllications with UAC requests. | |
| // Run this command in cmd with admin rights. | |
| // Run another cmd as user via powershell. | |
| // cmd(admin) -> powershell(admin) -> cmd(user) | |
| powershell -noprofile -command "&{"^ | |
| "$username = 'admin';"^ | |
| "$password = 'admin';"^ | |
| "$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;"^ | |
| "$credential = New-Object System.Management.Automation.PSCredential $username, $securePassword;"^ |
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 hudson.model.* | |
| import com.cloudbees.hudson.plugins.folder.* | |
| NOT_REMOVED_FOLDERS = ['custom-builds', 'nightly-builds', 'tests-builds', 'current_beta_mac', 'current_beta_win', 'master_beta_mac', 'master_beta_win', 'master_canary_mac', 'master_canary_win', 'next_beta_mac', 'next_beta_win'] | |
| NOT_REMOVED_JOBS = ['_flag_', '_results_', '_runner_', 'nightly-trigger', 'complex-launcher', '_simple-launcher'] | |
| UNUSED_DAYS_FOR_FOLDER = 30 | |
| UNUSED_DAYS_FOR_JOB = 14 | |
| CURRENT_DATE = new Date(System.currentTimeMillis()) | |
| enum CleanTypes{ |
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
| # -*- coding: utf-8 -*- | |
| from ctypes import * | |
| from ctypes.wintypes import * | |
| # stick to unicode version | |
| LPWSTR = POINTER(WCHAR) | |
| HINTERNET = LPVOID | |
| INTERNET_PER_CONN_FLAGS = 1 |
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 com.atlassian.jira.ComponentManager | |
| import groovyx.net.http.HTTPBuilder | |
| componentManager = ComponentManager.getInstance() | |
| issueService = componentManager.getIssueService() | |
| customFieldManager = componentManager.getCustomFieldManager() | |
| authenticationContext = componentManager.getJiraAuthenticationContext() | |
| println 'QA. Start preformance loading for release issue.' |
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 sys | |
| from com.atlassian.jira.util import ImportUtils | |
| from com.atlassian.jira import ComponentManager | |
| from com.atlassian.jira.issue import IssueInputParametersImpl | |
| issueLinkManager = ComponentManager.getInstance().getIssueLinkManager() | |
| authenticationContext = ComponentManager.getInstance().getJiraAuthenticationContext() | |
| issueService = ComponentManager.getInstance().getIssueService() | |
| workflowManager = ComponentManager.getInstance().getWorkflowManager() |
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 sys | |
| from com.atlassian.jira.util import ImportUtils | |
| from com.atlassian.jira import ComponentManager | |
| issueManager = ComponentManager.getInstance().getIssueManager() | |
| customFieldManager = ComponentManager.getInstance().getCustomFieldManager() | |
| issueLinkManager = ComponentManager.getInstance().getIssueLinkManager() | |
| issueFactory = ComponentManager.getInstance().getIssueFactory() | |
| authenticationContext = ComponentManager.getInstance().getJiraAuthenticationContext() |
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 sys | |
| import re | |
| import unicodedata | |
| from com.atlassian.jira.util import ImportUtils | |
| from com.atlassian.jira import ComponentManager | |
| issueManager = ComponentManager.getInstance().getIssueManager() | |
| customFieldManager = ComponentManager.getInstance().getCustomFieldManager() | |
| issueLinkManager = ComponentManager.getInstance().getIssueLinkManager() |