Skip to content

Instantly share code, notes, and snippets.

View jakobjs's full-sized avatar

Jakob jakobjs

  • Reykjavík, Iceland
View GitHub Profile
minimum-age: 10m
scan-delay: 5s
anchors:
- /mnt/mounted.txt
authentication:
username:
password:
@jakobjs
jakobjs / config.yml
Created April 11, 2022 11:46
autoscan config
# <- processor ->
# Override the minimum age before a scan request is sent to the target (Default 10m):
minimum-age: 10m
# Override the delay between processed scans (Default 5s):
scan-delay: 5s
# Set anchor files for remote storage. If these are missing no scans will be sent to the target to avoid files being trashed when a mount fails
anchors:
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force
$layoutPath = "C:\VisualStudio2019_ENT\layout"
$packageName = "Arion_Visual_Studio_2019_16.4.4"
#$selectedWorkloads = "--add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools --add Microsoft.VisualStudio.Workload.Node --add Microsoft.VisualStudio.Component.VC.v141.MFC"
$selectedWorkloads = "--allWorkloads"
$packageArgs = @{
packageName = $packageName
fileType = 'EXE'
2019.07.06 20:16:29 ERROR web[AWvC2JxiDb32Hg05AKCQ][o.s.s.w.WebServiceEngine] Fail to process request http://sonarqube-test.local/api/qualitygates/search?gateId=2&page=1&pageSize=100&selected=selected
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'key'.
### The error may exist in org.sonar.db.qualitygate.ProjectQgateAssociationMapper
### The error may involve org.sonar.db.qualitygate.ProjectQgateAssociationMapper.selectProjects-Inline
### The error occurred while setting parameters
### SQL: SELECT proj.id as id, proj.kee as key, proj.name as name, prop.text_value as gateId FROM projects proj LEFT JOIN properties prop ON prop.resource_id=proj.id AND prop.prop_key='sonar.qualitygate' AND prop.text_value = ? where proj.qualifier = 'TRK' and proj.enabled = 1 and proj.main_branch_project_uuid is null and proj.copy_component_uuid is null and proj.organization_
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="IsRedirection">
<match filterByTags="A, Form, Img" serverVariable="RESPONSE_LOCATION" pattern="^http://[^/]+/(.*)" />
<action type="Rewrite" value="https://sonarqube.lab.local/{R:1}" />
</rule>
<preConditions>
@jakobjs
jakobjs / web.config_old_wo_size_fix
Last active June 21, 2019 19:44
SonarQube IIS reverse proxy config -- USE THE OTHER web.config template please. It includes changes to the request size.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="IsRedirection">
<match filterByTags="A, Form, Img" serverVariable="RESPONSE_LOCATION"
pattern="^http://[^/]+/(.*)" />
<action type="Rewrite" value="https://PUBLIC_SONARQUBE_URL/{R:1}" />
</rule>
@jakobjs
jakobjs / Sync-TfsIdentity.ps1
Created May 8, 2019 14:51 — forked from jstangroome/Sync-TfsIdentity.ps1
Force TFS 2012 to synchronize Active Directory group memberships
[CmdletBinding()]
param (
[Parameter(Mandatory=$true, Position=0)]
[uri]
$ServerUri
)
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest
@jakobjs
jakobjs / Sync-TfsIdentity.ps1
Created May 8, 2019 14:51 — forked from f-bader/Sync-TfsIdentity.ps1
Force TFS 2018 to synchronize Active Directory group memberships
[CmdletBinding()]
param (
[Parameter(Mandatory=$true, Position=0)]
[uri]
$ServerUri
)
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest