Skip to content

Instantly share code, notes, and snippets.

Thomas Shipley tdshipley

Block or report user

Report or block tdshipley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tdshipley / mapping-file.json
Created Apr 29, 2019
Mapping file for Dependency Checker and OWASP Glue
View mapping-file.json
"app_name": "my_app_name",
"task_name": "OWASP Dependency Checker",
"mappings": [
"key": "alerts",
"properties": {
"description": "description",
"detail": "detail",
"source": "source",
tdshipley /
Created Apr 29, 2019
OWASP Glue Change Dependency Checker JSON output To Dynamic Compatible Version
jq '{
[ .dependencies |
map(select(.vulnerabilities != null)) |
.[] |
. as $raw |
$raw |
$raw.vulnerabilities |
. as $vuln |
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: ------------------------------------------------------------------------
INFO: Total time: 5.628s
#----- SonarQube server
#----- Project Key
#----- Project Name
#----- Project Version
View docker_container_ls_example.txt
Thomass-MacBook-Pro:kotlin thomas$ docker container ls
68be74d0aa51 sonarqube "./bin/" About an hour ago Up About an hour>9000/tcp,>9092/tcp gracious_noyce
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 / 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");
//2. Base Case - TryLimit Hit
if(parseInt(tries) > parseInt(tryLimit)) {
tdshipley / .gitconfig
Created Apr 20, 2018
Perforce P4 Merge Git Config
View .gitconfig
tool = p4merge
[difftool "p4merge"]
path = C:\\Program Files\\Perforce\\p4merge.exe
tool = p4merge
[mergetool "p4merge"]
path = C:\\Program Files\\Perforce\\p4merge.exe
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 = "" -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:"" /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]
You can’t perform that action at this time.