Skip to content

Instantly share code, notes, and snippets.

Thomas Shipley tdshipley

View GitHub Profile
View sonarqube_scanner_example_output.txt
Thomass-MacBook-Pro:kotlin thomas$ sonar-scanner
<Redacted for brevity>
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/4a27fa8c666747f6956d75ae63fb24b9
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWbpY5h5xoaTc7Huvu3D
INFO: Task total time: 4.403 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 5.628s
View sonarqube_properties_example_file.properties
#----- SonarQube server
sonar.host.url=http://localhost:9000
#----- Project Key
sonar.projectKey=4a27fa8c666747f6956d75ae63fb24b9
#----- Project Name
sonar.projectName=MyProjectName
#----- Project Version
View docker_container_ls_example.txt
Thomass-MacBook-Pro:kotlin thomas$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
68be74d0aa51 sonarqube "./bin/run.sh" About an hour ago Up About an hour 0.0.0.0:9000->9000/tcp, 0.0.0.0:9092->9092/tcp gracious_noyce
@tdshipley
tdshipley / dockerhub_pull_image_output.txt
Created Nov 6, 2018
Docker Hub Pull Image Example Output
View dockerhub_pull_image_output.txt
Unable to find image 'sonarqube:latest' locally
latest: Pulling from library/sonarqube
bc9ab73e5b14: Pull complete
193a6306c92a: Pull complete
e5c3f8c317dc: Pull complete
a587a86c9dcb: Pull complete
a4c7ee7ef122: Pull complete
a7c0dad691e9: Pull complete
367a6a68b113: Pull complete
60c0e52d1ec2: Pull complete
@tdshipley
tdshipley / dockerrun_sonarqube.txt
Created Nov 6, 2018
Docker Run command for Sonarqube
View dockerrun_sonarqube.txt
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
View wait_for_jquery_load.js
async function checkJquery(tries, tryLimit) {
console.log("Waiting for jQuery to Load");
//1. Base Case - JQuery Loaded
if (window.jQuery) {
console.log("jQuery Loaded");
return;
}
//2. Base Case - TryLimit Hit
if(parseInt(tries) > parseInt(tryLimit)) {
@tdshipley
tdshipley / .gitconfig
Created Apr 20, 2018
Perforce P4 Merge Git Config
View .gitconfig
[diff]
tool = p4merge
[difftool "p4merge"]
path = C:\\Program Files\\Perforce\\p4merge.exe
[merge]
tool = p4merge
[mergetool "p4merge"]
path = C:\\Program Files\\Perforce\\p4merge.exe
@tdshipley
tdshipley / blog_github_sonarqube_start_script.ps1
Created Mar 21, 2018
Script for starting SonarQube differently for PR or Master Branch in CI using PowerShell
View blog_github_sonarqube_start_script.ps1
$github_branch_refs_parts = "%teamcity.build.branch%" -split "/"
$is_pr = ($github_branch_refs_parts.Count -eq 2 -and $github_branch_refs_parts[1] -eq "merge")
if (-Not $is_pr) {
Write-Host "Running SonarQube in master branch mode"
SonarQube.Scanner.MSBuild.exe begin /k:"%sonar.project%" /d:"sonar.host.url=%sonar.host.url%" /d:sonar.cs.dotcover.reportsPaths="dotCover.html" /v:"%build.number%"
} else {
Write-Host "Running SonarQube in PR Mode"
$pull_request_number = $github_branch_refs_parts[0]
View blog_webdriver_session_error.txt
OpenQA.Selenium.WebDriverException : A exception with a null response was thrown sending an HTTP request
to the remote WebDriver server for URL http://localhost:51027/session/71f17e73965ce00cdd20434b035cdce2/element
View blog_idserver_3_to_4_api_resource.json
{
"Name": "MyApiRescource",
"ApiSecrets": [
{
"Value": "MyAPIResouceSecret"
}
],
"Scopes": [
{
"Name": "MyScopeName",
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.