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 | |
from collections import namedtuple | |
import os | |
import shutil | |
import re | |
import json | |
import argparse | |
import sys |
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 sh | |
# Downloads the latest prebuilt gradle-profiler release to the specified path | |
# | |
# Usage: | |
# download_gradle_profiler.sh <download-path> | |
set -eu | |
output_path="${1:?"Usage: download_gradle_profiler.sh <download-path>"}" | |
MAVEN_METADATA_URL="https://repo1.maven.org/maven2/org/gradle/profiler/gradle-profiler/maven-metadata.xml" |
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 | |
from collections import namedtuple | |
from ctypes import Union | |
import os | |
import argparse | |
from fileinput import FileInput | |
import textwrap | |
parser = argparse.ArgumentParser() |
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
import java.time.LocalDateTime | |
rootProject { | |
def time = LocalDateTime.now().toString() | |
def log = new File("${projectDir}/init-scripts-${time}.log") | |
log.write "${time}\n" | |
log << gradle.startParameter.currentDir.path | |
<< '\nInit scripts:\n---------\n\n' | |
gradle.startParameter.allInitScripts.each { file -> |
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: |
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
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 |
OlderNewer