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
#!/bin/bash | |
ORG=XXX | |
GITHUB_USER=XXX | |
GITHUB_TOKEN=XXX | |
SEARCH_TERM='ssh_url' | |
SSH_REGEX='s#.*\(git*@[^"]*\).*#\1#;p' | |
function get_repos { |
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 node | |
const fs = require('fs'); | |
const path = require('path'); | |
const CHUNK_SIZE = 250; | |
const pad = n => n < 10 ? `0${n}` : n; | |
const formatDate = d => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`; |
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 org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionSelectorScheme | |
apply plugin: "java" | |
apply plugin: "maven" | |
group = "com.example" | |
String installVersion = System.getProperty("installVersion") | |
if (installVersion) { |
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
2015-11-17 06:34:07 | |
Full thread dump Java HotSpot(TM) Server VM (24.79-b02 mixed mode): | |
"Attach Listener" daemon prio=10 tid=0x0af01800 nid=0x9fb waiting on condition [0x00000000] | |
java.lang.Thread.State: RUNNABLE | |
Locked ownable synchronizers: | |
- None | |
"Task worker Thread 7" prio=10 tid=0x096f5400 nid=0x7e1a waiting on condition [0x067f8000] |
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
// Call with gradlew --init-script=S:/temp/netbeans.gradle printDependencies | |
allprojects { | |
task printDependencies << { | |
["runtime", "testIntegrationRuntime"].each { | |
Configuration configuration = configurations.findByName it | |
if (configuration) { | |
configuration.files.each { | |
println it |
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 org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionSelectorScheme | |
task resolveStuff | |
defaultTasks = ["resolveStuff"] | |
def versionSelectorScheme = gradle.services.get(VersionSelectorScheme) | |
configurations { | |
all { |
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 groovy.xml.* | |
apply plugin: "eclipse" | |
apply plugin: "java" | |
task copyLibs(type: Copy) | |
configurations { | |
libs | |
} |