Links for the talk given at DPE Summit 2023: "Unlocking build analytics: Getting started with the Gradle Enterprise API"
This file contains 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
#!/usr/bin/env python3 | |
# pylint: disable=missing-function-docstring,invalid-name | |
""" | |
Adds relative symlinks in the given directory, pointing to the specified | |
files in the current directory. | |
For example, add symlinks to a nested Gradle build in order to open in | |
separately in an IntelliJ IDE: |
This file contains 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
// Randomizes the cache path so that builds always miss and push cache entries | |
// to the remote cache. Used to benchmark upload performance when making changes | |
// to a Develocity instance. Configuration cache must be disabled so that | |
// a random path is never re-used. | |
settingsEvaluated { settings -> | |
settings.with { | |
// This impl will only work with the Develocity build cache type | |
assert buildCache.remote.class.name.contains('com.gradle.develocity') | |
buildCache.remote.path = "cache/${UUID.randomUUID()}" |
This file contains 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
https://github.com/wg/wrk | |
https://github.com/loadimpact/k6 | |
https://github.com/tsenart/vegeta | |
https://github.com/rakyll/hey | |
https://github.com/ddosify/ddosify | |
https://github.com/mcollina/autocannon | |
https://github.com/codesenberg/bombardier | |
https://github.com/hatoo/oha | |
https://github.com/giltene/wrk2 | |
https://github.com/six-ddc/plow |
This file contains 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
#!/usr/bin/env python3 | |
# Small script to build a changelog file out of past GitHub releases. | |
# | |
# USAGE: ./releases-to-changelog.py <github-repo-path> | |
# Example: ./releases-to-changelog.py "JetBrains/kotlin" > CHANGELOG.md | |
from subprocess import check_output | |
import sys | |
import json |
This file contains 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
awk '!/^#/ && !p { print "auth sufficient pam_tid.so"; p=1 }1' /etc/pam.d/sudo \ | |
| tee ./temp-pamd \ | |
&& read \ | |
&& sudo mv ./temp-pamd /etc/pam.d/sudo | |
&& rm ./temp-pamd |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#!/usr/bin/env python3 | |
import shutil | |
import argparse | |
from pathlib import Path | |
from urllib.parse import quote | |
def prefix_assets(dir_path): | |
for assets_dir in dir_path.rglob("*.assets"): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
/** | |
* Checks for inconsistent versions in project dependencies. | |
* USAGE: | |
* ./gradlew help --init-script check-inconsistent-versions.init.gradle.kts | |
* | |
* | |
* For example, a project using Okio 3.0.0 in production, but 3.3.0 in tests: | |
* | |
* project ':': inconsistencies found | |
* com.squareup.okio:okio: |
NewerOlder