Skip to content

Instantly share code, notes, and snippets.

View wilbit's full-sized avatar

Evgeny Akhtimirov wilbit

  • Saint Petersburg, Russia
  • 08:08 (UTC +03:00)
View GitHub Profile
@wilbit
wilbit / sonarqube-remove-branch-name.yml
Last active May 30, 2023 20:58
It removes sonar.branch.name property in Azure Pipeline. Put it somewhere between your SonarQubePrepare and SonarQubeAnalyze tasks.
- powershell: |
$params = "$env:SONARQUBE_SCANNER_PARAMS" -replace '"sonar.branch.name":"[\w/,-.]*"\,?'
Write-Host "##vso[task.setvariable variable=SONARQUBE_SCANNER_PARAMS]$params"

Keybase proof

I hereby claim:

  • I am wilbit on github.
  • I am wilbit (https://keybase.io/wilbit) on keybase.
  • I have a public key ASCVhS92V-QiEXmIep2Nbv_IxEopH0jtRTkY23mqiQzBdgo

To claim this, I am signing this object:

@wilbit
wilbit / gist:7209276
Created October 29, 2013 04:46
How do I calculate tables size in Oracle
SELECT owner, table_name, TRUNC(sum(bytes) / 1024 / 1024) Meg
FROM (SELECT segment_name table_name, owner, bytes
FROM dba_segments
WHERE segment_type = 'TABLE'
UNION ALL
SELECT i.table_name, i.owner, s.bytes
FROM dba_indexes i, dba_segments s
WHERE s.segment_name = i.index_name
AND s.owner = i.owner
AND s.segment_type = 'INDEX'