Skip to content

Instantly share code, notes, and snippets.


Ferdinand Hübner ferdinandhuebner

View GitHub Profile
ferdinandhuebner / LogNexusRepoSize.groovy
Last active Aug 28, 2018
Logs the size of Repositories hosted by Sonatype Nexus 3
View LogNexusRepoSize.groovy
repository.repositoryManager.browse().each { Repository repo ->
StorageFacet storageFacet = repo.facet(StorageFacet)
def tx = storageFacet.txSupplier().get()"Processsing repository " + repo.getName())
def repoSize = 0
ferdinandhuebner /
Created Aug 4, 2015
make the red top from procps-ng display like the old top

Keybase proof

I hereby claim:

  • I am ferdinandhuebner on github.
  • I am ferdi ( on keybase.
  • I have a public key whose fingerprint is 4A25 111B F318 768E 4027 7E98 55C5 8EDA A788 A51F

To claim this, I am signing this object:

View sbt-with-eclipse-only-scala
EclipseKeys.withSource := true
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource
// Get rid of java source directories in compile
unmanagedSourceDirectories in Compile <<= (scalaSource in Compile)(Seq(_))
// Get rid of java source directories in test
unmanagedSourceDirectories in Test <<= (scalaSource in Test)(Seq(_))
View increment fix version and append snapshot
function is_integer {
test "$1" && printf '%f' "$1" >/dev/null 2>/dev/null;
function increment_fix_version_with_snapshot {
if [ $(echo "$currentVersion" | egrep "SNAPSHOT$") ]; then
echo "$currentVersion"