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
<targets> | |
<target name="dbLogger" xsi:type="Database" | |
connectionStringName="DefaultConnection" commandText=" | |
insert into dbo.Log ( | |
Date, Level, Message, Username, | |
ServerName, SessionId | |
) values ( | |
@Date, @Level, @Message, | |
@Username, @ServerName, @SessionId | |
);"> |
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
[HttpPut] | |
public async Task<RestResponseModel<Company>> Put([FromUri] int companyId, Company company) | |
{ | |
var response = new RestResponseModel<Company>(); | |
try | |
{ | |
company.LastModifiedOn = DateTime.UtcNow; | |
company.ModifiedBy = Guid.Parse(this.UserAspId); | |
response.Data.Add(await this.dataAccess.UpdateCompany(id, company)); | |
} |
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
Function Update-Plugins($jenkinsServer, $username, $authToken) { | |
$authValue = $($username+":"+$authtoken) | |
$pluginsToBeUpdated = @() | |
Invoke-RestMethod -Method Get -Uri $($jenkinsServer + "/jnlpJars/jenkins-cli.jar") -OutFile "jenkins-cli.jar" -ContentType "application/octet-stream" | |
Write-Output "`nHere are the currently installed plugins`n" | |
cmd /c java -jar jenkins-cli.jar -s $jenkinsServer -auth $authValue list-plugins '2>&1' | Tee-Object -Variable output | |
foreach ($item in $output) { |
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
val numbers = Gen.choose(2, 100); | |
numbers: org.scalacheck.Gen[Int] = org.scalacheck.Gen$$anon | |
sum.check |
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
<configuration> | |
<appSettings> | |
<add key="AllowedSites" value="site1.com;site2.com;site3.com"/> | |
</appSettings> | |
</configuration> |
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
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\MSTest.exe" /resultsfile:"%WORKSPACE%\Results.trx" /testcontainer:solution\\project\\bin\\Release\\project.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
{ | |
"text": "Data channel is missing", | |
"code": 10 | |
} |
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
<add key="requireApiKey" value="true" /> | |
<add key="apiKey" value="{secret key}" /> | |
<add key="allowOverrideExistingPackageOnPush" value="false" /> | |
<add key="ignoreSymbolsPackages" value="true" /> | |
<add key="enableDelisting" value="false" /> | |
<add key="enableFrameworkFiltering" value="false" /> |
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
POST https://splunkhost:8088/services/collector | |
Authorization: Splunk fe358871-c9be-4f9a-a38b-0a09bf41b64c | |
{ | |
"event": "test" | |
} |
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
{ | |
"text": "Success", | |
"code": 0 | |
} |