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
public ScriptMain() | |
{ | |
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve); | |
} | |
public Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) | |
{ | |
Assembly assembly = null; | |
try | |
{ |
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
Get-ADGroupMember -Identity ADGroup | | |
foreach { | |
$name = 'dev-' + $_.SamAccountName; | |
cf set-org-role $_.SamAccountName "orgName" OrgAuditor ; | |
cf target -o "orgName" -s $name; | |
cf set-space-role $_.SamAccountName "orgName" $name SpaceManager; | |
cf set-space-role $_.SamAccountName "orgName" $name SpaceDeveloper; | |
} |
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
nunitjenkinspublishtest\\packages\\NUnit.ConsoleRunner.3.8.0\\tools\\nunit3-console.exe nunitjenkinspublishtest\\nunitjenkinspublishnunittest\\bin\\Debug\\nunitjenkinspublishnunittest.dll |
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
dynamic user = new ExpandoObject(); | |
user.user_id = userId; | |
var content = new StringContent(JsonConvert.SerializeObject(user), Encoding.UTF8, "application/json"); | |
var cleanedappId = HttpUtility.UrlEncode(appId); | |
var response = client.PostAsync(url + $"auth/app-id/login/{cleanedappId}", content).Result; | |
var body = response.Content.ReadAsStringAsync().Result; | |
var serializedBody = JsonConvert.DeserializeObject<IDictionary<string, dynamic>>(body); |
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
config: | |
target: 'https://my.site.com/' | |
phases: | |
- duration: 3600 | |
arrivalRate: 4 | |
scenarios: | |
- name: "Artillery Capture Data" | |
flow: | |
- post: | |
url: "auth/connect/token" |
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
{ | |
"access_token": "42", | |
"expires_in": 9999, | |
"token_type": "Bearer" | |
} |
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
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'my-creds', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) { | |
bat 'nuget setapikey %USERNAME%:%PASSWORD% -Source https://artifactory.instance/artifactory/api/nuget/my-nuget-repo' | |
} |
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
git tag %BUILD_TAG% | |
git push origin %BUILD_TAG% |
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
2019-01-21 17:22:51 10.0.75.1 GET /login - 4200 - 10.0.75.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/71.0.3578.98+Safari/537.36 - 302 0 0 1 | |
2019-01-21 17:22:52 10.0.75.1 POST /login - 4200 - 10.0.75.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/71.0.3578.98+Safari/537.36 https://internalping.server.com/ 302 0 0 4 | |
2019-01-21 17:22:52 10.0.75.1 POST /login - 4200 - 10.0.75.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/71.0.3578.98+Safari/537.36 https://internalping.server.com/ 302 0 0 5 | |
2019-01-21 17:22:54 10.0.75.1 POST /login - 4200 - 10.0.75.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/71.0.3578.98+Safari/537.36 https://internalping.server.com/ 302 0 0 12 | |
2019-01-21 17:22:54 10.0.75.1 POST /login - 4200 - 10.0.75.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/71.0.3578.98+Safari/537.36 htt |
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
# unique project identifier (required) | |
sonar.projectKey=my:project-key | |
# project metadata (used to be required, optional since SonarQube 6.1) | |
sonar.projectName=my:project-name | |
sonar.projectVersion=1.0 | |
# path to source directories (required) | |
sonar.sources=src |